You are on page 1of 5

SUGUNA PIP SCHOOL, COIMBATORE

(A CBSE affiliated Sr.Sec.School)


INFORMATICS PRACTICES
GRADE XI
REVISION TERM1
Worksheet -2

1. An empty/null statement in Python is _____.

a. go

b. pass

c. continue
d. break

2. Which of the following statements will make a selection construct?


(a) if
(b) if-else
(c) for
(d) while

3. Which of the following statements will make a selection construct?


(a) if
(b) if-else
(c) for
(d) while

4. In Python, which of the following will create a block in a compound


statement ?
(a) colon
(b) statements indented at a lower, same level
(c) indentation in any form
(d) { }

5. Consider the loop given below:


for i in range (3):
pass

What will be the nal value of i after this loop?


fi

(a) 0
(b) 1
(c) 2
(d) 3

6. CPU has two main components ______________ and _________


a. ALU and Memory Unit
b. CU and ALU
c. Input and Output Unit
d. None of the above

7. Which keyboard is available to help the visually impaired for entering data
into a computer?
a. Digital Keyboard
b. Analog Keyboard
c. Braille Keyboard
d. None of the above

8. Which of the following is not the mode of interacting with python?


a. Interactive Mode
b. Script Mode
c. Hybrid Mode
d. None of the above

9. Which of the following is not in Python Character Set.


a. Letters : A-Z or a – z
b. Digits : 0 – 9
c. Whitespaces : blank space, tab etc
d. Images : Vector

10. Python supports dynamic typing.


a. True
b. False

11. Smallest element of of python coding is called __________


a. Identi ers
b. Token
c. Keywords
d. Delimiters

12. Write the output of the following code:


fi
x=5
x=7
x=x+x
print(x)
a. 7
b. 12
c. 14
d. 10

13. Which of the following is invalid variable name?


a. Sum1
b. Num_1
c. Num 1
d. N1

14. Identify the invalid identi er.


a. Keyword
b. token
c. operator
d. and

15. Which keyboard key is used to run python programs?


a. F6
b. F5
c. F + n
d. Ctrl + r

16. Which method is used to nd the memory location of variable?


a. id( )
b. add( )
c. type( )
d. None of the above

17. Which of the following is valid operator?


a. in
b. on
c. it
d. at

18. ________________ method is used to nd the data type of a variable.


fi
fi
fi
a. type( )
b. id( )
c. typed( )
d. None of the above

19. _______________ escape sequence is used for horizontal tab.


a. \n
b. \t
c. \T
d. No

20. An escape sequence is represented by __________ slash followed by


one or two characters.
a. back
b. forward
c. double
d. None of the above

21. Write the output of the following code :


>>> x = 4 - 7j
>>> print(x.imag, x.real)
a. 4.0 -7.0
b. -7.0 4.0
c. Error
d. None of the above

22. What is the return type of function id( )?


a. oat
b. string
c. int
d. None of the above

23. By default, the Python scripts are saved in ____


a. Document
b. Desktop
c. Python installation folder
d. D drive

24. Which of the following is invalid Identi er?


a. break
b. FILE34
c. F_L
fl
fi
d. Myname

25. Which of the following is an exponent operator?


a. *
b. /
c. **
d. ***

You might also like