0% found this document useful (0 votes)
9 views5 pages

Computer ScienceA1 MID TERM 2022 23 QP

This document is a mid-term examination paper for Class XI in Computer Science, consisting of 27 compulsory questions covering various topics including Python programming, data types, Boolean algebra, and error identification in code. The exam is structured with multiple-choice questions, short answer questions, and programming tasks. The total duration is 3 hours with a maximum score of 70 marks.

Uploaded by

Aditi Choudhary
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
0% found this document useful (0 votes)
9 views5 pages

Computer ScienceA1 MID TERM 2022 23 QP

This document is a mid-term examination paper for Class XI in Computer Science, consisting of 27 compulsory questions covering various topics including Python programming, data types, Boolean algebra, and error identification in code. The exam is structured with multiple-choice questions, short answer questions, and programming tasks. The total duration is 3 hours with a maximum score of 70 marks.

Uploaded by

Aditi Choudhary
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/ 5

CLASS XI

MID TERM EXAMINATION (2022-2023)


SUBJECT: COMPUTER SCIENCE
SET A1

TIME ALLOWED : 3 HRS. MAX. MARKS :70

General Instructions:

a) This question paper contains 5 pages.


b) There are 27 questions.
c) All questions are compulsory
d) Q1-Q10 are MCQs.
e) In error finding questions, write corrected code also.

Q1. Which of the following is an invalid variable? (1)


a) my_string_1 b) 1st_string c) foo d) _SNAME

Q2. Which of the following is an invalid statement? (1)


a) abc = 1,000,000
b) a b c = 1000 2000 3000
c) a,b,c = 1000, 2000, 3000
d) a_b_c = 1,000,000

Q3. Consider the declaration L = '3.14+20j'. What will be the data type of L? (1)
a) List b) tuple c) dictionary d) String

Q4. Which of the following symbols is used in python for single line comment? (1)
a) / b) /* c) // d) #

Q5. What is the output of this expression, A=3*4//5+5//7+8-2+4//2? (1)


a) 12 b)10 c) 8 d) 14

Q6. Select all options that print : hello-how-are-you (1)


a) print(‘hello’, ‘how’, ‘are’, ‘you’)
b) print(‘hello’, ‘how’, ‘are’, ‘you’ + ‘-‘ * 4)
c) print(‘hello-,‘ + ‘how-are-you’)
d) print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)

Q7. The return type of the input() function is (1)


a) string b) integer c) list d) tuple

Q8. Which of the following is a complex number in Python? (1)


a) k=2+3j
b) k=complex(9)
c) k=complex(2,3)
d) All of the above

1
Q9. There are ……………. types of strings supported in Python (1)
a) Two
b) Three
c) one
d) All of the above

Q10. What is the value of this expression? (1)


print((4**2)*3**3)
a) 432
b) 342
c) 164
d) 102

Q11. How does the computer understand a program written in high level language? (2)

Q12. What is the need for RAM? How does it differ from ROM? (2)

Q13 Name the software required to make a computer functional. Write down its two primary
services. (2)

Q14. Differentiate between proprietary software and freeware software. Name two software for
each type. (2)

Q15. Perform the following conversions. (5x1=5)


(i) (BCA1)16 = ( )2
(ii) (132.45)8 = ( )2
(iii) (1010.1001)2=( )16
(iv) (10.75)8 = ( )2
(v) (6C.34)16 = ( )2

Q16 a) Derive a Boolean expression for the output F for the logic circuit given shown below :
(2x2=4)
i)

2
ii)

b) Draw the logic circuit for this Boolean expressions: (2x2=4)

i) A’B’C’D + AB’C’D+ A B C’D + A B C D’

ii) (X+Y).(X+Z)

c) In the Boolean Algebra, verify using truth table that X + XY = X (2)

Q17. What is the difference between interactive mode and script mode in Python? (2)

Q18. Evaluate the following expression (2)


a) not( 5>4 or 6<2 and 3 !=7)
b) print(3**2-1**2+10//2)

Q19. What do you mean by data types? What are Python’s built-in core data types? (2)

Q20. What is the difference between implicit and explicit conversion? (2)

Q21. What are string literals? How many types of string literals are there? (2)

Q22. A school conducts 3 weekly tests of 30 marks each and a term exam of 100 marks. To
calculate the aggregate percentage of marks obtained by a student, calculations are done as
follows:
Aggregate Percentage = (weekly test total)/3+70% of term exam.
Write a Python script to calculate and display the aggregate percentage of a student after
taking the marks of the student in the three weekly tests and the term exam. (3)

Q23. Write a program to enter a number and print whether the number is positive, negative or
zero. (3)

Q24.Write a program to input the weight of a person(kgs) and height(meters),calculate


BMI(kg/mtr*mtr) and then print nutritional status as per the given table. (3)
3
Q25. Write a program to input two integers x & n and then print the sum of the following series:
(3)
2 3 4 n
1+x+x +x +x +.............x

Q26. Identify errors in the following code and rewrite the code by underlining the corrections.
(3x2=6)
a) A=B=12/5
if A!=b
print"Not equal"
else print"Equal"

b) number = input(‘Enter an integer”:)


if (number % 2 == 0):
print(number, “is an even number”)
Elif
print(number, “is an odd number”)

c) x = input(“Enter value”)
for k in range[0,20]
Print(x+k)

Q27. Find the output of the following scripts:

a) year=2000 (1)
if year%100!=0 and year%4==0 or year%400==0:
print("Lp")
else:
print("Not Lp")

b) for x in range (2,8): (2)


4
if (x%2 !=0 and x%5!=0) :
print(x, end ="@")
else:
print(x, end ="#")
print (x)

c) x=5 (2)
for k in range(0,10) :
if x==k:
print(x+k)
else:
print(x-k)

d) for i in range(20): (2)


if(i%3!=0):
print("Bye",i)

e) x=6 (2)
for i in range(x):
if x==5:
break
print("H")
print(x)

You might also like