11 CS FOR MATHS-DEVANAND
11 CS FOR MATHS-DEVANAND
Section –A
1. Which of the following python mode allows to write python program with
multiple lines?
a) Interactive Mode b) Script Mode
c) Client Mode d) Debug Mode
2. 8 bits makes
a) 1 Byte
c) 1 MB
b) 1 KB
d) 1 Nibble
3. Which of the following is not a logical gate?
a) AND
c) NOT
b) OR
d) NONE
4. Identify the Python keyword
a) if c) min
b) max d) math
5. To run python program which of the following key is used?
a) Ctrl + F5
c) Ctrl + F9
b) Alt + F5
d) F5
6. Which of the following is not a python tokens?
a) Keyword c) List
b) Literals
c) Operato
rs
7. What will be the output of the following code segment?
a,b=5,6
b,a=a,b
print(a,”+”,b)
a) 5 + 6
c) 11
b) 6 + 5
d) None
8. Kriza wants to divide a number and store the result without decimal
places into an integer variable. Suggest her an appropriate operator from
the following:
a) / c) //
b) % d) Both a) & b)
if True:
print(“true”)
else:
print(“false”)
c) true
a) True
d) false
b) False
10. Dhyana wants to terminates the while loop at the end of program.
Suggest her a suitable keyword from the following:
a) terminate c) continue
b) break d) stop
Section B
19. What do you mean by identifiers? List out any two rule of identifier naming
convention
20. Convert the following binary numbers to as directed:
a) (1011011)16 b) (1010101) 1 6 c)
(11110011) 8 d) (10010011) 8
21. What do you mean by tokens? List out python tokens
22. Consider the following string
mySubject:
OR
Differentiate between append() and extend() methods with example.
23. Create a dictionary to assign day number as key and day name as value.
24. List any four benefits of e-waste management.
OR
Mention any four net etiquettes.
25. What do you mean by packing and unpacking of tuples? Illustrate answer with
example.
Section C
26. Evaluate the expressions:
print( '@',l[i],end='' )
OR
What will be the output of the following code?
tuple1 = (11, 22, 33, 44, 55 ,66)
list1 =list(tuple1)
new_list = []
for i in list1:
if i%2==0:
new_list.append(i)
new_tuple = tuple(new_list)
print(new_tuple)
Section D
31. Write an algorithm and flow chart to find the square of given number.
OR
Write a program to print the following pattern up to n
terms:
1
12
123
1234
32. Write a program to accept n number of elements and add them into a
list. Find the maximum and minimum values and print them.
OR
Write a program to create a dictionary as follows:
d={‘empno’:123,’ename’:’Smit’,’salary’:45000}
Print the names of employees who earns more than 20000 salary.
33. Compare lists and strings.
Section E
34. Observe the code given below and write answer of the following questions:
a,b=0,1
n= # Statement 1
if : #Statement 2
print(“Please enter a positive number”)
elif : #Statement 3
print(“You have entered 0”)
else:
#Statement 4
c = a+b
a=b
b=c
print(b)
m=_________________ #Statement 2
c= _____________ #Statement 3
e=_______________ #Statement 4
print(“Energy:”, e ,” Joule”)
i. Write a statement to import the required module to compute power