Sample Paper - 1
Sample Paper - 1
Class - 11
Sample Paper - 1
Maximum Marks: 70 Computer Science (083) Time Allowed: 3 hours
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
se
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
cb
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q35 against part c only.
8. All programming questions are to be answered using Python Language only.
n4
SECTION A
1. is the part of the CPU that performs the arithmetic operations. 1
o
A) ALU B) CU C) Memory D) None
th
2. A nibble in computer memory is a group of . 1
A) 8 bits B) 8 bytes C) 4 bits D) 4 bytes
3.
4.
(i) Hard Disk (ii) Floppy disk
Which of the following is not an operating system?
n py
Which of the following does not store data permanently?
(iii) RAM (iv) ROM
1
1
a) Windows b) Linux c) Oracle d) DOS
ar
A) True B) False
ov
9. To increase the value of k five times using an assignment operator, the correct expression 1
will be :
r
pe
se
i) Semantics Error ii) Syntax Error iii) Run Time error iv )No Error
cb
15. A loop becomes an infinite loop if a condition never becomes true. 1
n4
a. True b. False
o
L = [ 5, 8]
print (L * 3)
th
a) Syntax error
b) [5,8,5,8,5,8]
c) [15,24]
d) [8,11]
n py
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
ar
(i) Both A and R are true and R is the correct explanation for A
Le
(ii) Both A and R are true and R is not the correct explanation for A
(iii) A is True but R is False
a-
18. Assertion(A): The input statement is used to get the output on the screen. 1
Reason(R): The value inputted by the user while executing a program are fetched and stored
r
SECTION B
19. Draw logic circuit for following expression: 2
Su
(A+B)’. (B’+C)
20. What is the purpose of count ( ) function in string ? Write an example of count (). 2
21. Predict the output of the following code: 2
x=1
if x>3:
if x>4:
print(‘a’)
else:
print(‘b’)
elif x<2:
if (x!=0):
print(‘c’)
se
print(‘d’)
cb
22. Convert the following for loop code in to while loop. 2
n4
print(x)
23. Explain use of % and //operators with example? 2
o
24. What do you understand by syntax error? Give an example in this context. 2
25. Define the term L- Value and R-Value with example. 2
th
SECTION C
26. State De Morgan’s law and prove it with the help of truth table 3
Text=”Gmail@Com”
n py
27. Find and write the output of the following python code : 3
ar
Len=len(Text)
ntext= “ “
Le
ntext=ntext+Text[i].lower( )
ov
elif Text[i].isalpha( ):
ntext=ntext+Text[i].upper( )
N
else:
r
ntext=ntext+’bb’
pe
print(ntext)
Su
28. Write a program to print grade of a student as per input percentage as per criteria given 3
below:-
Percentage range Grade
More than or equivalent 90 A
More than 80 B
More than 60 C
More than 50 D
More Than 33 E
Less than 33 F
29. Write a program to check whether an integer number input by a user is prime or not? 3
OR
Write a program to input an integer value and display it in reverse order.
30. Explain Arithmetic, Relational and logical Operators with one example for all these operators. 3
OR
What do you mean by data types? Explain different datatypes available in python with
examples.
SECTION D
31. Convert the following accordingly: 4+1
se
(i) (106)10 = ( ? )16
(ii) (78)10= ( ? )2
cb
(iii) ((122)10 = ( ? )2
n4
(iv) (13B)16 = ( ? ) 10
(v) (101101)2=( ? )10
o
32. a) Rewrite the following code after removing syntax error and underline the correction: 3+2
th
x=int(“Enter value for x:”)
for y in range[0,11]:
if x=y
print(x+y)
n py
Else:
ar
Print x-y
x, y = 2, 6
x, y = y, x + 2
print(x,y)
N
ii) 12 + 3 * 3-6 / 2
pe
SECTION E
34 Write a python code to read a string and Count alphabets, digits, and special symbols from a 4
Su
given string
Given:str1 = "P@#yn26at^&i5ve"
Expected Outcome:
Total counts of chars, digits, and symbols
Alphabets = 8
Digits = 3
Symbol = 4
35 i) Write logical expression for the following: 4
Name is Raj and age is between 18 and 25
ii) if….elif…..,else are not block or compound statement (True/False)
iii) Write a program to input an alphabet and check it is a vowel or not.
se
OR (Choice is only for Part (iii)
Write a program to input a number and check it is odd/even.
cb
************* End of Paper *******************
o n4
th
n py
ar
Le
a-
ov
r N
pe
Su