Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

 

REVISION WORK (06‐01‐2022) 
(SOLVED‐10‐01‐2022) 
 
1. Write PR command to do the following:‐ 
a) Display “NEW” from a sentence “MY NEW CAR” 
PR FIRST BUTFIRST [MY NEW CAR] 
OR 
PR LAST BUTLAST [MY NEW CAR]  
b) Display “YEAR” from “HAPPY NEW YEAR 2022” 
PR LAST BUTLAST [HAPPY NEW YEAR 2022] 
c) Print “NEW” from “HAPPY NEW YEAR 2022” 
PR FIRST BUTFIRST [HAPPY NEW YEAR 2022] 
d) Print the word “MSW‐LOGO” 
PR “MSW‐LOGO 
e) Display “BE“  from “TAKE CARE AND BE HAPPY ALWAYS” 
PR LAST BUTLAS BUTLAST [TAKE CARE AND BE HAPPY ALWAYS] 
2. Find Output:‐ 
a) PR 100/5^2 + 81/9*2 
WORKING: 
100/25 + 81/9*2=4 + 9*2=4+18=22 
OUTPUT: 
22 
b) PR (69 – 39)/5*2 + 7 
WORKING: 
30/5*2 + 7=6*2 + 7=12+7=19 
OUTPUT: 
19 
c) PR 73+ 3^3 – 60/3*5 
WORKING: 
73 + 9 – 20*5=73 + 27 – 100 = 100 – 100 =0 
OUTPUT: 

 
 
 
 
 
 
 
 
 

3. Write Procedure file to print the following figure (Gaps between the figures are 20):‐ 

       

TO “figure 
REPEAT 4[FD 100 RT 90] PU LT 90 FD 20 RT 90 PD REPEAT 360[FD 1 LT 1] PU RT 90 FD 140 RT 90 PD 
REPEAT 360[FD 1 RT 1] HT 
END 
 
     

You might also like