83% found this document useful (6 votes)
6K views5 pages

Sample Paper - Class Xi Computer Science

This document contains a sample paper for Class 11 Computer Science subject. It has 3 sections - Part A with multiple choice questions from question 1 to 21, Part B with descriptive questions from 24 to 33, and Part C with higher-order questions from 34 to 40. The paper tests knowledge of Python programming concepts like lists, tuples, dictionaries, loops, functions, modules, files handling, and OOPs concepts. It also contains questions to check understanding of cyber safety topics like confidentiality, plagiarism, licensing, and impacts of technology.

Uploaded by

Pragya Pandya
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
83% found this document useful (6 votes)
6K views5 pages

Sample Paper - Class Xi Computer Science

This document contains a sample paper for Class 11 Computer Science subject. It has 3 sections - Part A with multiple choice questions from question 1 to 21, Part B with descriptive questions from 24 to 33, and Part C with higher-order questions from 34 to 40. The paper tests knowledge of Python programming concepts like lists, tuples, dictionaries, loops, functions, modules, files handling, and OOPs concepts. It also contains questions to check understanding of cyber safety topics like confidentiality, plagiarism, licensing, and impacts of technology.

Uploaded by

Pragya Pandya
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

DEWAN PUBLIC SCHOOL, MEERUT CANTT

SAMPLE PAPER
Session: 2020-21
Class: XI
Subject: Computer Science (083)
Maximum Marks: 70 Time Allowed: 3 hours

Question Part-A Marks


No. allocated
Section-I
Select the most appropriate option out of the options given for each
question or answer as required. Attempt any 15 questions from question
no 1 to 21.
1 Find the invalid identifier(s) from the following : 1
a) for b) Not c) as d) first_name
2 Given the list L=[1,2,3,4,5,6]. 1
What will be the list contents after the execution of the following statement?
L.append([7,8,9,10])
3 What will be the data type of the following Python object? 1
obj=1,'a','Z',20.6
4 Identify the invalid relational operator(s) in Python from the following: 1
a) <> b) != c) = d) ==

PAGE 1
DEWAN PUBLIC SCHOOL, MEERUT CANTT

5 Suppose a tuple T is declared as T = (1,3,6). Which of the following statements 1


is the correct way of adding a new element 9 to T?
a) T.append(9)
b) T=T+(9,)
c) T=T+(9)
d) T=T+9,
6 Write a statement in Python to declare a dictionary named work_week 1
whose keys are day numbers from 1 to 5 and values are their corresponding
day names from Monday to Friday.
7 A list is declared as N = [11,12,11,13,14,12,15] 1
What will be the output of N.index(12) ?
8 Name the built-in function / method that is used to return the memory 1
address/location of a Python object.
9 Consider the two dictionaries: 1
D1={'a':97,'b':98,'c':99}
D2={'d':100,'e':101}
Write Python statement to add the dictionary D2 to the dictionary D1.
10 Define DRM. 1
11 Which out of the following operator(s) cannot be used with string objects? 1
a) + b) - c) * d) in
12 Define confidentiality w.r.t. cyber safety. 1
13 How many sections and chapters are contained in the original ITA-2000? 1
14 Write the following arithmetic expression in Python: 1

15 Perform the following conversion: 1


a) (754)10 -> ()16
16 A list is given as L=[100,200,300,400,500,600] . What will be the output of the 1
following statement at the Python prompt?
>>> L[:] + L[::-1]
17 Identify the valid declaration of rec object given as follows: 1
>>> rec='Roll number' +str(1)+ ' Age'+ str(15)
a) Tuple b) String c) Dictionary d) List
18 Name the Boolean Law for the following statement: 1
A + A’ = 1 and A.A’ = 0
19 Name two operating systems with command-based interface. 1
20 Define source code and object code. 1
21 Define register memory. 1

Section-II
Both the Case study based questions are compulsory. Attempt any 4 sub
parts from each question. Each question carries 1 mark

PAGE 2
DEWAN PUBLIC SCHOOL, MEERUT CANTT

22 Rahul has to complete an assignment on Cyberspace and associated Security


