Computer Science
Computer Science
1. Convert the following decimal number to binary using the division method.
55
[Total = 6 marks]
2. Convert the following decimal number to binary using the binary place value table.
121
[Total = 9 marks]
1001012
[Total = 6 marks]
Begin
End
[Total = 4 marks]
Begin Working
Input Q
R ← Q+25
S ← R /10
T ← R+S
Output T
End
[Total = 5 marks]
6. Some variables used in this Pseudocode violate naming rules. Circle those variables.
Begin
Input 1st No
Input No 2
Input No3
Input No_4
ToTaL ← No1 + No2 + No3 + No 4
1AVG ← ToTaL/4
Output ToTaL
Output AVERAGE
End
[Total = 4 marks]
7. Many Sri Lankans are employed in South Korea. Their salaries are paid in Korean Won
(KRW). To find out the value of their salaries in Sri Lankan Rupees (LKR), a currency
conversion should be done.
Draw a flowchart and then write a Pseudocode for the task of converting a monetary value
given in South Korean Won (KRW) to Sri Lankan Rupees (LKR).
(i) Flowchart
[8 marks]
(ii) Pseudocode
[6 marks]
[Total = 14 marks]
END
Ref : UD