Class 11
Class 11
General Instructions:
Which one of the following in correct ascending order of size for nibble, byte, kb,
bit, mb
a) bit<byte<nibble<mb<kb b) nibble<byte<bit<kb<mb
c) bit<byte<nibble<kb<mb d) bit<nibble<byte<kb<mb
11-____________________is a system software that translates and executes
instructions
written in a computer program line-by-line.
a) Assembler b) Interpreter
c) Compiler d) None of these
12-Which encoding scheme has code points for all the known languages
a) ASCII b) Unicode
c) ISCII d) none of these
13-(3984.75)10 = ()16
a) F90.C b) 9F.4B
c) F90.4B d) 9F.C
14-Unlawfully gaining sensitive information of someone by posing as genuine entity
a) Spamming b) Hacking
c) Cracking d) Phishing
15-Gaining an unauthorized access is called
a) Spamming b) Hacking
c) Cracking d) Phishing
16-A program which appears safe and genuine but actually is not
a) Spyware b) Worm
c) Trojan d) Adware
17. State True or False: The Python interpreter handles logical errors during code
execution
18. Which of the following expressions evaluates to False?
(A) not(True) and False (B) True or False
(C) not(False and True) (D) True and not(False)
19. What will be the output of the following code snippet?
message= "World Peace"
print(message[-2::-2])
2|Page
Q20 and 21 are ASSERTION AND REASONING based questions. Mark the correct choice
as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
20-Assertion (A) :- In python string value always contain inside single or double quotes.
Reasoning (R):- String values can be changed by index.
21-Assertion (A) :- In python there are two mode to run the code.
Reasoning (R):- Script mode , Interactive mode and Idle mode are used to run the
code in python
.
SECTION B(2*7=14)
22-. Identify the output of the following Python statements.
y=2
while y < 9:
print(y, end=''”)
y=y+2
23-Convert the following decimal number into octal and hexadecimal number systems
(589)10= ( ? )2 and (? )16
24. Convert the following for loop code in to while loop.
for x in range (2,100,2):
print(x)
25. Draw logic circuit for following expression:
(i) AB’ + B(A+C)
(ii) (AB+BC)(AC)
26. Explain use of % and //operators with example?
27- Write differences between logical errors and syntax errors?
28-What is the type casting? Explain implicit and explicit type casting?
3|Page
SECTION –C(3 QUESTION 3 MARKS EACH)
29-Write output of the following Python code:
P=[1,6,9,3,8,3,1,7,3,9,1]
Q=[2,3,7,9,5,3,5,9]
R=[ ]
for i in P:
if i in Q and i not in R:
R.append(i)
print(R)
30. Write a program to check whether an integer number input by a user is prime or
not?
OR
Write a program to input an integer value and display it in reverse order.
31- What do you mean by data types? Explain different datatypes available in python
with examples.
SECTION D( 4 LONG ANSWER 4 MARKS)
32
(i) Write logical expression for the following:
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.
OR (Choice is only for Part (iii)
(iv) Write a program to input a number and check it is odd/even.
33- What will be the conversion of the following statements?
(i) (106)10 = ( ? )16
(ii) (78)10= ( ? )2
(iii) ((122)10 = ( ? )2
(iv) (13B)16 = ( ? ) 10
34. Write a program to print grade of a student as per input percentage as per criteria
given 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
35. Write a python code to read a string and Count alphabets, digits, and special
symbols from agiven string
4|Page
Given:str1 = "P@#yn26at^&i5ve"
Expected Outcome:
Total counts of chars, digits, and symbols
Alphabets = 8
OR
b. (i) Complete the following code to compute the sum of first n natural numbers
n = int(input(“Enter a number :”))
s= ___________________________________________ #Statement-1
for i in range(n):
s= ------------ #Statement-2
print(‘Sum is’, s)
5|Page