Xi CS - QP - 083 Hye 2022-23
Xi CS - QP - 083 Hye 2022-23
M Marks: 70 Time: 3 Hr
General Instructions:
1. This question paper has 4 pages and is divided into 3 sections A, B, C and D.
2. Section A (10 Marks): Consists of 1 question with 10 sub parts (i-x).
3. Section B (14 Marks): Consists of 2 questions. Each question has sub parts.
4. Section C (18 Marks): Consists of 2 questions. Each question has sub parts.
5. Section D (28 Marks): Consists of 2 questions. Each question has sub parts.
6. All the programming questions must be answered in Python language only.
Q1. i. ______ gate has only one input and it complements an input signal. (1)
ii. Write given memory size in ascending order : 20MB, 200KB, 2GB,1024 KB (1)
pg. 1
Section B (Short Answer I type questions)
ii Find error in the following code (if any) and correct code by rewriting code and underline (2)
the correction; -
250 = Number
WHILE Number<=1000:
if Number=>750
print (Number)
Number=Number+100
else
print (Number*2)
Number=Number+50
iii Find error in the following code (if any) and correct code by rewriting code and underline (2)
the correction; -
pg. 2
Section C (Short Answer II type questions)
iii. Write a python program to input a number and check if the number is a prime or (3)
composite number.
iv. What do you mean by an error? Differentiate between syntax errors and runtime errors (3)
with example.
Q. 6 i. As humans, we typically represent numbers in the decimal system. However, Data in digital (4)
circuits and computers is stored and transmitted as a series of zeros and ones. Given that
digital logic and memory devices are based on two electrical states (on and off), it is natural
to use a number system, called the binary number system, which contains only two symbols,
namely 0 and 1. Similarly various other numbering systems such as octal and hexadecimal
are used to represent the data.
a. What do you mean by ‘base’ in a number system?
b. Convert decimal number 250 to binary, octal and hexadecimal number system.
pg. 3
Q. 7 i. What is an algorithm? Enlist the characteristics of a good algorithm. (4)
ii. Who created python language? Also enlist few features of python language. (4)
iii. What is IDLE? What are the two modes of programming supported by python IDLE, (4)
differentiate between them.
iv. What do you mean by python token? Briefly explain different python tokens. (4)
v. Your Schools uses “Student Marks Reporting System” (SMRS) to manage student- (4)
marksheet data. The software should calculate the grade of student on the basis of marks
secured by the students.
You are required to Write a program to accept the marks of the student in five subjects and
find the grade of the student as per the following criteria
Criteria Grade
percentage > 85 A
percentage < 85 and percentage >= 75 B
percentage < 75 and percentage >= 50 C
percentage > 30 and percentage <= 50 D
percentage <30 Reappear
pg. 4