0% found this document useful (0 votes)
86 views8 pages

Xi Ip Hy 2023

Uploaded by

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

Xi Ip Hy 2023

Uploaded by

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

St. MARY’s Sr. Sec.

School
Half- Yearly Examination (2023-24)
Subject: INFORMATICS PRACTICES (065)
MM: 70 Class: XI Time:2 hrs
General Instructions:

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


2. All questions are compulsory.
3. Section A has 14 questions carrying 01 mark each.
4. Section B has 09 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 is the full form of IPO.
(i) Input Process Output
(ii) Input Print Output
(iii) Internet Print Output
(iv) Internet Process Output

2. 1024 ZB = ?
(i) 1 YB
(ii) 1 BB
(iii) 1 EB
(iv) 1 GB

3. What is an information?
(i) Processed data
(ii) Collection of programs
(iii) Collection of instructions
(iv) None of these

4. Nimish has joined an organization which uses only Open Source Software. Help him to
identify which software he cannot use in his organization.
(i) Python
(ii) Libre Office
(iii) JAVA
(iv) Tally

5. Identify the incorrect identifier from the following:


(i) none
(ii) None
(iii) nan
(iv) NaN

6. Shilpi is teaching Arithmetic operators in Python. One of her student wrote the following
statement:
'7'+5
Predict the output of the above mentioned statement:
(i) 75
(ii) 12
(iii) TypeError
(iv) 77777

7. Identify the correct command which will produce the output given below:
[0,-2,-4,-6,-8]
(i) list(range(-2,-8,-2))
(ii) list(range(0,-8,-2))
(iii) list(range(-2,-10,-2))
(iv) list(range(0,-10,-2))

8. Which of the following are not fundamental building blocks of a python program?
(i) Indentifiers
(ii) Constants
(iii) Keywords
(iv) Errors

9. A graphical representation of an algorithm to solve a given problem:


(i) Flow chart
(ii) Pie chart
(iii) Bar chart
(iv) Column chart

10. L1 = [3,4,5,6,6,8,0]
print(L1[-1])
(i) 0
(ii) 3
(iii) 5
(iv) 8

11 Which of the following is syntactically correct text?


(i) “I am awesome !”
(ii) “ohh come on’
(iii) “u guys are ‘genius’ literally”
(iv) “you all are gonna “FAIL” this exam”

12 The extension of a python file is given as-----


(i) .pt
(ii) .pwy
(iii) .py or .pyw
(iv) .yppy

Q13 and 14 are ASSERTION AND REASONING based questions. Mark the correct choice as :
i) Both A and R are true and R is the correct explanation for A
ii) Both A and R are true and R is not the correct explanation for A
iii) A is true but R is False
iv) A is false but R is true

13 Assertion: Comments are executed by interpreter.


Reasoning: Comments are used to add a remark or a note in the source code.

14 Assertion: variable a and A means same in python.


Reasoning: python is a case sensitive language.

SECTION B
15 What will be the output produced by the following code?
A=9
B=3
C=2
print(A/4)
print(A//4)
print(B**C)
print(A%C)
Or
Write down the type of memory needed to do the following:
i) To execute the program
ii) To store the instructions which cannot be overwritten

16 Predict the output of the following:


for char in ‘YASHRAJ’:
print(char)

17 Find errors in the following code fragment.(Rewrite the program underlining the
correction)
x = int(“Enter value of x:”)
if x > 18:
Print(x)

18 Suggest the corresponding Python Statement of the following:


i) Assign 30 to a variable length and 40 to a variable breadth.
ii) Assign multiplication of length and breadth to a variable area

19 Write a python program that asks user to enter their name and age. And display the name
and age by adding 100 to it.
Or
Convert the following for loop into a while loop:
for x in range(5):
print(x)

20 Write 2 Difference between append() and extend() methods of list.

21 Write the python code to display table of a number.


OR
Explain keyword with example.
22 Define any two:
(i) Antivirus
(ii) Memory Card
(iii) Backup Software
(iv) ROM

23 Write 2 disadvantages of working in script mode in python.


OR
Write 2 difference between mutable and immutable data types.

