Humanities/Arts Exam  >  Humanities/Arts Notes  >  CBSE Sample Papers for Class 12 Humanities  >  Class 12 Computer Science: CBSE Sample Question Papers (2023-24)

Class 12 Computer Science: CBSE Sample Question Papers (2023-24) | CBSE Sample Papers for Class 12 Humanities - Humanities/Arts PDF Download

Download, print and study this document offline
Please wait while the PDF view is loading
 Page 1


[1] 
 
Class: XII Session: 2023-24 
Computer Science (083) 
Sample Question Paper (Theory) 
Time allowed: 3 Hours                                           Maximum Marks: 70   
    General Instructions:  
? Please check this question paper contains 35 questions. 
? The paper is divided into 4 Sections- A, B, C, D and E.  
? Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark. 
? Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.  
? Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks. 
? Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks. 
? Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks. 
? All programming questions are to be answered using Python Language only. 
 
Que
s No 
Question 
Marks 
SECTION A 
1 State True or False:  
“In a Python program, if a break statement is given in a nested loop, it 
terminates the execution of all loops in one go.” 
1 
2 In a table in MYSQL database, an attribute A of datatype varchar(20) 
has the value “Keshav”. The attribute B of datatype char(20) has value 
“Meenakshi”. How many characters are occupied by attribute A and 
attribute B? 
a. 20,6 b. 6,20 
c. 9,6 d. 6,9 
  
  
 
1 
3 What will be the output of the following statement: 
print(3-2**2**3+99/11) 
a. 244 b. 244.0 
c. -244.0 
 
d. Error 
  
 
1 
4 Select the correct output of the code: 1 
Page 2


[1] 
 
Class: XII Session: 2023-24 
Computer Science (083) 
Sample Question Paper (Theory) 
Time allowed: 3 Hours                                           Maximum Marks: 70   
    General Instructions:  
? Please check this question paper contains 35 questions. 
? The paper is divided into 4 Sections- A, B, C, D and E.  
? Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark. 
? Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.  
? Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks. 
? Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks. 
? Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks. 
? All programming questions are to be answered using Python Language only. 
 
Que
s No 
Question 
Marks 
SECTION A 
1 State True or False:  
“In a Python program, if a break statement is given in a nested loop, it 
terminates the execution of all loops in one go.” 
1 
2 In a table in MYSQL database, an attribute A of datatype varchar(20) 
has the value “Keshav”. The attribute B of datatype char(20) has value 
“Meenakshi”. How many characters are occupied by attribute A and 
attribute B? 
a. 20,6 b. 6,20 
c. 9,6 d. 6,9 
  
  
 
1 
3 What will be the output of the following statement: 
print(3-2**2**3+99/11) 
a. 244 b. 244.0 
c. -244.0 
 
d. Error 
  
 
1 
4 Select the correct output of the code: 1 
[2] 
 
 
 
Options: 
a. PYTHON-IS-Fun 
b. PYTHON-is-Fun 
c. Python-is-fun 
d. PYTHON-Is -Fun 
5 In MYSQL database, if a table, Alpha has degree 5 and cardinality 3, and 
another table, Beta has degree 3 and cardinality 5, what will be the degree 
and cardinality of the Cartesian product of Alpha and Beta?  
a. 5,3 b. 8,15 
c. 3,5 d. 15,8 
 
1 
6 Riya wants to transfer pictures from her mobile phone to her laptop. She 
uses Bluetooth Technology to connect two devices. Which type of network 
will be formed in this case? 
a. PAN b. LAN 
c. MAN d. WAN 
 
1 
7 Which of the following will delete key-value pair for key = “Red” from a 
dictionary D1? 
a. delete D1("Red") 
b. del D1["Red"] 
c. del.D1["Red"] 
d. D1.del["Red"] 
1 
8 Consider the statements given below and then choose the correct output 
from the given options: 
pride="#G20 Presidency" 
print(pride[-2:2:-2]) 
1 
Page 3


[1] 
 
