Class 12 Computer Science 083
Python Revision Tour Set 1
Multiple Choice Questions [MCQs]
1. Who is the founder (designed by) of Python?
a) Charles Babbage
b) Guido Van Rossum
c) Guido Gosling
d) James Gosling
2. Python development is started in which year?
a) 1990
b) 1991
c) 1992
d) 1989
3. Python is released in which year?
a) Feb 1990
b) Feb 1991
c) Feb 1992
d) Feb 1989
4. Python is developed in which year?
a) 1990
b) 1991
c) 1992
d) 1989
5. Who is the developer of Python?
a) Free Software Foundation
b) Python Software Foundation
c) Open Source Foundation
d) None of these
6. Python is a successor of which programming Language?
a) ABC Programming Language
b) C Programming Language
c) Basic Programming Language
d) BPCL Programming Language
7. Which of the following is not a token?
a) Keywords
b) Literals
c) Looping
d) Operators
8. Which of the following is not a token?
a) Selection
b) Punctuators
c) Identifiers
d) Operators
9. Which of the following is a token?
a) Selection
b) Looping
c) Jump Statement
d) Operators
9. Which of the following is a valid set of keywords?
a) None, False, True, assert
b) del, is in, raise
c) break, continue, yield, with
d) while, for, if, else if
10. Which of the following is a valid set of keywords?
a) class, and, or, not
b) def, elif, else, except
c) from, global, import, local
d) lambda, pass, return, try
11. Which of these in not a core data type?
a) Lists
b) Dictionary
c) Tuples
d) Class
12. Given a function that does not return any value, What value is thrown by default when executed in shell.
a) int
b) bool
c) void
d) None
13. Following set of commands are executed in shell, what will be the output?
str=”hello”
str[:2]
a) he
b) lo
c) olleh
d) hello
14. Which of the following will run without errors?
a) round(45.8)
b) round(6352.898,2,5)
c) round()
d) round(7463.123,2,1)
15. What is the return type of function id ?
a) int
b) float
c) bool
d) dict
16. Which of the following is an invalid variable?
a) _Day2
b) Day_2
c) 2_Day
d) Day2_
17. Which of the following is an invalid variable?
a) Week Day_2
b) Week_Day_2
c) 2_WeekDay
d) WeekDay2_
18. Which of the following is an invalid variable?
a) Week Day_2
b) Week_Day#2
c) 2_WeekDay
d) WeekDay2_
19. Which of the following is an invalid variable?
a) While
b) Break
c) if
d) For
20. Which of the following is an invalid variable?
a) Week Day_2
b) Week_Day#2
c) 2_WeekDay
d) WeekDay2_
Class 12 Computer Science Multiple Choice Questions (MCQ) – Python Revision Tour
- Class 12 Computer Science MCQs Python Revision Tour Set – 1
- Class 12 Computer Science MCQs Python Revision Tour Set – 2