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

Sample Paper - 1

Uploaded by

tapaskumarmahato
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)
80 views5 pages

Sample Paper - 1

Uploaded by

tapaskumarmahato
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

Website: www.Learnpython4cbse.

com YouTube Channel: SuperNova-Learnpython4cbse

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

5. Keys of the dictionary must be : 1


(A) Similar (B) Unique (C) Can be similar or unique (D) All of these
Le

6. Which of the following fall under utilities software? 1


(i)Text editor (ii) backup (iii) Disk defragmenter (iv) All of the above
7. Is python a case sensitive language? 1
a-

A) True B) False
ov

8. Which of the following can be used as valid variable identifiers in Python? 1

i) 4th Sum ii) Total iii) Number# iv) _Data


N

9. To increase the value of k five times using an assignment operator, the correct expression 1
will be :
r
pe

k += 5 B) k *=5 C) k = k**5 D) k =*5


10. What is the value of x ? 1
Su

x = int (13.25 +4/2)


a) 17 b) 14 c) 15 d) 23
11. What will be the output of the following code:- 1
x = 73
y = x%9
print(y)
12. The statement forms the selection construct in Python. 1
A) for B) while C) if D) None

By: Amjad Khan 11_Sample Paper -1


Website: www.Learnpython4cbse.com YouTube Channel: SuperNova-Learnpython4cbse

13. Suppose t = (1, 2, 4, 3), which of the following is incorrect? 1


a) print(t[3]) b) t[3] = 45
c) print(max(t)) d) print(len(t))
14. Identify the type of error 1
a=10 , b=0
c=a/b

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

16. What is the output of following code : 1

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-

(iv) A is false but R is True


17. Assertion(A): Comments in the python start with the hash character, #, and extend to the end 1
ov

of the physical line


Reason(R): Comments are interpreted and shown on the output screen.
N

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

in the variable using the input() function.


pe

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:

By: Amjad Khan 11_Sample Paper -1


Website: www.Learnpython4cbse.com YouTube Channel: SuperNova-Learnpython4cbse

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

for x in range (1,100,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

for iin range(0,Len):


if Text[i].isupper():
a-

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

By: Amjad Khan 11_Sample Paper -1


Website: www.Learnpython4cbse.com YouTube Channel: SuperNova-Learnpython4cbse

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

a) Generate the series


Le

1,2,4,8,16,32,64 by using loop.


a-

33. a. What is the output of this expression, print(‘Hello’==’Hello’) ? 1+2+2


b. What will be the output of following code:
ov

x, y = 2, 6
x, y = y, x + 2
print(x,y)
N

c. Evaluate the following expressions


i) 12 + (3 ** 4 - 6) / 2
r

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

By: Amjad Khan 11_Sample Paper -1


Website: www.Learnpython4cbse.com YouTube Channel: SuperNova-Learnpython4cbse

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

By: Amjad Khan 11_Sample Paper -1

You might also like