Class: XII Session: 2023-24 
Computer Science (083) 
Sample Question Paper (Theory) 
Time allowed: 3 Hours                                           Maximum Marks: 70   
    General Instructions:  
? Please check this question paper contains 35 questions. 
? The paper is divided into 4 Sections- A, B, C, D and E.  
? Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark. 
? Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.  
? Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks. 
? Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks. 
? Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks. 
? All programming questions are to be answered using Python Language only. 
 
Que
s No 
Question 
Marks 
SECTION A 
1 State True or False:  
“In a Python program, if a break statement is given in a nested loop, it 
terminates the execution of all loops in one go.” 
1 
2 In a table in MYSQL database, an attribute A of datatype varchar(20) 
has the value “Keshav”. The attribute B of datatype char(20) has value 
“Meenakshi”. How many characters are occupied by attribute A and 
attribute B? 
a. 20,6 b. 6,20 
c. 9,6 d. 6,9 
  
  
 
1 
3 What will be the output of the following statement: 
print(3-2**2**3+99/11) 
a. 244 b. 244.0 
c. -244.0 
 
d. Error 
  
 
1 
4 Select the correct output of the code: 1 
[2] 
 
 
 
Options: 
a. PYTHON-IS-Fun 
b. PYTHON-is-Fun 
c. Python-is-fun 
d. PYTHON-Is -Fun 
5 In MYSQL database, if a table, Alpha has degree 5 and cardinality 3, and 
another table, Beta has degree 3 and cardinality 5, what will be the degree 
and cardinality of the Cartesian product of Alpha and Beta?  
a. 5,3 b. 8,15 
c. 3,5 d. 15,8 
 
1 
6 Riya wants to transfer pictures from her mobile phone to her laptop. She 
uses Bluetooth Technology to connect two devices. Which type of network 
will be formed in this case? 
a. PAN b. LAN 
c. MAN d. WAN 
 
1 
7 Which of the following will delete key-value pair for key = “Red” from a 
dictionary D1? 
a. delete D1("Red") 
b. del D1["Red"] 
c. del.D1["Red"] 
d. D1.del["Red"] 
1 
8 Consider the statements given below and then choose the correct output 
from the given options: 
pride="#G20 Presidency" 
print(pride[-2:2:-2]) 
1 
[3] 
 
 
Options: 
a. ndsr 
b. ceieP0 
c. ceieP 
d. yndsr 
9 Which of the following statement(s) would give an error during execution of 
the following code? 
tup = (20,30,40,50,80,79) 
print(tup)          #Statement 1 
print(tup[3]+50)    #Statement 2 
print(max(tup))     #Statement 3 
tup[4]=80           #Statement 4 
 
Options: 
a. Statement 1 
b. Statement 2 
c. Statement 3 
d. Statement 4 
1 
10 What possible outputs(s) will be obtained when the following code is 
executed? 
 
 
Options: 
a.    
1 
Page 4


[1] 
 
Class: XII Session: 2023-24 
Computer Science (083) 
Sample Question Paper (Theory) 
Time allowed: 3 Hours                                           Maximum Marks: 70   
    General Instructions:  
? Please check this question paper contains 35 questions. 
? The paper is divided into 4 Sections- A, B, C, D and E.  
? Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark. 
? Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.  
? Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks. 
? Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks. 
? Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks. 
? All programming questions are to be answered using Python Language only. 
 
Que
s No 
Question 
Marks 
SECTION A 
1 State True or False:  
“In a Python program, if a break statement is given in a nested loop, it 
terminates the execution of all loops in one go.” 
1 
2 In a table in MYSQL database, an attribute A of datatype varchar(20) 
has the value “Keshav”. The attribute B of datatype char(20) has value 
“Meenakshi”. How many characters are occupied by attribute A and 
attribute B? 
a. 20,6 b. 6,20 
c. 9,6 d. 6,9 
  
  
 
1 
3 What will be the output of the following statement: 
print(3-2**2**3+99/11) 
a. 244 b. 244.0 
c. -244.0 
 
