[go: up one dir, main page]

0% found this document useful (0 votes)
7 views4 pages

Class 11 Revision Paper New

This document is a sample paper for the Class XI Informatics Practices examination, consisting of five sections with a total of 70 marks. It includes various types of questions, such as multiple-choice, short answer, and programming tasks, all requiring answers in Python. The paper covers topics related to Python programming, data types, functions, and basic computer science concepts.
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)
7 views4 pages

Class 11 Revision Paper New

This document is a sample paper for the Class XI Informatics Practices examination, consisting of five sections with a total of 70 marks. It includes various types of questions, such as multiple-choice, short answer, and programming tasks, all requiring answers in Python. The paper covers topics related to Python programming, data types, functions, and basic computer science concepts.
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/ 4

HALF YEARLY EXAMINATION

Sample Paper
Class XI INFORMATICS PRACTICES (065)

Max Marks: 70 Time: 03:00 hrs

General Instructions:

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


2. All questions are compulsory.
3. Section A has 21 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 04 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

SECTION A (1 mark each)

1. Which of the following is not a function of an operating system?

(a) Memory management


(b) File management
(c) CPU scheduling
(d) Compiling programs

2. What is the default extension for a Python file?


3. Which of the following is a valid variable name in Python?

(a) 1st_value
(b) value_1st
(c) first-value
(d) first.value

4. Name the built-in function in Python that returns the largest item in an iterable.
5. Which data type is used to store a collection of items in Python that can be changed?
6. What will be the output of the following code?

print("Hello" * 2)

7. Identify the odd one out:

(a) RAM
(b) ROM
(c) Hard Disk
(d) Cache
8. Which of the following is a valid string literal in Python?

(a) "Hello World"


(b) 'Hello World
(c) Hello World'
(d) "Hello World
9. Which function is used to convert a string to a list in Python?
10. What does the following expression return?

len([1, 2, 3, 4])
11. Which of the following is used to define a block of code in Python?

(a) Semicolon
(b) Curly braces
(c) Indentation
(d) Parentheses
12. What is the index of the last element in a list of 10 items in Python?
13. Which keyword is used to define a function in Python?
14. What will be the output of the following code?

a = [1, 2, 3]
b = a
b[0] = 5
print(a)
15. Which of the following methods is used to remove whitespace from the beginning and end of a
string?

(a) strip()
(b) split()
(c) replace()
(d) join()
16. What is the result of the following expression?

4 + 3 * 2
17. Assertion-Reasoning:
Assertion (A): Python lists are mutable.
Reason (R): Elements of a list can be modified after the list is created.

(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-Reasoning:
Assertion (A): The break statement in Python is used to terminate a loop.
Reason (R): The continue statement skips the current iteration and moves to the next iteration.

(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.
19. What is the use of in operator in Python.
20. Write the syntax of for loop. Where it is used?
21. Differentiate between / and // operator.

SECTION B (2 marks each)

22. Differentiate between RAM and ROM.


23. What is a syntax error in Python? Provide an example.
24. What will be the output of the following code?

x = [10, 20, 30]


x.append(40)
print(x)
25. Explain the use of the len() function in Python with an example.
26. What is the significance of comments in Python? Write an example of a single-line and a multi-line
comment.
27. How does Python handle division of integers with the / and // operators? Explain with examples.
28. Find the output of the following

country=’INDIA’
for i in country:
print(i)

SECTION C (3 marks each)

29.Write a Python program to find the largest of three numbers input by the user.

30. Write a Python program to count the number of vowels in a given list.
31. What is the difference between the remove() and pop() methods in Python lists? Provide examples.
32. Write a Python program to merge two dictionaries and display the combined dictionary.

SECTION D (4 marks each)

33. Write a Python program to create a dictionary where the keys are numbers between 1 and 5, and the
values are the squares of these numbers.
34. Write a Python program to input a list of numbers and create a new list containing only the even
numbers from the input list.

SECTION E (5 marks each)

35. Write a Python program to create a list of student names. The program should allow the user to:

(a) Add a name to the list


(b) Remove a name from the list
(c) Sort the list alphabetically
(d) Display the list
36. Write a Python program to input a string and count the occurrences of each character in the string.
Display the result as a dictionary.
37. Explain with examples the following methods

(a) clear()
(b) sorted()
(c) items()
(d) values()
(e) insert()
(f)pop()
(g)extend()
(h)sort()
(i)count()
(j)keys()

You might also like