SECTION C
24 Evaluate the following:
i) year = 23
if year % 2 == 0:
print(“MORTAL”)
else:
print(“IMMORTAL)
ii) num = ‘345’
print(num*3)
iii) name = “yuvraj”
print(name[:])
OR
(i) Liansha has written the following statement in Python, but it is showing an error:
$f = 021
According to you what could be the problem? And also rectify it.
(ii) Define identifiers.

25. Write a program to generate an infinite loop.


OR
Write and explain 3 salient features of python.

26 Find the output of the following program segments:


(i) for i in range(20,30,2):
print(i)
(ii) my_salary = [15,7,23,67,9]
print(max(my_salary))
(iii) var = 6
while var < 9:
print(var)
var += 1

27 Write any 3 disadvantages of python.


OR
Write 3 advantages of working in interactive mode in python.

28 Write 3 differences between DRAM and SRAM.


OR
Write 3 differences between Compiler and Interpreter.

SECTION D
29 Find out the error(s) in the following code fragments:
(a) temperature = 90
Print temperature
(b) my_lis = [ 12, 13, 14, 14 )
print[my_lis[1]]
(c) for n in range(4):
print(n)
(d) x = 24
4=x
(e) Print(“X =” X)
Or
Consider the following dictionary:
states=[‘Delhi’ , ‘Kerala’ , ‘Tamil Nadu’ , ‘Bihar’]
Write Python statements for the following:

i) To insert ‘Mumbai’ between ‘Kerala’ and ‘Delhi’ in the list states.


ii) To return the index of the state ‘Tamil Nadu’.
iii)To return the length of the list states.
iv) To delete the ‘Delhi’ from the list.
v) To clear the list states.

30 The record of salesman (Name, Item Sold, sale of three quarters and Commission) is
stored in the following list:
Sale=[‘Liansha’, ‘Laptop’, [35000,42000,85000],20000]
Write Python statements to retrieve the following information from the list Sale:
i) Print the sale of 2nd Quarter.
ii) What will print(Sale[3]) produce as output .
iii) Change value of product from ‘Laptop’ to ‘Tablet’
iv) Delete Commission from the list
v) print index of ‘Poorav’

31 Predict the output of the following code:


(a) x = 3
if x > 2 or x < 5 and x == 6:
print(“OK”)
else:
print(“no output”)
(b) x = 2
y=4
if (x + y == 10):
print(“True”)
else:
print(“False”)
(c) for x in range(2):
print(x+1)
(d) a = [23, 34, 45, 56]
print( a.reverse() )
(e) x=2
y=3
x+=y
print(x)
Or
WAP which will ask user for the password and will keep on asking for the password until user
enters the correct password also display a message whenever user enters wrong password.
SAMPLE RUN

Enter Password: hawkeye


Wrong !!
Enter Password: black widow
Wrong !!
Enter Password: Loki
Correct !! welcome.

SECTION E
32 Case Study 1
IndiaSells is an india-based cargo company that deals with the export and sale of various
goods within the country and across the globe. To do business analysis of the day-to-day
transactions, they have hired a programmer to develop a computerized system for the same.

(i) Write a python code that accepts cost of goods sold (cogs), revenue generated (rg),
operating costs (oc), and prints gross profit (gp), net profit (np) and net profit
percentage (npp).
{gp = rg – cogs, net profit = revenue – cogs – oc}
(ii) What happens if the user enters a name instead of cost in program.
OR
Gurukul Vidyapeeth is a reputed institution in the field of academics and extra – curricular
activities. Every year, with the commencement of the new session, it hikes fee by 10% for all
the students which was manually done till date and required enormous efforts on the part of
the office staff. To solve this problem, develop a python program that calculates this 10% fee
hike every year automatically after obtaining the basic fee amount from the user and displays
it to the parents of the students enrolled with the institute. Also hiking cost 100 rs. Per head so
input the number of users and calculate total hiking cost for school data.

33 Case Study 2
The students were instructed by their computer teacher to build a program in python that
functions as a calculator. It can carry out basic mathematical calculations (+, -, *, /).
The program may perform following tasks:
(a) User will input two numbers and operator.
(b) According to operator selected calculation will take place and output is displayed
OR
World Class Telecom Company is planning to conduct a videoconference with its associated
partners across several nations. In its videoconferencing area, there are several Microphones,
Speakers, Webcams and a Biometric sensor. Describe the purpose of each of the devices.

You might also like