FUTURE CAMPUS SCHOOL,SONARPUR
HALF-YEARLY EXAMINATION (2024-25)
CLASS – XI
SUBJECT-INFORMATICS PRACTICES (065)
DATE: 20.09.2024
TIME:3 hrs F.M.: 70
General Instructions:
1.Please read the instructions carefully.
2.This Question Paper consists of 35 questions in five sections – Section A, B, C, D &E.
3.Section A contains 18 MCQ type questions of 1 mark each.
4.Section B contains 7 Very Short Answer type questions of 2 marks each.
5.Section C contains 5 Short Answer type questions of 3 marks each.
6.Section D contains 2 Long Answer type questions of 4 marks.
7.Section E contains 3 Descriptive Answer questions of 5 marks.
SECTION- A
1. What does the term "volatile memory" refer to? 1
(a) Memory that can be accessed without power
(b) Memory that loses its data when power is turned off
(c) Memory that is used for long-term storage
(d) Memory that is external to the computer
2. Which type of memory is used to store the BIOS in a computer? 1
(a) ROM (b) RAM
(c) Cache (d) Flash
3. Flash memory is a type of __________ memory. 1
(a) Primary (b)RAM
(c) Secondary (d)Hard Disk
4. Component of CPU which is responsible for comparing the contents of two
pieces of data is_____________. 1
(a) ALU (b)CU
(c) Memory (d)Register
5. Which of the following statements about Python dictionaries is True? 1
(a)Keys in a dictionary can be of any mutable data type.
(b)Values in a dictionary must be unique.
(c)Dictionary keys must be immutable and unique.
(d)A Python dictionary is an ordered collection of items starting
from Python 3.6.
6. Which one of these is floor division operator? 1
(a) / (b)//
(c) % (d)/=
7. Which of the following is a valid identifier? 1
(a) My name (b)My-name
(c)My_name (d)My.name
8. Which of the following SQL command is used to change table structure 1
such as adding or deleting or modifying field in table?
(a) ALTER (b)ALTER TABLE
(c)CHANGE TABLE (d)MODIFY TABLE
9. Which of the following is not a valid loop in Python? 1
(a) for (b)do-while
(c)while (d)for-else
10. Which of the following can add a list of elements to a list? 1
(a) add() (b)append()
(c)extend() (d)additem()
11. To find the last element of list namely ‘smiles’ in Python, _____ will be used. 1
(a) smiles[0] (b)smiles[-1]
(c) smiles[pos] (d) smiles[:-1]
12. What is the value of the expression 10 + 3 ** 3 * 2? 1
(a) 28 (b)739
(c) 829 (d)64
13. What will be the result of the expression 10 or 0? 1
(a) 0 (b)1
(c)10 (d)1.0
14. What will be the output after execution of the following code? 1
a=1
b=5
if a%b==0:
print(“Greater”)
elif a//b==0:
print(“Example”)
else:
print(“Morning”)
(a) Greater (b)Morning
(c) Example (d)Error
15. Which of the following commands is used to create a table in SQL 1
Database?
(a) MAKE TABLE (b) CREATE
(c) CREATE TABLE (d) DESC TABLE
16. Given a list L = [10, 20, 30, 40, 50, 60, 70], what would L[-3: 99] return? 1
(a) [20, 30, 40] (b) [30, 40, 50]
(c) [40, 50, 60] (d) [50, 60, 70]
Q17 and 18 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): Python is dynamic supports mutable and immutable objects.
Reasoning(R): Lists and strings are objects in Python. 1
18. Assertion(a):We can use for loop in Python for repetitive work.
Reasoning: Loop is a control structure which can run same codes again
and again. 1
SECTION - B
19. Find output of the following code: 2
S=”Welcome@771”
print(S[::-1]+S[::2])
print(S[3:]+S[::])
OR
Find output of the following code:
A=”ForeST@Dooars778”
print(A.isalnum())
print(A.isalpha())
print(A[1:len(A)]+A[len(A)-1:0:-1])
20. Re-write the following code after removing syntactical errors: 2
X=5
while x>0
Print(x+1)
else:
print x-2
21. Find output of the following code and how many times the loop will run? 2
L=[ ]
for i in range(55,5,-5):
if i%10==0:
L.append(i)
print(L)
22. Find output of the following code: 2
a=0
for i in range(4,28,2):
if i%2==0:
a=a+1
print(a,a//5)
23. Find output of the following code: 2
x=5
y=7
x,y=x+y,x-y
print(x,y)
x,y=x*2,y*3
24. Write a program in Python to find largest number among 3 numbers specified
by user. Print the largest number. 2
25. Find output of the following code: 2
Names=[“Hasan”,”Balwant”,”sean”,”Dia”]
print(Names[-1][-1])
print(Names[::2])
print(Names[:3])
print(Names[2:])
SECTION – C
26. (i)Why Python is called Interpreted and Interactive programming language? 2
(ii)Write difference between break and continue statement in a loop. 1
27. Write a program in Python to print numbers from a list of numbers which
is divisible by 5. Count how many such numbers are there in list and
print it. 3
28. Write a program in Python to print the following pattern: 3
*
**
***
****
*****
29. Write a program in Python to print student name who has scored more
than 85 from a given dictionary: 3
{“Balwant”:87,”Nawab”:78,”Nilam”:89,”Umar”:72,”Milan”:94}
Output: Balwant Nilam Milan
OR
Write a program in Python to take a list of numbers from user and print
all the odd position number divisible by 3 from list. 3
30. Write a program in Python to print Fibonacci series upto n terms specified
by user. 3
Ex: if n=8 then Fibonacci series is as follows:
0 1 1 2 3 5 8 13
SECTION - D
31. (i)Write a program in Python to take a value in variable n from user.Make
a dictionary Employee where employee name will be key and salary will be
value. Take employee name and salary from user and insert into dictionary. 3
(ii)How a list differs from a dictionary? Give proper example. 1
32. Consider the following table WORKER:
WID FIRST NAME LAST NAME DEPT SALARY
W00 John Doe HR 53000
1
W00 David Smith ACCOUNT 65000
2
W00 Jamuna Srivastab IT 57000
3
W00 William Brown ACCOUNT 47000
4
W00 Jenny William HR 48500
5
(i)Display worker id, worker name, worker salary who works in “HR”
Department from WORKER table. 1
(ii)Insert two records into WORKER table. 1
(iii)Display worker name, salary, department who are earning more than
50000 and working in “IT” department from WORKER table. 1
(iv)Display details of workers whose name starts with “J” from WORKER
table. 1
OR
(i)Write SQL code to change table name from Worker to Employee. 1
(ii)Write SQL code to increase salary by 2500 for all workers in WORKER
table. 1
(iii)Write SQL code to display name, salary, department of employees who
less than 50000 and more than 47500 from WORKER table. 1
(iv)Write SQl code to display details of workers from WORKER table
who work in “HR” or “ACCOUNT” table and draw more than 50000
from WORKER table. 1
SECTION – E
33. (i)Write about following functions with respect to list: 2
(a)append() (b)extend()
(ii)Write a program in Python to print the following series: 3
x1 x2 x3 x4 x5…….xn ,
where x is a value given by user.
OR
(i)Write difference between for loop and while loop with proper
example. 2
(ii)Write a program in Python to print series of factorial upto n
terms where value of n is given by user. 3
Ex: 1! 2! 3! 4! 5!.....n!
34. (i)Where break and continue statement are used. Give proper example. 2
(ii)Write difference between for loop and while loop with proper example. 2
(iii)Write name of functions to convert an ASCII value to corresponding
character and vice versa. Give proper example. 1
35. Write SQL code for the following requirement for PRODUCT table.
PRODUCT(PID,NAME,PRICE,MANUFACTURER)
(i)Change the field datatype from number to varchar(20) for the field PID. 1
(ii)Change the table name PRODUCT to MATERIAL. 1
(iii)Increase price by 200 for all products in PRODUCT table. 1
(iv)Change name of the field MANUFACTURER to COMPANY
in PRODUCT table. 1
(v)Delete record of product where product name in “Laptop” and
manufacturer is “Acer”. 1
OR
(i)Display details of products from PRODUCT table. 1
(ii)Display details of products where product price is more than 3000
from PRODUCT table. 1
(iii)Display product id, name of products where manufacturer is “HP”
from PRODUCT table. 1
(iv)Display id, price, manufacturer of products where product name is
“Laptop” from PRODUCT table. 1
____________________________________