Objective MCQ questions for CBSE Exams Class 12 from chapter ‘Revision of the basics of Python’ Computer Science with solution. Solved MCQ for Semester 1 CBSE Board Exam.
- Chapter : Revision of the Basics of Python – MCQ
- MCQ for Class 12 th Sem 1 CBSE Exams
- Reference Book : Sumita Arora
1.Python programming language was developed by
1) Guido van Rossum
2) Tim berner lee
3) Harly speector
4) Donso bener
Show Answer
2.Which of these is not a individual unit in a program.
1) keywords
2) Identifiers
3) Literals
4) Function
Show Answer
3.which of the following is not a keyword in python.
1) false
2) none
3) class
4) range
Show Answer
4.Naming rules for python identifiers
1) variable names must only be a non-keyword word with no space in between
2) variable names must be made up of only letters,number and underscore(_)
3) variable names cannot begin with a number, although they can contain numbers.
4) All
Show Answer
5.Literals
1) are data items that have a fixed/ constant value.
2) are the names given to different parts of the exam.
3) predefined words with special meaning to the language compiler or interpreter.
4) none of these
Show Answer
6.pyhton follows-
a) dynamic typing
b) static typing
c) wealson typing method
d) harry merger typing method
Show Answer
7.which is the correct assignment in python?
1) a=b=c=10
2) x,y,z=10,20,30
3) x,y=y,x
4) all are correct
Show Answer
8.which print line code is correct?
1) print this is my world
2) printf(‘I like sunshine’)
3) print(‘this is my world’)
4) none of these
Show Answer
9.which is correct
1) print(“this my world”)
2) print(‘this is my world’)
3) 1&2
4) none of them
Show Answer
10.which is not a data type?
1) number
2) string
3) list
4) array
Show Answer
11.which of this is not a data type?
1) integer
2) floating point number
3) complex n.0
4) octagon
Show Answer
12.what does z.real and z.img gives
1) images
2) rational number
3) complex n.o real and imaginary part
4) integers
Show Answer
13.String in python are sequence of
a) ASCII code
b) unicode
c) balance code
d) mode code
Show Answer
14.A group of comma-separated values of any datatype between square bracket is ,,,,,.
a) tuple
b) dictionary
c) list
d) array
Show Answer
15. A group of comma-separated values of any datatypewithin parentheses is ,,,,,.
a) tuple
b) dictionary
c) list
d) array
Show Answer
16………. The dictionary is an unordered set of comma-separated key:value pairs, within {},with the requirement that no two keys can be the same.
a) tuple
b) dictionary
c) list
d) array
Show Answer
17.which of these is immutable.
1) integer
2) list
3) dictionarty
4) set
Show Answer
18.which of the following are immutable.
1) Numbers
2) string
3) tupple
4) all of these
Show Answer
19.Immutable types are those that can never change their value in place.
a) true
b) false
Show Answer
20.mutable means that in the same memory address, new value can be stored as and when you want.
a) true
b) false
Show Answer
21.Python converts all operand up to the type of the largest operand(type promotion).
a) true
b) false
Show Answer
22.which has the highest operator precedence
1) parentheses
2) exponentiation
3) bitwise nor
4) multiplication
Show Answer
23.The precedence of logical operators is lower than the arithmetic operators
1) true
2) false
Show Answer
24.The explicit type conversion is known as
1) target value
2) map casting
3) type casting
4) value casting
Show Answer
25.to use cos sin tan we should import which file
1) no need to import already on
2) import math
3) import trigonometry
4) include math.h
Show Answer
26. A break statement terminates the very loop it lies within. Execution resumes at the statement immediately following the body of the terminated statement.
1) true
2) false
Show Answer
27. The continue statement forces the next iteration of the loop to take place,skipping any code in between.
1) true
2) false
Show Answer
28.Which does not stored as individual character in contiguous locations, with two way index for each location.
1) tupple
2) dictionary
3) string
4) list
Show Answer
29.which of the following is immutable
1) string
2) dictionary
3) list
4) set
Show Answer
30.output of “power”+”ful”
1) ‘power’’ful’
2) “powerful”
3) ‘powerful’
4)Full
Show Answer
31.output of 3*”ha!”
1) ha
2) 3ha
3) 3-ha
4) ’hahaha’
Show Answer
32.In returns true if a character or a substring exists in the given string.
1) true
2) false
Show Answer
33.Functions that takes a single character and returns the corresponding Unicode value.
1) id()
2) ord()
3) chr()
4) word()
Show Answer
34.opposite of ord() is
1) chr()
2) fac()
3) word()
4) name()
Show Answer
35.which will give you orginal string s.n is any index.
1) s[:n]+s[n:]
2) s[:n+2]+s[n+1:]
3) s[:n-1]+s[n+1:]
4) s[:n-2]+s[n+2:]
Show Answer
36.how to join two list lst1 and lst2
1) lst1+lst2
2) lst1*lst2
3) ”lst1”+”lst2”
4) ’lst1’+’lst2’
Show Answer
37.output of the following
Lst1=[1,4,9]
lst1*3
1) [1,4,9,1,4,9,1,4,9]
2) [1,4,9]3
3) [1,1,1,4,4,4,9,9,9]
4) [1,3,4,9]
Show Answer
Chapter : Revision of the Basics of Python Computer Science MCQ for CBSE Exam
Try this out-
Python Revision Tour-I Class 12 Solved Assignment – CS Study
Python Revision Tour 2 Class 12 : Solutions – CS Study
very usefull
Plz…check
No 35- both 1 and 2 are right…so correct it…
Thanks
And also number 28
Q should be…which does not stored as individual character…..
And thank you for your resources…..🙏☺🤟🏼
Thanks