Page 49 - PlusGPT_V2.1_C8_Flipbook
P. 49
Test Sheet 1 (Based on chapters 1 to 3)
A. Tick (✓) the correct option.
1. What will be the output of the following expression?
22 % 3
(i) 7 (ii) 1
(iii) 0 (iv) 5
2. Which of the following symbol(s) is/are used for comments in Python?
(i) // (ii) ‘’
(iii) /**/ (iv) #
3. Which one of the following is not a arithmetic operator used in Python?
(i) Addition (ii) Multiplication
(iii) Exponentiation (iv) Parentheses
4. Which of the following conditional statements is used to test multiple conditions?
(i) if (ii) if…else
(iii) if…elif…else (iv) All of these
5. If a = 20 and b = 10, then what will be the output of the following code:
if (False):
print(20 + 10)
else:
print(20 - 10)
(i) 30 (ii) 20
(iii) 10 (iv) Nothing will print
6. What is the answer of the expression, 2**2**2?
(i) 2 (ii) 16
(iii) 4 (iv) 8
7. ____________ describes a computer that is connected to a network.
(i) Node (ii) Unit
(iii) Device (iv) Attachment
8. Which of the following computer network spans across a city?
(i) LAN (ii) MAN
(iii) WAN (iv) CAN
Test Sheet 1 47

