0% found this document useful (0 votes)
39 views

10+1 (Paper2)

Paper

Uploaded by

urvashihp40
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)
39 views

10+1 (Paper2)

Paper

Uploaded by

urvashihp40
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/ 2

DAV PUBLIC SEN. SEC.

SCHOOL,BHAROLI (NADAUN) 11 Which following methods are correct to add element into the dictionary 1
object d? d={1:’Virat’,2:’Rahul’,3:’Surya’}
Class :10+1 Subject : IP a) d[4]=’Hardik’ b) d.setdefault(4,’Hardik’)
c) Both a) and b) d) None of these
Term-1 Examination (September,2023) 12 A CPU can be placed on one or more microchips called _______ 1
a) Transistors b) Integrated Circuits (ICs)
TIME: 3hrs M.M: 70
c) Registers d) Vacuum Tubes
PART-A
13 A program refers to 1
1 Distinguish between Computer and Computer system. 1
a) set of Commands executed by Computer
2 A computer along with hardware and software together is called ___ 1
b) software which runs in Operating System
a) Hardware Unit b) Software Unit
c) runs the entire Operating System
c) Computer System d) Input Unit
d) utility to provide basic function
3 1 ZB = ___________ 1
14 Python was developed by 1
a) 1024 MB b) 1024 GB c) 1024 PB d) 1024 EB
a) Bill Gates b) Monty c) Guido Van Rossum d) Dennis Ritchie
4 The process of Fetching or retrieving deleted or corrupted and lost data 1
15 If step value is not specified for range() function, the default value of 1
from secondary storage is known as –
step is
a) Data Recovery b) Data Backup c) Restoring Data d) Data Deletion
a) 0 b) 1 c) -1 d) None
5 Which of the following acts as an interface between the device and 1
16 Consider the given list: L=[‘Delhi’,’Mumbai’,’Kolkata’,’Chennai’], 1
operating systems?
What L[3:2] returns?
a) Language Processor b) Device Driver
a) Empty List b) [‘Chennai’]
c) Antivirus Software d) Operating System
c) [‘Chennai’,’Kolkata’]
6 Ansh is working in python interactive mode. He noticed this symbol - 1
d) [‘Kolkata’,’Chennai’]
>>> but forgot what it is called? Select an appropriate option for him
17 Consider the given dictionary? 1
out of these?
d={‘Ahmedabad’:’Gujarat’,’Mumbai’:’Maharasthra’,’Indore’:’Madhya
a) Python Shell b) Python Script
Pradesh’}
c) Python prompt d) Python Interpreter
What will be the output of print(d.get(‘Indore’))
7 Which of the following is a python built-in editor popularly used to 1
a) Error b) Madhya Pradesh c) 2 d) Indore
write scripts?
18 Which of the following are valid identifiers? 1
a) Jupyter Notebook b) PyCharm IDE
a) x = 23 b) $1 = 79 c) 1no = 3 d) float = 12.45
c) Spyder IDE d) CPython IDLE
PART-B
8 Which of the following statement is not correct about python 1
19 Write any two advantages and disadvantages of Python. 2
keywords?
20 Identify python data type of the given variables and values: 2
a) Keywords defined by user
a) a=’hello’ b) marks=80.75 c) found=True d) l=[3,7,8,2]
b) Keywords cannot be used as an identifier
21 Differentiate between / and // with a suitable example. 2
c) Keywords convey a special meaning to python interpreter
22 Differentiate between relational operators and assignment operators. 2
d) Keywords are case-sensitive
23 Identify the following: 2
9 Which of the following statement is used to iterate over a range of 1
a) I am the part of memory that is volatile in nature
values or sequence?
b) I am the part of CPU that performs the tasks
a) if b) if-else c) if-elif-else d) for
24 a) Mr. Raj is working as an accountant in a school. He wants to create a 2
10 Which of the following is invalid method for lists? 1
report on fees status of student. Suggest which application software he
a) list() b) append() c) set default() d) extend()
can 1use.
b) Mr. Bhavin wants to make a logo for his company. Suggest him a i) Write command traverse a dictionary and print key value in this
software that can help him. manner
25 What do you mean by language processors? Enlist different types of 2 1 – One
language processors. 3 – Three
PART-C 5 – Five
26 Given a list l=[“def”,”if”,”for”,”while”], 3 7 – Seven
predict the output of the following: 9 - Nine
a) print(l[1:][:2]) b) print(l[1][1]) c) print(l[:3]) ii) Write command to print only keys of dictionary
27 Kavya is writing a code to compute area of circle. He is not able to 3 iii) Write command to print only the values which doesn’t contain ‘n’
complete the iv) Write command to delete the last element of dictionary
code hence the impartial code he has written looks like following. Fill 33 Write a program to create a dictionary with rollno, name and marks of n 5
in the given blanks and complete the code: no. of students and display names of students who have scored more
import __________ # Write module name than 90 marks in any subject.
r =________________ # Write function name to accept value of radius PART-E
area = ____________ # Write formula of area of circle with respect to 34 What is the greatest of three numbers in Python using logical operators? 5
python ______________ # Write message like – “Area of Circle OR
is:”,_________ Write a program to print the following pattern in Python:
28 What would Python produce if for the following code, the input given 3 1 4 7 10 13 16 19 21 24 27 30 33
is. 35 Write a python program to find the maximum marks and minimum 5
Code : bool(input(“Input”)) and 10<13-2 marks from given dictionary and print the difference between them.
a) 11 b) hello c) just return key pressed, no input given Dictionary is as:
29 Shiv has written following code into python but he is not able to get the 3 {‘Henil’:78,’Kartvya’:82,’Avee’:93,’Dhruvin’:88,’Shaan’:94}
correct output. OR
n=int(“Enter number”) What is a dictionary? Explain any four ways to create a dictionary with
triple=n**3 example.
Print(“Number three times:”,n)
Identify the syntax and logical errors and write the correct code.
Underline each correction.
30 Write a program to obtain temperatures of 7 days (Monday, Tuesday … 3
Sunday) and then display average temperature of the week.
PART-D
31 Given a list l=[13,14,15,112,125.7,[12,11,10,15],188], answer the 4
following questions:
a) Write code to print [14,112,[12,11,10,15]]
b) Write code to print [13,15,125.7,188]
c) Write code to print [14,125.7]
e) Write code to print [188,125.7,15,13]
32 Consider the following dictionary: 4
od={1:’One’,3:’Three’,5,’Five’,7:’Seven’,9:’Nine’}
Perform the below mentioned operations in the dictionary:

You might also like