Class 12 Computer Science MCQs Python Revision Tour Set - 1 - MyCSTutorial - The Path To Success in Exam
Class 12 Computer Science MCQs Python Revision Tour Set - 1 - MyCSTutorial - The Path To Success in Exam
–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
a) 1990
b) 1991
c) 1992
d) 1989
a) Feb 1990
b) Feb 1991
c) Feb 1992
d) Feb 1989
a) 1990
b) 1991
c) 1992
d) 1989
d) None of these
b) C Programming Language
a) Keywords
b) Literals
c) Looping
d) Operators
a) Selection
b) Punctuators
c) Identifiers
d) Operators
a) Selection
b) Looping
c) Jump Statement
d) Operators
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
Answer : (a) he
a) round(45.8)
b) round(6352.898,2,5)
c) round()
d) round(7463.123,2,1)
Reason: round(number, round_digit) takes two arguments. Where round_digit is optional. Default value
of round_digit is 0.
a) int
b) float
c) bool
d) dict
a) _Day2
b) Day_2
c) 2_Day
d) Day2_
a) Week Day_2
b) Week_Day_2
c) 2_WeekDay
d) WeekDay2_
a) Week Day_2
b) Week_Day#2
c) 2_WeekDay
d) WeekDay2_
Reason: Variable name can not contain special symbol #. Only _ (underscore) is allowed.
a) While
b) Break
c) if
d) For
Answer : (c) if
In Python, all keywords are in small letters, except True, False, and None.
a) Week Day_2
b) Week_Day#2
c) 2_WeekDay
d) WeekDay2_
Reason: Variable name can not contain special symbol #. Only _ (underscore) is allowed.