d. Error 
  
 
1 
4 Select the correct output of the code: 1 
[2] 
 
 
 
Options: 
a. PYTHON-IS-Fun 
b. PYTHON-is-Fun 
c. Python-is-fun 
d. PYTHON-Is -Fun 
5 In MYSQL database, if a table, Alpha has degree 5 and cardinality 3, and 
another table, Beta has degree 3 and cardinality 5, what will be the degree 
and cardinality of the Cartesian product of Alpha and Beta?  
a. 5,3 b. 8,15 
c. 3,5 d. 15,8 
 
1 
6 Riya wants to transfer pictures from her mobile phone to her laptop. She 
uses Bluetooth Technology to connect two devices. Which type of network 
will be formed in this case? 
a. PAN b. LAN 
c. MAN d. WAN 
 
1 
7 Which of the following will delete key-value pair for key = “Red” from a 
dictionary D1? 
a. delete D1("Red") 
b. del D1["Red"] 
c. del.D1["Red"] 
d. D1.del["Red"] 
1 
8 Consider the statements given below and then choose the correct output 
from the given options: 
pride="#G20 Presidency" 
print(pride[-2:2:-2]) 
1 
[3] 
 
 
Options: 
a. ndsr 
b. ceieP0 
c. ceieP 
d. yndsr 
9 Which of the following statement(s) would give an error during execution of 
the following code? 
tup = (20,30,40,50,80,79) 
print(tup)          #Statement 1 
print(tup[3]+50)    #Statement 2 
print(max(tup))     #Statement 3 
tup[4]=80           #Statement 4 
 
Options: 
a. Statement 1 
b. Statement 2 
c. Statement 3 
d. Statement 4 
1 
10 What possible outputs(s) will be obtained when the following code is 
executed? 
 
 
Options: 
a.    
1 
[4] 
 
RED* 
WHITE* 
BLACK* 
   
b.    
WHITE* 
BLACK* 
c.   
WHITE* WHITE* 
BLACK* BLACK* 
 
d.   
YELLOW* 
WHITE*WHITE* 
BLACK* BLACK* BLACK* 
 
11 Fill in the blank: 
The modem at the sender’s computer end acts as a ____________. 
a. Model 
b. Modulator 
c. Demodulator 
d. Convertor 
1 
12 Consider the code given below: 
 
1 
Page 5


[1] 
 
Class: XII Session: 2023-24 
Computer Science (083) 
Sample Question Paper (Theory) 
Time allowed: 3 Hours                                           Maximum Marks: 70   
    General Instructions:  
? Please check this question paper contains 35 questions. 
? The paper is divided into 4 Sections- A, B, C, D and E.  
? Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark. 
? Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.  
? Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks. 
? Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks. 
? Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks. 
? All programming questions are to be answered using Python Language only. 
 
Que
s No 
Question 
Marks 
SECTION A 
1 State True or False:  
“In a Python program, if a break statement is given in a nested loop, it 
terminates the execution of all loops in one go.” 
1 
2 In a table in MYSQL database, an attribute A of datatype varchar(20) 
has the value “Keshav”. The attribute B of datatype char(20) has value 
“Meenakshi”. How many characters are occupied by attribute A and 
attribute B? 
a. 20,6 b. 6,20 
c. 9,6 d. 6,9 
  
  
 
1 
3 What will be the output of the following statement: 
print(3-2**2**3+99/11) 
a. 244 b. 244.0 
c. -244.0 
 
d. Error 
  
 
1 
4 Select the correct output of the code: 1 
[2] 
 
 
 
Options: 
a. PYTHON-IS-Fun 
b. PYTHON-is-Fun 
c. Python-is-fun 
d. PYTHON-Is -Fun 
5 In MYSQL database, if a table, Alpha has degree 5 and cardinality 3, and 
another table, Beta has degree 3 and cardinality 5, what will be the degree 
and cardinality of the Cartesian product of Alpha and Beta?  
a. 5,3 b. 8,15 
c. 3,5 d. 15,8 
 
