Class 12 Acc
Class 12 Acc
com
Subject: Informatics Practices(065) Class 11
Time: 3:00 Hours Max. Marks: 70
Section –A
1. Aditya is confused in main memory and auxiliary memory. Help him by
selecting a primary memory out of the following:
a) CD c) RAM
b) DVD d) SSD
2. The physical components of a computer is known as ___________.
a) Software c) Humanware
b) Hardware d) Openware
3. Which of the following is smallest unit of computer’s memory?
a) Bit c) KB
b) Byte d) MB
4. A disk defragmenter is an example of ___________
a) General Purpose Software c) Utilities
b) Desktop Publishing d) IDE Tools
5. Which of the following language processor is used by python to execute the
program?
a) Compiler c) Assembler
b) Interpreter d) Kernel
6. _________ mode of python IDLE allows to save the program for future use.
a) Interactive mode c) Debug Mode
b) Script Mode d) Output Mode
7. DataCamp community recommends ______ as the most preferred choice for
python development.
a) Jupyter Notebook c) Spider IDE
b) PyCharm d) CPython IDLE
8. To open jupyter notebook, you need to launch _______ application first.
a) Python IDLE c) Spider
b) PyCharm d) Anaconda Navigator
9. A ________ is a set of instructions that governs processing.
a) Script c) File
b) Program d) Document
10. Which of the following is an invalid identifier?
a) Doc1 c) _Doc1
b) doc1 d) #Doc 1
Page 1 of 8
11. Dhruvee wants to use multiline strings in her python program. But she forgot
which symbol out of the following is used to accept multiline string in python.
Help her by selecting an appropriate option out of the following?
a) Single Quote (‘’) c) Triple Quotes(‘’’)
b) Double Quote (“”) d) b) and c) both
12. Which of the following is a Boolean literal?
a) None c) null
b) False d) pass
13. One group of statements are part of another statement or function is known
as __________
a) Suite c) Expression
b) Comment d) Function
14. Which of the following function returns memory location of the variable?
a) type() c) id()
b) len() d) ord()
15. Which of the following operator has higher precedence among them?
a) * c) **
b) // d) %
16. Observe this statement:
C=A+B
Select appropriate option which indicates operands:
a) A & B c) +
b) = d) Both b) and c)
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):An implicit type conversion is a conversion performed by the
compiler without programmer’s intervention.
Reason(R): Python converts all operands up to the type of smallest operand.
Ans.: C
18. Assertion(A): In OR evaluation the second argument is evaluated if the first
one is False.
Reason(R): In AND evaluation the second argument is evaluated if the first is
one is True. Ans.: A
Page 2 of 8
Section B
19. i. Extract hardware and software out of the following:
MS Word, Mother Board, Processor, Browser
Ans.: Software – MS Word, Browser
Hardware – Motherboard, Processor
ii. Extract input devices and output devices out of the following:
Monitor, Printer, Keyboard, Mouse
Ans.: Input Devices: Keyboard, Mouse
Output Devices: Motherboard, Processor
20. Differentiate between CU and ALU. (Write at least two points of each)
CU ALU
CU stands for Control Unit. ALU stands for Arithmetic and Logic Unit.
It is manager of CPU which It is performing the actual task in the CPU.
guides and directs the It performs arithmetic Calculations and
assigned task. logical comparison.
OR
Differentiate between primary memory and secondary memory. (Write at least
two points of each)
Primary Memory Secondary Memory
It is also known as main memory. It is also known as auxiliary memory.
It stores data temporarily. It stores data permanently.
Examples: RAM and ROM Examples: SSD, Hard Disk , CD
21. How the name python introduced for a programming language? Write a short
history. (At least four points)
Ans.:
• Python was influenced by ABC and Modula.
• The name python was taken from a BBC comedy show series show
Monty Python’s Flying Circus series from 1970s.
• It was developed by Guido Van Rossum in February 1991.
• Van Rossum thought he needed a name that was short, unique, and
slightly mysterious, so he decided to call the language Python.
22. Evaluate the following expressions:
a) 15.0/4+(8+3.0)
Ans.: 14.75
Page 3 of 8
Ans.: 250
Ans.:
236
11 3 177147
24. Rectify the errors and rewrite the correct code. Underline the corrections:
a,b=5 5
s=@
print a+s
Ans.:
a,b=5,5
s=’@’
print(a+s)
OR
How these numbers are different from one another?
44, 44.0, 44j, 44 +j
Ans.:
44 – Integer 44j – Complex Number
44.0 – Float 44 + j – Invalid Number
25. Write the following expressions in python:
1
𝑎) 3b2h b) d = √(𝑥 − 𝑦)
Ans.:
a) 1/3*b**2*h b) d = math.sqrt((x-y))
OR
Which data type will be used for the following:
a) No. of students in the class - ineteger
b) School Name - String
c) Boy or Girl – String
d) Percentage - Float
Page 4 of 8
Section C
26. Write python statement for the following:
a) Create a list named items for ‘Mobile’,’Tablet’,’Laptop’,’Monitor’
Ans.: items=[‘Mobile’,’Tablet’,’Laptop’,’Monitor’]
b) Take three variables fn,mn,ln for your first name, middle name and last
name and initialize proper values to them
Ans.: fn,mn,mn=’Informatics’, ’Practices’, ‘@TutorialAICSIP’
c) Assign a Boolean value to a variable status
Ans.: status= True or status=False
27. Write a short python code to accept 5 days collection of a movie and find the
average collection.
Ans.:
day1 = int(input(“Enter Day 1 Collection:”))
day2 = int(input(“Enter Day 2 Collection:”))
day3 = int(input(“Enter Day 3 Collection:”))
day4 = int(input(“Enter Day 4 Collection:”))
day5 = int(input(“Enter Day 5 Collection:”))
average=(day1+day2+day3+day4+day5)/5
print(average)
OR
Write the following real constants into exponent form:
a) 19.456 b) 0.00011 c) 0.0123
Ans.:
a) 1.9456E01 b) 0.11E-3 c) 0.123E-1
28. What will be the output of following code:
a = 13 + 17 /4
b=int(a)
c = 4 + float(6/7)
d= 2 + 6.0//4
print(a,b,c,d)
Ans.:
17.25 17 4.857142857142857 3.0
29. Write a program to evaluate the expression: 3x3+2x2+1.
Ans.:
x=int(input(“Enter the value of x:”))
ans=(3*(x**3))+(2*(x**2))+1
print(ans)
Page 5 of 8
30. Explain the differences between the following operators with example:
a) % b) // c) /
a) % : This operator returns remainder after division. It will return integer value.
For example:
a=6
b=4
print(6%2)
The output will be: 2
b) // : This operator will return quotient without fractions. It will return integer
value.
For example:
a=6
b=4
print(a//b)
The output will be : 1
c) /: This operator will return quotient with fractions. It will return floating value.
For example:
a=6 print(a/b)
b=4 The output will be:1.5
Section D
31. Convert the following memory units:
a) 123KB = ______ nibble - 246000
b) 2000 bytes = _____ KB - 2
c) 1000 KB = _______ GB – 0.001
d) 350 PB = _________ MB - 350000000000
e) 10000 KB = _____ bytes - 10000000
32. Write a program to accept the cost of the product, installation charges and
service charges. Compute the net amount to be paid by customer.
Ans.:
cp= int(input(“Enter cost:”))
netamt=cp+ic+sc
print(“Netamount:”, netamt)
Page 6 of 8
OR
Write a program to accept number of overs by a bowler and runs conceded by
a bowler then calculate economy rate per over.
Ans.:
overs=int(input(“Enter no of overs:”))
runs=int(input(“Enter runs conceded:”))
er=overs/runs
print(“Economy Rate:”, er)
33. Write a program to accept the basic salary of an employee and calculate the
allowances as given below:
Allowance Amount in %
DA 206
HRA 30
LTA 15
PF 12%
Compute the net salary as: netsal=(basic + DA + HRA + LTA )- PF
Ans.:
basic=int(input(“Enter basic salary:”))
da=206
hra=30
lta=15
gs=basic+da+hra+lta
pf=gs*0.12
ns=gs-pf
print(“Net Salary:”,ns)
OR
Write a program to accept quantity and rate for any three products. Calculate
the amount and apply 18% GST then apply 5% discount on amount and
compute net amount paid by a customer.
Ans.:
pq1=int(input(“Enter the qty for product 1:”))
pq2=int(input(“Enter the qty for product 2:”))
pq3=int(input(“Enter the qty for product 3:”))
pr1=int(input(“Enter the rate for product 1:”))
pr2=int(input(“Enter the rate for product 2:”))
pr3=int(input(“Enter the rate for product 3:”))
amt=(pq1*pr1)+(pq2*pr2)+(pq3+pr3)
gst=amt*0.18
dis=amt*0.5
netamt=(amt+gst)-dis
print(“Net Amount:”,netamt)
Page 7 of 8
Section E
34. Observe the following code of compound interest and write the missing
statements:
import _______ #Statement 1
p=_______(input(“Enter principal amount:”)) #Statement 2.1
r=_______(input(“Enter the rate:”)) #Statement 2.2
t=_______(input(“Enter time:”)) #Statement 2.3
amt=_____________ #Statement 3
ci = ____________ #Statement 4
print(“Compound Interest:”,ci)
km=_____________ #Statement 2
print(___________) #Statement 3
print(______________) #Statement 4
a) Write statement to accept an integer value – Statement 1
Ans.: int(input(“Enter Miles”))
b) Write statement to convert miles to km – Statement 2
Ans.: m*1.61
c) Write statement to print entered miles with appropriate text – Statement 3
Ans.: km
d) Write statement to print kms with appropriate text – Statement 4
Ans.: km,“Km in”, m, “ miles”
Page 8 of 8