100% found this document useful (1 vote)
742 views3 pages

Quarterly Exam: Grade: XI Subject: Computer Science

1) The document provides instructions for a Computer Science quarterly exam consisting of 3 sections worth a total of 40 marks. Section A contains 10 multiple choice questions worth 1 mark each. Section B contains 9 questions worth 2 marks each. Section C contains 4 questions worth 3 marks each. 2) The exam tests knowledge of Python programming concepts including modules, data types, operators, debugging, tokens, modes, literals, comments, type casting, mathematical expressions, and algorithms. 3) Students are instructed to use Python as the programming language and must answer all questions which cover a range of fundamental Python topics.

Uploaded by

Dharmesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
742 views3 pages

Quarterly Exam: Grade: XI Subject: Computer Science

1) The document provides instructions for a Computer Science quarterly exam consisting of 3 sections worth a total of 40 marks. Section A contains 10 multiple choice questions worth 1 mark each. Section B contains 9 questions worth 2 marks each. Section C contains 4 questions worth 3 marks each. 2) The exam tests knowledge of Python programming concepts including modules, data types, operators, debugging, tokens, modes, literals, comments, type casting, mathematical expressions, and algorithms. 3) Students are instructed to use Python as the programming language and must answer all questions which cover a range of fundamental Python topics.

Uploaded by

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

Quarterly Exam

Grade: XI Time: 1.30 hrs


Subject: Computer Science Max.Marks:40

Instructions:
 All questions are compulsory
 Programming Language: Python

SEC – A 10 × 1 =10
1) Identify and write the name of the module to which the following functions belongs:
i)floor() ii) randint()
2) Who developed Python language?
3) Which of the following can be used as valid variable identifier(s) in Python
(i) total (ii) 2Total (iii) Que$tion (iv) while
4) What are pythons built in core data types?
5) Write the Data types of the following identifiers/variable(s)
A=5+4j
B=10>15
6) Out of the following operators, which ones can be used with strings?

=, +, - , *, /,>

7) What is debugging?

8) What is meant by tokens? Name the tokens available in Python.

9) Write available modes in Python

10) What is the maximum possible length of an identifier / line in python?


SEC – B 9 × 2 =18

11) What are literals? How many types of literals are available in Python?
12) What is a comment? In how many ways can you create comments in Python.
13) Define Type Casting in Python. Give an Example
14) Write python program to do the following
i. To print Nature is Wonderful Take Care of it
ii. To read name and mobile no. of a person

15) Predict the value of R1, R2, R3, R4 from the following code fragment

X , Y = ”PEACEFUL”, “Soul”
Z , P = 12, 2
R1=X+Y
R2=Z+P
R3=X * 3
R4 = Y + Z

16) What will be output of the following code?


A, B, C, D = 9.2, 2.0, 4, 2
print (A/B)
print (A//B)
print (C**D)
print (A%D)

17) What are the advantages and disadvantages of Python programming language?
18) Identify the data types of following literals?
(i) True (ii) 33.82 (iii) “True” (iv) 565
19) Identify the data types of the following values given bellow –
3, 0XFACD, 13.0, {1:10, 2:20, 3:30}, ”14”,
2+0j, 0o11, [1, 2, 3], (3, 4, 5)
SEC – C 4 × 3 =12

20) Write the equivalent python expression for the following mathematical statements
(i) Area = πr2
(ii) x = 23+ 1412
(iii)
21) Find out the output:
a) import statistics
mvm=[5,6,7,5,6,5,5,9,11,12,23,5]
print(statistics. mean(mvm))
print(statistics. mode(mvm))

b) import random
print(random.randint(10,20))
print(random.randrange(1,20,5))

c) import math
print(math.ceil(2.36))
print(math.floor(7.41))

22) Answer the following questions


a) What is an expression?
b) What is an atom?
c) What are types of expressions available in Python?

23) Write an algorithm and draw a flow chart sum of two numbers

You might also like