[go: up one dir, main page]

0% found this document useful (0 votes)
8 views2 pages

CS Class Xi

This document is an exam paper for Class XI Computer Science with a total of 50 marks and a duration of 1.5 hours. It is divided into three sections: Section A contains multiple-choice questions, Section B includes short answer questions, and Section C consists of programming tasks. The questions cover various topics related to Python programming, including data types, functions, and error identification.

Uploaded by

srimukul5
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)
8 views2 pages

CS Class Xi

This document is an exam paper for Class XI Computer Science with a total of 50 marks and a duration of 1.5 hours. It is divided into three sections: Section A contains multiple-choice questions, Section B includes short answer questions, and Section C consists of programming tasks. The questions cover various topics related to Python programming, including data types, functions, and error identification.

Uploaded by

srimukul5
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/ 2

Dr.

Sudama Prasad Vidyasthali


II Periodic Exam(2022-2023)
M.M.:50 Class –XI
Time : 1.5 hrs. Subject- ComputerScience(083)

General Instructions:
The question paper is divided into 3 Sections – A, B,C.
Section A, consist of 10 Questions (1-10).
Section B, consist of 10 Questions (11-20).
Section B, consist of 10 Questions (21-25).
Section A
This section consists of 10 Questions (1 to 10). Choose the correct option.Each
question carries 1 marks.
1-Which one of these is floor division?
a) / b) // c) % d) None of the mentioned
2- Which one of the following is the correct extension of the Python file?
a) .py b) .python c) .p d) None of these
3-What is the answer to this expression, 22 % 3 is?
a) 7 b) 0 c) 1 d) 5
4-A function in Python begins with which keyword?
a) void b) return c) def d) int
5- Which of the following statements assigns the value 25 to the variable x in Python:
a) x ← 25 b) x = 25 c) x := 25 d) int x = 25
6-In which data type, indexing is not valid?
a) List b)String c) Dictionary d) None of the above
7- l = [ 4, 8, 9, 2.6, 5 ] is a type of which data type in python?
a) List b) Tuple c) Set d) None of these
8-If x=3.123, then int(x) will give ?
a) 1 b) 0 c) 1 d) 3
9-In order to store values in terms of key and value we use that core data type in
python?
a) List b) Class c) Dictionary d) Tuple
10-Which statement is true from following-
a) List is mutable & Tuple is immutable b) List is immutable & Tuple is mutable
c) Both are Mutable. d) Both are Immutable
Section B

This section consists of 10 Questions (11 to 20).Each question carries 2 marks.


11-What will be the output of the following code:
#this is a sample program
#to output simple statements
#print (“such as”)
print (“Take every chance”)

12- What are the advantages of Python programming language?


13- How are keywords different from identifiers?
14-What would the following code do:
X=Y=7
15-Find out two errors in following code-
Temperature = 90
Print Temperature
16-Find out errors in following code-
a = 30
b=a+b
print (a And b)
17-Predict the output
a,b,c = 2,3,4
a,b,c = a*a, a*b, a*c
print (a,b,c)
18- What is the use of Random Module?
19- What is the difference between Function & Module?
20- What could be minimum possible & maximum possible numbers by following code?
Import random
print(random.randint(0,10))

Section C

This section consists of 5 Questions (21 to 25).Each question caries 4 marks.


21-What are data types? What are python’s built-in core data types also explain Mutable & Immutable data
types?
22-Write a program to obtain length & breadth of a rectangle & calculate its area.
23-Write a program that accepts marks in five subjects & otput average marks.
24-What are literals in Python? How many types of literals are allowed in Python?
25-find the error in the following codes-
(a) y = x + 5 (b) Number = input(“enter number”)
print (x, Y) DoubleTheNumber = Number * 2
Print (DoubleTheNumber)

You might also like