1 
6 Riya wants to transfer pictures from her mobile phone to her laptop. She 
uses Bluetooth Technology to connect two devices. Which type of network 
will be formed in this case? 
a. PAN b. LAN 
c. MAN d. WAN 
 
1 
7 Which of the following will delete key-value pair for key = “Red” from a 
dictionary D1? 
a. delete D1("Red") 
b. del D1["Red"] 
c. del.D1["Red"] 
d. D1.del["Red"] 
1 
8 Consider the statements given below and then choose the correct output 
from the given options: 
pride="#G20 Presidency" 
print(pride[-2:2:-2]) 
1 
[3] 
 
 
Options: 
a. ndsr 
b. ceieP0 
c. ceieP 
d. yndsr 
9 Which of the following statement(s) would give an error during execution of 
the following code? 
tup = (20,30,40,50,80,79) 
print(tup)          #Statement 1 
print(tup[3]+50)    #Statement 2 
print(max(tup))     #Statement 3 
tup[4]=80           #Statement 4 
 
Options: 
a. Statement 1 
b. Statement 2 
c. Statement 3 
d. Statement 4 
1 
10 What possible outputs(s) will be obtained when the following code is 
executed? 
 
 
Options: 
a.    
1 
[4] 
 
RED* 
WHITE* 
BLACK* 
   
b.    
WHITE* 
BLACK* 
c.   
WHITE* WHITE* 
BLACK* BLACK* 
 
d.   
YELLOW* 
WHITE*WHITE* 
BLACK* BLACK* BLACK* 
 
11 Fill in the blank: 
The modem at the sender’s computer end acts as a ____________. 
a. Model 
b. Modulator 
c. Demodulator 
d. Convertor 
1 
12 Consider the code given below: 
 
1 
[5] 
 
Which of the following statements should be given in the blank for 
#Missing Statement, if the output produced is 110? 
 
Options: 
a. global a 
b. global b=100 
c. global b 
d. global a=100 
13 State whether the following statement is True or False: 
An exception may be raised even if the program is syntactically correct. 
1 
14 Which of the following statements is FALSE about keys in a relational 
database? 
a. Any candidate key is eligible to become a primary key. 
b. A primary key uniquely identifies the tuples in a relation. 
c. A candidate key that is not a primary key is a foreign key. 
d. A foreign key is an attribute whose value is derived from the primary 
key of another relation. 
1 
15 Fill in the blank: 
In case of _____________ switching, before a communication starts, a 
dedicated path is identified between the sender and the receiver. 
1 
16 Which of the following functions changes the position of file pointer and 
returns its new position? 
a. flush() 
b. tell() 
c. seek() 
d. offset() 
1 
 Q17 and 18 are ASSERTION AND REASONING based questions. Mark 
the correct choice as 
(a) Both A and R are true and R is the correct explanation for A 
(b) Both A and R are true and R is not the correct explanation for A 
 
Read More
129 docs|4 tests

Top Courses for Humanities/Arts

129 docs|4 tests
Download as PDF
Explore Courses for Humanities/Arts exam

Top Courses for Humanities/Arts

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Class 12 Computer Science: CBSE Sample Question Papers (2023-24) | CBSE Sample Papers for Class 12 Humanities - Humanities/Arts

,

study material

,

Sample Paper

,

practice quizzes

,

Summary

,

Viva Questions

,

Exam

,

ppt

,

video lectures

,

pdf

,

Important questions

,

Free

,

shortcuts and tricks

,

Class 12 Computer Science: CBSE Sample Question Papers (2023-24) | CBSE Sample Papers for Class 12 Humanities - Humanities/Arts

,

past year papers

,

Extra Questions

,

Semester Notes

,

Previous Year Questions with Solutions

,

mock tests for examination

,

MCQs

,

Class 12 Computer Science: CBSE Sample Question Papers (2023-24) | CBSE Sample Papers for Class 12 Humanities - Humanities/Arts

,

Objective type Questions

;