0% found this document useful (0 votes)
23 views5 pages

Sample QP

Uploaded by

Tanya Gupta
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)
23 views5 pages

Sample QP

Uploaded by

Tanya Gupta
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/ 5

SAMPLE QUESTION PAPER

INFORMATICS PRACTICES
Time : 3:00 Hrs. M.M :70

General Instructions :
 All questions are compulsory.
 Answer the questions after carefully reading the text.

SECTION-A

1. Write the output of the following code : 1


L=[“Amit”, “Sumit”, “Naina”]
Print(L[-1][-1])
(a) [Naina] (b) [a] (c) a (d) t
2. Storage of 1 KB means the following number of bytes: 1
(a) 1000 (b) 964 (c) 1024 (d) 1064
3. What will be the output of the following Python code ? 1
6 * 3 + 4 **2//5-8
(a) 23 (b) 13 (c) 34 (d) 33
4. Which of the following is an invalid statement ? 1
(a) a=b=c=20 (b) a,b,c=10,20,30
(c) abc= 10 20 30 (d) a_b_c=20
5. Operating System is an example of 1
(a) General purpose application software (b) Customized application software
(c) System software (d) Language process
6. Find the output of the following Python program : 1
for x in range (1, 9, “3”):
print(x, end= “”)
(a) 1,4,7 (b) 9,6,3,1 (c) Error (d) None of these
7. Which of the following memory types will store data or information permanently ? 1
(a) RAM (b) Cache (c) Hard disk (d) All of these
8. Which of the following statement will create list ? 1
(a) L1=list() (b) L1=[1,2,3,4 (c) Both of the above (d) None of these
9. What is the full form of RAM ? 1
(a) Read Access Memory (b) Random Access Memory
(c) Raw Access Memory (d) Right Access Memory
10. ___________ unit in CPU is capable of performing arithmetic and Logical operations. 1
(a) AMU (b) ALO (c) ALU (d) None
11. What will be the output of the following Python code ? 1
x=72.55
y=10
z=int(a+b)
(a) 72.55 (b) 72 (c) 82 (d) 73
12. What is the full form of IPO ? 1
(a) Input Print Output (b) Internet Print Output
(c) Input Process Output (d) Internet Process Output
13. Single line comments in Python begin with ______________ symbol. 1
(a) // (b) * (c) # (d) @
14. Identifier name cannot be composed of special characters other than ______________ 1
(a) # (b) Hyphen (-) (c) $ (d) Underscore( _ )
15. Identify the correct print() statement: 1
(a) print(Hello) (b) Print(“Hello”)
(c) print(‘Hello) (d) print(“Hello”)
16. Write the output of the following code : 1
L=list(“We bloom on Agnel soil of non-violent communication”)
print(L[20:0]
(a) Error (b) blank result (c) [ ] (d) None of these
17. Assertion(A):- In an if-else statement, the if block check the true part whereas else check for
the false part.
Reasoning (R) :- In a conditional construct, else block is mandatory.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
18. Assertion(A):- List is mutable data type.
Reasoning (R) :- In-place change is not possible in list elements.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
SECTION-B
19. Differentiate between Compiler and Interpreter. 2
20. What will be the value of x and y after the execution of the following program. 2
x, y = 2, 6
x, y = y, x+2
x=x+y
y=y+x
21. How many time loop will be execute? 2
F=5
L=10
for x in range(F,L,F-3):
print(“*”)
22. Suppose L=[10, [“few”, “facts”, “fun”], 3, “Good”] 2
Consider the above list and write the output of the following:
(a) L[3:]
(b) L[: : 2]
23. Write python expressions equivalent to the following arithmetic/algebraic expressions: 2

24. Find the output of the following code: 2


year=1971
if (year%100==0):
if (year%400==0):
print(“Leap year”)
else:
if(year%4==0):
print(“Leap year”)
25. Given below are statements for creating lists. Find errors, if any, and rewrite the correct
statements. 2
(a) L=1,6,A,8
(b)L=list(1,6,A,8)
SECTION-C
26. Write one example of each following data type: 3
(a) List (b) String (c) Boolean
27. Write the most appropriate list method to perform the following tasks: 3
(a) Add an element in the beginning of the list.
(b) Add single element at the end of the list.
(c) Get the position of an item in the list.
28. Which of the following identifier names are invalid and why ? 3
(a) Serial_no.
(b) TOTAL_MARKS23
(c) 23Serialno
29. Write python program to obtain three numbers from user and find out which is greatest
number 3
30. Find error(s) in the following code (if any) and correct it by rewriting the code and
underlining the corrections: 3
x=int(“Enter value for x:”)
for in range [0,11]:
if x = y:
print x+y
else:
Print x+y
SECTION-D

31. Find the output of the following code if user input the following value for year: 4
(a)2000 (b) 1971
year = int(input(“Enter 4 digit year:”))
if year%100==0:
if (year%400==0):
print(“Not Leap year”)
elif (year%4==0):
print(“Not Leap year”)
else:
print(“Leap year”)
32. Convert following while loop into for loop : 4
x=5
y=20
while (x<y):
print(x, end= “”)
x=x+3
SECTION-E
33. Write python program to accept five subject marks from the user and store into list variable
marks. Find out Total, average of the student 5
34. Write python program to accept a range (starting number and ending number) from the user
and print sum of all even number. 5
35. The record of a student (Name, Roll No, Marks in five subjects and percentage of marks) is
stored in the following list:
stRecord = [“Raman”, “A-36”, [56, 98, 99, 72, 69], 78.8]
Write Python statements to retrieve the following information from the list stRecord. 5
(a) Percentage of the student
(b) Marks of the fifth subject
(c) Roll no. of the student
(d) Change the name of the student from “Raman” to “Raghav”
(e) Add one more element fee as 5000 at last position.

You might also like