Professional Documents
Culture Documents
Mycstutorial - In-Class 12 Computer Science MCQs Python Revision Tour Set 1
Mycstutorial - In-Class 12 Computer Science MCQs Python Revision Tour Set 1
Tour Set – 1
mycstutorial.in/class-12-computer-science-mcq-python-revision-tour-set-1
August 9, 2021
a) Charles Babbage
c) Guido Gosling
d) James Gosling
b) 1991
c) 1992
d) 1989
b) Feb 1991
c) Feb 1992
d) Feb 1989
b) 1991
1/6
c) 1992
d) 1989
d) None of these
b) C Programming Language
b) Literals
c) Looping
d) Operators
b) Punctuators
c) Identifiers
d) Operators
2/6
Answer : (a) Selection
b) Looping
c) Jump Statement
d) Operators
b) Dictionary
c) Tuples
d) Class
3/6
Answer : (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
Answer : (a) he
Reason: round(number, round_digit) takes two arguments. Where round_digit is optional. Default
value of round_digit is 0.
4/6
a) _Day2
b) Day_2
c) 2_Day
d) Day2_
b) Week_Day_2
c) 2_WeekDay
d) WeekDay2_
b) Week_Day#2
c) 2_WeekDay
d) WeekDay2_
Reason: Variable name can not contain special symbol #. Only _ (underscore) is allowed.
b) Break
c) if
d) For
Answer : (c) if
5/6
Reason: Variable name can not be Keyword.
In Python, all keywords are in small letters, except True, False, and None.
b) Week_Day#2
c) 2_WeekDay
d) WeekDay2_
Reason: Variable name can not contain special symbol #. Only _ (underscore) is allowed.
6/6