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

Grade 11 IP Final Exam

Final exam peace ✌?
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)
14 views4 pages

Grade 11 IP Final Exam

Final exam peace ✌?
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

FINAL EXAMINATION (2022- 23)

Class: XI Commerce Subject: Informatics Practices


(065) Date: 07-02-2023
Time: 3 hr. Marks: 70

General Instructions:

1. This question paper contains five sections, Section A to E.


2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
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.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each.
8. All programming questions are to be answered using Python Language only.

SECTION A
1. What will be the output of the following Python code snippet? 1
x=2
for i in range(x):
x += 1
print (x)

a.0 1 2 3 4 b. 0 1 c.3 4 d.0 1 2 3


2. What will be the output of the following Python code snippet? 1
x=-1
if x>=0:
print(x**4)
else:
print(x+1)

a. 1000 b.0 c.1 d.None of these


3. To insert the string "cake" to the 4th position in the list L, which of the following statement is used? 1

a. L.insert(4, "cake") b. L. insert(3, "cake") c. L.add(4, "cake") d. L.append(4, "cake")


4. Assume a list L = [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of quantity list after L.pop(1)? 1

a. [3, 4, 5, 25,5, 1, 3] b. [1, 3, 4, 5, 20, 25,5,3]


c. [3, 5, 20, 5, 25, 1, 3] d. [1, 3, 4, 20, 5, 25]
5. What is the output of the following code snippet? 1
letters = ['a', 'b', 'c', 'd', 'e']
letters[::-2]

a. ['d', 'c', 'b'] b. ['a', 'c', 'e'] c. ['a', 'b', 'd'] d. ['e', 'c', 'a']
6. Suppose a list L= [3, 4, 5, 20, 5, 25, 1, 3], then what is the result of L.remove(4)? 1

a. 3, 5, 29, 5 b. 3, 5, 20, 5, 25, 1, 3 c. 5, 20, 1, 3 d. 1, 3, 25


Page 1 of 4
7. Consider a list L = [13,24,55, 20,15, 25, 11, 3] 1
L.sort(reverse = True)
print(L) #The result is

a. [55, 25, 24, 20, 15, 13, 11, 3] b. [13,24,55, 20,1 5, 25, 11, 3]
c. [3, 11, 13, 15, 20, 24, 25, 55] d.[3, 11, 25, 15, 20, 55,24,13]
8. list1 = [10,20,30,70,80] 1
list2 = [30,40,50]
list1.extend(list2)
print(list1) #The result is

a. [10, 20, 30, 70, 80, 40, 50] b.[ [10, 20, 30, 70, 80],[ 30, 40, 50]]
c. [10, 20, 30, 70, 80, 30, 40, 50] d. [30, 40, 50,10,20,30,70,8]
9. What is the output of the following code snippet? 1
x = 'abcd'
for i in x:
print(i)

a. a b c d b. 0 1 2 3 c.i i i i d. x x x x
10 Consider a dictionary 1
dict3 = {'Mohan':95,'Ram':89,'Suhel':92,'Sam':85}
print(dict3['Ram']) #The result is

a. 'Ram':89 b.89 c.1 d.”89”


11. dict1 = {'A':95,'C':89,'D':92,'E':85} 1
dict1['B'] = 78
print( dict1) #The result is

a. {'A': 95, 'B': 78,'C': 89, 'D': 92, 'E': 85} b. {'A': 95, 'C': 89, 'D': 92, 'E': 85, 'B': 78}
c. {'B': 78,'A': 95, 'C': 89, 'D': 92, 'E': 85} d. {'A': 95, 'C': 89, 'D': 92, 'E': 85},{'B': 78}
12. dict1 = {'A':'A','E':'E','D':'D','C':'C','B':'B'} 1
del dict1['D']
print(dict1)

a. ['A': 'A', 'E': 'E', 'C': 'C', 'B': 'B'] b. {'A': 'A', 'B': 'B', 'C': 'C', 'E': 'E'}
c. {‘D': 'D'} d. {'A': 'A', 'E': 'E', 'C': 'C', 'B': 'B'}
13. dict1 = {'A':95,'C':89,'D':92,'E':85} 1
print( len(dict1))

a.3 b.4 c.5 d.10


14. Which operator returns the remainder of the operands? 1

a. / b. // c. % d. **
15. Which of the following is not a Python IDE? 1

a. IDLE b. Spyder c. Jupyter Notes d. Sublime Text


16. The input() returns the value as _________ type. 1

a. integer b. string c. floating point d. bool


17. What is the value of the expression 10 + 3 ** 3 * 2? 1

a. 28 b.64 c. 739 d. 829


18. What will be the output of print( 8.6//2)? 1

a. 4.0 b. 4.6 c. 4.3 d. 4


Page 2 of 4
SECTION B
19. Rajesh wrote following code to find the length of a list: 2
m = [12, ‘techtipnow’,[10,11],12.08,’x’,True, 30]
print(len(m))

What output you can predict for this code?


20. Rajneesh Sir has made following list: 2
L1 = [74, 33, 22, 19, 41, 65]

He asked his student to write code to delete last element of list L1. Help them to write the correct code.
21. Continue to the previous question 20, Sir wanted to add a new number 66 before 19 in list L1. 2
He asked Raheem to identify the position of 19 and insert that. What code Raheem should tell him?
22. For the given dictionary 2
d1 = {‘a’:10,’b’:20, ‘c’:30,’d’:40}
Which of the following code will display value 30?
23. Predict the Output: 2
dict1 = {"name": "Mike", "salary": 8000}
temp = dict1.pop("age")
print(temp)
24. What will be the output of following program: 2
test = {1:'A', 2:'B', 3:'C'}
del test[1]
test[1] = 'D'
del test[2]
print(len(test))
25. What will be the output of following program: 2
A = [2, 4, 6, 8,10]
L = len (A)
S=0
for I in range (1, L, 2):
S+=A[I]
print("Sum=",S)
SECTION C
26. Write a Python program to get the largest number from a list. 3
27. Write a program to print the following pattern (using only one * in a print statement) 3
*
**
***
28. How are dictionaries different from lists? 3
29. What are the characteristics of Python Dictionaries ? 3
30. Write the output of the given python code : 3
aList = [123, ‘xyz’, ‘zara’, ‘abc’];
aList.pop()
aList.pop(2)
print(aList)
SECTION D
31. Which of the following identifier names are invalid and why? 5
(a) Serial_no. (b) 1st_Room (c) Hundred$ (d) Total Marks (e) total-Marks
32. Give the output of the following when num1 = 4, num2 = 3, num3 = 2 5
(a) num1 += num2 + num3 (b) num1 = num1 ** (num2 + num3)
(c) num1 *= num2 + c (d) num1 = ‘5’ + ‘5’ (e) num1=float(10)
33. What are the different ways to create a dictionary? Elaborate your answer with an example. 5
Page 3 of 4
SECTION E
34. Write a Python program to sum all the items in a list. 4
35. Write a program to find out the grade of student based on his obtained percent as per following 4
conditions:
Percent Grade
<49 F
50 to 69 C
70 to 89 B
90 and above A

***

Page 4 of 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy