Model question paper for 12th computer science 2023
MODEL QUESTION PAPER-2023
STD: XII MAX.MARKS: 70
SUB: COMPUTER SCIENCE TIME: 3.00Hrs
PART – I
Note : (i) Answer all the questions. 15×1=15
(ii) Choose the most appropriate answer from the given four alternatives and write the option
code and the corresponding answer.
1.Which one of the following is not a factor to measure the execution time of an algorithm?
a) Speed of the machine
b) Operating system
c) Programming language used
d) Selection
2. The values which are passed to a function definition are called
(a) Arguments
(b) Subroutines
(c) Function
(d) Definition
3. Which of the following is used in programming languages to map the variable and object?
(a) ::
(b) :=
(c) =
(d) ==
4. Who developed Python ?
a) Ritche
b) Guido Van Rossum
c) Bill Gates
d) Sunder Pitchai
5. What will be the result of the following Python code?
S=[x**2 for x in range(5)]
print(S)
(a) [0,1,2,4,5]
(b) [0,1,4,9,16]
(c) [0,1,4,9,16,25]
(d) [1,4,9,16,25
6. Which of the following allow to name the various parts of a multi-item object?
(A) Tuples
(B) Lists
(C) Classes
(D) quadrats
7. Which of the following is not a scripting language?
a) Ruby
b) DBMS
c) Perl
d) Javascript
8. What is the output of the following snippet?
i=1
while True:
if i%3 ==0:
break
print(i,end=”)
i +=1
A) 1 2
B) 123
C) 1234
D) 124
9. Which of the following formatting character is used to print exponential notation in upper case?
(a) %e
(b) %E
(c) %g
(d) %n
10. Which of the following class declaration is correct?
(a) class class_name
(b) class class_name<>
(c) class class_name:
(d) class class_name[ ]
11. Marks = [20, 40, 60, 80, 100]
Print(Marks[-2])
What will be the output?
a) 60
b) 100
c) 40
d) 80
12. Which is a Data Control Language command in SQL?
a) Alter
b) Grant
c) Truncate
d) Commit
PART – II
Note : Answer any Six questions. Question No. 24 is compulsory. 6 × 2= 12
Define Function with respect to Programming language.
What is use of next() function?
What is the use of replace () in python? Write the general format of replace ()
What are the main advantages of function?
What is data consistency?
What is histogram?
Write note on wishful thinking.
What is singleton tuple?
Write the syntax for creating objects.
PART – III
Note : Answer any Six questions. Question No. 33 is compulsory. 6 × 3= 18
Write a note on Asymptotic notation.
Write a short about the followings with suitable example: (a) capitalize( ) (b) swapcase( )
Write the use of Savepoint command with an example.
What is MinGW? What is its use?
Mention the difference between fetchone() and fetchmany()
What is variable-length arguments? Give an example.
Write about CSV module’s reader() function.
Write note on comments in python.
What will be the output of the following python program?
N=[]
for x in range(1,11):
N.append(x)
Num=tuple(N)
print(Num)
for index, i in enumerate(N):
if(i%2==1):
del N[index]
print(N)
PART – IV
Note : Answer all the qeustions 5 × 5= 25
(a) Write any Five Characteristics of Modules.
OR
(b) Explain the Bubble sort algorithm with example.
(a) Explain the different set operations supported by python with suitable example.
OR
(b) Construct the following SQL statements in the student table:
(i) SELECT statement using GROUP BY clause.
(ii) SELECT statement using ORDER BY clause.
(a) What is the purpose of sys, os, getopt module in Python. Explain
OR
(b) Write the rules to be followed to format the data in a CSV file
(a) Write the features of python over C++.
OR
(b) Write a SQL statement to create a table for employee having any five fields and create a table
constraint for the employee table.
(a) Explain the components of DBMS.
OR
(b) Find the output of the following python code.
class Sample:
num=0
def __init__(self, var):
Sample.num+=1
self.var=var
print(“The object value is = “, var)
print(“The count of object created = “, Sample.num)
S1=Sample(15)
S2=Sample(35)
S3=Sample(45)
[pdf-embedder url=”https://csknowledgeopener.com/wp-content/uploads/2023/02/XII-CS-PUBLIC-MODEL-QP-2023.pdf” title=”XII CS PUBLIC MODEL QP 2023″]