threats. He needs your help to identify the terms for the following
statements/situations:
(a) Malware disguised in what appears to be a legitimate software. 1
(b) Situations that prevent the legitimate users from accessing or using resources 1
and information.
(c) Term used to prevent the disclosure of information to unauthorized individuals 1
or systems.
(d) Mohit is the owner of a website that shares music files without permission from 1
the recording labels. Mohit is involved in __________________.
(e) Use of internet or other electronic means to harass an individual, a group of 1
individuals, or an organization.
23 Amit has created a list of integers num with the following contents:
num = [6,1,8,9,2]
Now he wants to write Python statements to perform the following operations on
the list num. Help him to write Python statements to perform the operations as per
his requirements.
(a) Set the second entry to 3. 1
(b) Sort the list in descending order. 1
(c) Remove the first entry from the list. 1
(d) Insert 11 at index 3. 1
(e) Create a second list named num_copy which is a copy of the list num. 1
Part – B

Section-I

24 Evaluate the following expressions: 2


a) 10 % 4 + 7 / 2
b) True and not False or True and False
25 Why is while loop called an entry-controlled loop? Explain with the help of an 2
example.
OR
Convert the following while loop into its equivalent for loop.

26 Identify the category (system, utility, programming tool) of the following software: 2
a) Compiler b) Anti-virus c) Ubuntu d) Text editor
27 Differentiate between tuple and list data types of Python. Give examples to support 2
your answer.
OR
Write a Python script to input n numbers from the user at run-time. Store these
numbers in a tuple. Print the maximum and minimum number from this tuple.

PAGE 3
DEWAN PUBLIC SCHOOL, MEERUT CANTT

28 Rewrite the following code in Python after removing all syntax error(s). Underline 2
each correction done in the code.
num=20
for n in Range(0,num)
if num%2=0:
Print(n*5)
else:
print n

29 What is an infinite loop? Give an example. 2


30 Explain any four tips for safely using the social networking sites. 2
31 Write the salient features of APACHE License. 2
32 How is accidental plagiarism different from deliberate plagiarism? 2
33 Find and write the output of the following Python code: 2

Section- II

34 Write a Python script to create a simple calculator performing only four basic 3
operations.
The code should accept two numbers and an arithmetic operator (+,-,*, /) at run-
time, perform the arithmetic operation as per the entered operator and display the
result of the operation. An appropriate error message should be displayed if an
invalid operator is entered by the user.
35 Write a Python script that accepts a lower case string from the user at run-time and 3
prints it after capitalizing every alternate character of the string.

For example:
Sample input:
passion
Output:
pAsSiOn
OR

PAGE 4
DEWAN PUBLIC SCHOOL, MEERUT CANTT

Write a Python script that checks a given list of integers and prints “Balanced Oddity”
if the list contains more odd numbers than even numbers, and prints “Unbalanced
Oddity” otherwise.
36 Draw the block diagram of a computer system. Briefly write about the functionality 3
of each component.
37 Write a Python script that removes all the duplicate elements from a given list of 3
integers. Display the list after making the changes.
OR
Write Python script to display the count of all the four letter words of a string
entered by the user at run-time.
For example,
If the string contains:
‘Taking backup of sensitive data is very essential’
The following output should get displayed:
Count of four letter words: 2
Section-III

38 Write Python script to perform the following operations. 5


a) Accept a list L, of n integers at run-time. The value of n is entered by the
user at run-time.
b) Display the sum of even values and sum of odd values of the list L separately.

Example: if the list L contains

Then the script should display the output as:


Sum of even values = 42 (i.e 20+22)
Sum of odd values = 99 (i.e 25+21+53)
39 Explain the following: 5
a) Any three impacts of technology change on society.
b) Advantages of using licensed software.
40 Answer the following with respect to Python dictionary object: 5
a) Two ways of creating an empty dictionary.
b) How is indexing done in a dictionary?
c) Write statement to print the number of key:value pairs stored in a dictionary
named D1.
d) Difference between pop() and popitem() methods of a dictionary object.
e) Difference between keys() and values() methods of a dictionary object.
OR
Consider the following dictionary named country_capital whose keys are country
names and whose values are their corresponding capital names.
Write Python script that performs the following operations:
a) Create the dictionary country_capital at run-time for n number of key-value
pairs where n is entered by the user at run-time.
b) Display the details of all countries whose names begin with ‘I’.

PAGE 5

You might also like