Model Paper for CBSE Computer Science Class 12 Term 1 Exam. Important MCQ (Objective Questions) of Class XII CS (Python), for the study of upcoming Board semester exam.
CBSE Computer Science Class 12 – Model Paper for Term 1
Number of Questions : 35
Time : 90 Minutes
Type : MCQ
Q.1. ___________ is used in defining functions in turn of bracket?
a)Zeros
b)ctrl + p
c)Indentation
d)footer
Show Answer
Q.2.which of the following is not a keyword in python.
1) false
2) none
3) class
4) range
Show Answer
3.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
4.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
5.pyhton follows-
a) dynamic typing
b) static typing
c) wealson typing method
d) harry merger typing method
Show Answer
6.which is correct
1) print(“this my world”)
2) print(‘this is my world’)
3) 1&2
4) none of them
Show Answer
Q7. Which of the following is the reason to use Functions?
1) Reduce program size
2) Avoiding ambiguity
3) More easily understandable
4) All of the above
Show Answer
Q8. Is there a mistake in code
def interest(principal =1000, rate, time)
1)True
2)false
Show Answer
Q.9. Which scope can be accessed by any part of the program?
1) program scope
2) volatile scope
3) Global scope
4) Local scope
Show Answer
Q.10. Any scope which can be only accessed in the part is
1) program scope
2) volatile scope
3) Global scope
4) Local scope
Show Answer
Q.11. Is Python variables are storage container?
1)True
2)False
Show Answer
Q.12.
Which is not python function types.
a) Built-in function
b) absolute function
c)functions defined in modules
d)user defined function
Show Answer
Q.13. What is a function ?
1. A function is a block code that runs when it is called.
2. A function is a block code that runs automatically.
3. A function is a bug in program.
4. A function extends the life of computer hardware and also is a hardware part.
Show Answer
Q.14. What does cmath module provides.
1) C language mathematical function
2) Mathematical functions for complex numbers
3) Non-Mathematical functions for complex functions
4) it is a function
Show Answer
Q.15.The above statement will __________ file in ________ mode.
a.File object,write
b.Open,Read
c.data.txt,append
d.Home,append plus
Show Answer
Q.16. What will be the output of the following Python code?
#modules
def change (a):
b=[x * 2 for x in a]
print (b)
#module 2
def change (a):
b= (x*x for x in a)
print (b)
from module import change
from module2 import change
#main
s = [1, 2, 3]
change (s)
(a) [2, 4, 6]
(b) [1, 4, 9]
(c)
[2, 4, 6]
[1, 4, 9]
(d) There is a name cash
Show Answer
Q.17. What are file object.
File object are used to read and write data to a file on disk.
1)True
2)False
Show Answer
Q.18. Which is of this is binary file mode?
1)’r’
2)’rb’
3)’w’
4)’a’
Show Answer
Q.19.Which of the following file-modes does retains file data and append new data.
1)’a+’
2)’a’
3)’w+’
4)’r+’
Show Answer
Q.20.Is there a delimiter for binary files.
1) Yes
2) No
Show Answer
Q.21.What is easier for a program to read and write.
1) Binary file
2) Text file
3) Doc file
4) Excel file
Show Answer
Q.22. for opening of the file. Which command is used.
1)read()
2)write()
3)open()
4)append()
Show Answer
Q.23.What does this code myfile=open(“taxes.txt”).
1) opens the taxes.txt in default read mode.
2) opens the taxes.txt in default write mode.
3) opens the taxes.txt in default append mode.
4) opens the taxes.txt in default read and write mode.
Show Answer
Computer Science (Python) Class 12 Model Paper Term 1
Q.24. Could a method(function) invoke or call itself.
a) yes
b) no
Show Answer
Q.25. What is direct recursion.
a) A function calls itself from the body
b) A function is called from another function.
c) Redo and undo is done.
d) Compiler is used instead of interpreter.
Show Answer
Q.26. What is indirect recursion.
a) A function calls itself from the body
b) A function is called from another function.
c) Redo and undo is done.
d) Compiler is used instead of interpreter.
Show Answer
Q.27.The explicit type conversion is known as
1) target value
2) map casting
3) type casting
4) value casting
Show Answer
Q.28. Choose the correct output
def bp(sg,n):
if n>0:
print(sg[n],end=’ ‘)
bp(sg,n-1)
elif n==0:
print(sg[0])
s=input(“Enter a string”)
bp(s,len(s)-1)
input is – NEWS
1)news
2)News
3)SWEN
4)swen
Show Answer
Q.29.which has the highest operator precedence
1) parentheses
2) exponentiation
3) bitwise nor
4) multiplication
Show Answer
Q.30.
def macro(n):
if n<2:
return 1
return n *macro(n)
n=int(Input(“Enter a number(>0):”))
print(macro(n))
input n= 4
a)20
b)25
c)24
d)26
Show Answer
31.Fibonacci series
Each succeeding number is the sum of the two preceding Fibonacci numbers.
1)true
2)false
Show Answer
32.Python converts all operand up to the type of the largest operand(type promotion).
a) true
b) false
Show Answer
33.which of this is not a data type?
1) integer
2) floating point number
3) complex n.0
4) octagon
Show Answer
34.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
35.String in python are sequence of
a) ASCII code
b) unicode
c) balance code
d) mode code
Show Answer
Thanks for attempt Computer Science Python) Class 12 Model Paper for CBSE Term 1 Examination.
Sample Paper for Computer Science (Python) Class 12 – Term 1 – Attempt Now
Thanks for this amazing MCQ questions,It really helped me to evaluate my performance