[go: up one dir, main page]

0% found this document useful (0 votes)
51 views6 pages

ComputerScience SQP

This document contains a 35 question periodic test for class 12 computer science students. It is divided into 5 sections (A-E) worth a total of 40 marks. Section A contains 10 multiple choice questions worth 1/2 mark each. Section B contains 5 questions worth 2 marks each. Section C contains 5 questions worth 3 marks each. Section D contains 2 questions worth 4 marks each. Section E contains 2 assertion/reasoning based questions worth 1 mark each. Programming questions must be answered using Python.

Uploaded by

Indraprasth bhel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views6 pages

ComputerScience SQP

This document contains a 35 question periodic test for class 12 computer science students. It is divided into 5 sections (A-E) worth a total of 40 marks. Section A contains 10 multiple choice questions worth 1/2 mark each. Section B contains 5 questions worth 2 marks each. Section C contains 5 questions worth 3 marks each. Section D contains 2 questions worth 4 marks each. Section E contains 2 assertion/reasoning based questions worth 1 mark each. Programming questions must be answered using Python.

Uploaded by

Indraprasth bhel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

PERIODIC TEST-1

Class: XII Session: 2023-24


Computer Science (083)
Time allowed: 3 Hours Maximum Marks: 40
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 10 questions (1 to 10). Each question carries 1/2 Mark.
 Section B, consists of 5 questions (11 to 15). Each question carries 2 Marks.
 Section C, consists of 5 questions (16 to 20). Each question carries 3 Marks.
 Section D, consists of 2 questions (21 to 22). Each question carries 4 Marks.
 Section E, consists of 2 questions (23 to 24). Each question carries 1 Marks.
 All programming questions are to be answered using Python Language only.

Ques. Question Marks


No.
SECTION A
1  Which of the following is an invalid variable? 1
(a) my_day_2 (b) 2nd_day

(c)Day_two (d) _2
2 Which of the following is not a keyword? 1
(a) eval (b) assert

(c) nonlocal (d) pass

3 How would you write xy in Python as an expression? 1


(a) x^y (b) x**y

(c) x^^y (d) none of these

4 What will be the value of the expression? 1


14 +13 % 15

(a) 14 (b) 27

(c) 12 (d) 0
5 Select the correct output of the code: 1

Options:
a. PYTHON-IS-Fun
b. PYTHON-is-Fun
c. Python-is-fun
d. PYTHON-Is -Fun

6 Evaluate the expression given below if A = 16 and B = 15. 1


A%B//A

(a) 0.0

(b) 0

(c) 1.0

7 Which of the following will delete key-value pair for key = “Red” from a 1
dictionary D1?
a. delete D1("Red")
b. del D1["Red"]
c. del.D1["Red"]
d. D1.del["Red"]
8  Which of the following statement prints the shown output below? 1
hello\example\test.txt

(a) print("hello\example\test.txt")

(b) print("hello\\example\\test.txt")

(c) print("hello\"example \"test.txt")

(d) print("hello"\example"\test.txt")
9 Which of the following statement(s) would give an error during execution 1
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

10 Following set of commands is executed in shell, what will be the output? 1


>>>str = "hello"

>>>str[ : 2]

(a) he (b) lo

(c) olleh (d) hello

13 State whether the following statement is True or False: 1


An exception may be raised even if the program is syntactically correct.
Q23 and 24 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
(c) A is True but R is False
(d) A is false but R is True
17 Assertion(A): List is an immutable data type 1
Reasoning(R): When an attempt is made to update the value of an
immutable variable, the old variable is destroyed and a new variable is
created by the same name in memory.
18 Assertion(A): Python standard library consists of number of modules. 1
Reasoning(R): A function in a module is used to simplify the code and
avoids repetition.
SECTION B
11 How many types of literals? Define tokens? 1+1=2

12 What is Implicit Type Conversion? 1+1=2


What is Explicit Type Conversion?

13 What do you know about dictionary? Define with syntax? 2


14 What is the use of tuples in python? Define with syntax? 2

15 Predict the output of the following code: 2

SECTION C
16 Write a program to print any table using while loop and for loop? 3

17 Write a program to print Fibonacci series? 3

18 What is the use of random function? Define all the random functions 3
with example?
19 What do you know about math module? Write any five maths 3
function in python? With example?

20 Write a python script to take input for 3 numbers,check and print the 3
largest number?
SECTION D

You might also like