0% found this document useful (0 votes)
66 views4 pages

11 Ip Quarterly

exam related qp

Uploaded by

sriram vani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views4 pages

11 Ip Quarterly

exam related qp

Uploaded by

sriram vani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

VANI VIDYALAYA

INFORMATICS PRACTICES
QUARTERLY EXAM
GRADE:11 MARKS:70

SECTION-A 18X1=18
1. The Smallest unit of memory is_________.
A) Bit B) Megabyte C) Kilobyte D) Byte
2. State whether the following statements are true or false.
Python is a dynamically-type language.
3. Identify the correct print() statement:
A) print(Hello) B) print("Hello") C) print('Hello") D) print("Hello')
4. Which of the following is syntactically correct text?
A) "This is great!" B) 'She shouted 'HELLO' loudly' C) "Goodbye' D) "This "course" is good"
5. What will be the output of the following snippet?
X,Y=2,6
X,Y=Y,X+2
print(X,Y)
A) 6 6 B)4 4 C)4 6 D)6 4
6. What can be the maximum possible length of an identifier?
A) 31 B) 63 C) 79 D)Can be any length.
7. Which of the following operators is floor division?
A) + B)/ C)// D)>
8. The __________ mode of python gives instant result of typed statement.
A) Interactive mode B) Script mode C) Combination of interactive and script modes D)All of these
9. The symbol used to end the if statement:
A) Semicolon(;) B) Hyphen(-) C) Underscore(_) D) Colon(:)
10.Which of the following character is used to give single –line comments in python?
A) // B) # C) ! D) /*
11. Which statement will check if a is equal to b?
A) If a=b: B) if a = = b: C) If a = = = c: D) If a = = b
12. Write the output of the following code:
L=['w','e','l','c','o','m','e']
print(len(L))
A) 7 B) 8 C) 9 D)None
13. What will be the output of the following code:
Namelist= ['Harsh', 'Pratik', 'Bob', 'Dhruv']
print (Namelist [1] [-1])
A) Pratik B) Bob C) D D) k
14. What will be the data type of the following variable?
A= '34.55'
A) Integer B) String C) Float D)None of these
15. Which of the following is NOT true about dictionary?
A) Items stored in dictionary are unordered.
B) Duplicate keys are allowed in dictionary.
C) Items in dictionary are stored as key-value pair.
D) Keys of dictionary are immutable and values are mutable.
16. In a dictionary, the elements are accessed through:
A) Key B) Value C) Label D) Item
Q17 and Q18 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
17. Assertion(A): sort () method sorts the objects of list in ascending order.
Reasoning(R): Defining sort () method with reverse=True as an argument sorts the list elements in
descending order.
18. Assertion(A): Comments are non-executable statements that enable the users to understand the program
logic.
Reasoning (R): Comments are basically statements used to put remarks. The comments are used to explain
the code and to make it more informative for the users.
SECTION-B 7X2=14
19. What will be the output of the following code?
x, y=4,6
z=x + y*2
x=2*x+3
y=x*y+2
z=y*z+10-x
print ("x = " ,x)
print("y = " ,y)
print("z = " ,z)
20. Convert binary to decimal number:
i) 10000101 ii)101010101
21. Convert decimal to binary number:
i) 56 ii) 108
22. Write a program to check whether a given number is even or odd. (Get the number from user)
23. Write a program to display first n natural numbers in reverse order. (using for loop).
24. Suppose L= ["abc", [6,7,8],3,'mouse']
Consider the above list and answer the following:
a) L[3:] b) L [ ::2]
25. How can you remove key : value pair from a dictionary?
SECTION-C 5X3=15
26. Explain the following operators with examples?
i) Arithmetic ii) Relational
27. Write a program to find the area and perimeter of a rectangle (Read the inputs from the user).
Area of rectangle=LXB Perimeter of rectangle=2(L+B)
28. Explain the concept of a list with examples.
29.Given below are statements for creating lists. Find errors, if any, and rewrite the correct statements.
i) L1 = 1,6, a,8 ii) L2 = (10)
iii)L3 = [ [0,1,2,3] ['my', 'book']] iv) L4 = [0,1,2,3], [4,5,6]
v) L5 = (['a', 'b', 'c'[1,2,3, A]]) vi) L6 = [Aman, Lakshay, Aushim, Nishant]
30. Write a program to enter names of employees and their salaries as input and store them in a dictionary and
display it.
SECTION-D 2X4=8
31. Write the output for the following program:
A) for i in range (5,10,2): B) for i in range (10,1):
print(i) print(i)
C) for i in range (10,1, -1): D) for i in range (1,10, -1):
print(i) print(i)
32. Explain the following methods with examples.
i)insert() ii)extend() iii)remove() iv)count ()
SECTION-E 3X5=15
33) A) Write a Python program to print the even numbers between 500 and 1000.
B) Write a Python program to print 8 tables using the for loop. (Read the input from the user).
34) Write a python program to calculate the amount payable if money has been lent on simple interest Principal
or money lent =P, Rate=R% per annum and Time=T years. Then Simple interest (SI) =(PXRXT)/100,
Amount payable=Principal +SI. P, R and T are given as input to the program.

35) A) StateCapital = {"Assam": "Guwahati", "Bihar": "Patna", "Maharashtra": "Mumbai",


"Rajasthan": "Jaipur"}
print (stateCapital.keys()) (1/2)
print (stateCapital.values()) (1/2)
print (stateCapital.items()) (1/2)
print( len (stateCapital)) (1/2)
print ("Maharashtra" in stateCapital) (1)
B) Differentiate between RAM and ROM. (2)

You might also like