You are on page 1of 4
LYCEUM INTERNATIONAL SCHOOL Subject Class Duration Candidate's name Monthly Test — January 2016 Computer Science 8 1 period Date . Admission no : Instructions: 1. 2 Use the given space to write the answers. Ink all your answers and diagrams. (2) Convert the following decimal numbers to binary. (i) (i) 26 (iii) 3.625 @G marks) G marks) (11 marks) [otal = 19 marks] contd...to page 2 2 Grade 8 Computer Science contd....from page 1 (2) Convert the following binary number to decimal. 310101, (Total = 8 marks] (3) Asegment of the ASCII table is given below. Find the ASCII of * f”. Show the working, Character | Decimal _| Binary code(ASCII) | x 88 01011000 y 89 01011001 Zz 90 01011010 C 91 01011011 \ 92 01011100 1 i 8 01011101 An 94 | __ ono11110 - 95 oxo1t114 96 01100000 a 97 01100001 b 98 01100010 c 99 01100011 a 100 01100100 e 101 01100101 f _ 8 103 01100111 h 104 01101000 __—| i 105 01101001 i 106 01101010 [Total = 7 marks] to page 3 3 Grade 8 Computer Science contd.....from page 2 (4) _ List all the variables used in the following algorithm. Input Item_code, Unit_price, Quantity Cost = Unit_price * Quantity Output Item _code, Quantity, Cost End [otal = 4 marks] (5) Write an algorithm to get a number and display whether it is aPositive number or a Negative number. [Total = 4 marks} contd.....to page 4 4 Grade 8 Computer Science contd. (©) This calculation allows you to determine someone’s age by his/her shoe size. (Get the shoe size (ii) Multiply it by 5 ii) Add 50 to the answer (iv) Multiply it by 20 (¥) Add 1015 (vi) Subtract the year he/she was born (vii) First digit of this final answer is the shoe size and the last two digits are the age Write an algorithm to do the above calculation, display the final answer and display instructions on how to read the age from the final answer. [Total = 8 marks} END Ref:NR

You might also like