0% found this document useful (0 votes)
11 views9 pages

Sample Xi

The document is an annual examination paper for Class XI Computer Science with Python, consisting of five sections (A to E) with a total of 70 marks and a time limit of 3 hours. Each section contains various types of questions, including multiple-choice, short answer, and programming questions that must be answered in Python. The paper covers topics such as Python syntax, data structures, digital footprints, and software licenses.

Uploaded by

mycomputer9221
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views9 pages

Sample Xi

The document is an annual examination paper for Class XI Computer Science with Python, consisting of five sections (A to E) with a total of 70 marks and a time limit of 3 hours. Each section contains various types of questions, including multiple-choice, short answer, and programming questions that must be answered in Python. The paper covers topics such as Python syntax, data structures, digital footprints, and software licenses.

Uploaded by

mycomputer9221
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HOLY FAMILY CONVENT SR. SEC.

SCHOOL

ANNUAL EXAMINATION (2023-24)

SUBJECT – COMPUTER SCIENCE WITH PYTHON

CLASS -XI

Maximum Marks: 70 Time Allowed: 3 hours

General Instructions:

[Link] question paper contains five sections, Section A to E.

2. All questions are compulsory.

3. Section A has 18 questions carrying 01 mark each.

4. Section B has 07 Very Short Answer questions carrying 02 marks each.

5. Section C has 05 Short Answer type questions carrying 03 marks each.

6. Section D has 03 Long Answer type questions carrying 05 marks each.

7. Section E has 02 questions carrying 04 marks each.

9. All programming questions are to be answered in Python Language only.

Section –A

1. Which of to the following is valid Literal?

(i) Ram

(ii) False

(iii) if

(iv) for

2. Which of the following is base of octal number system?


a) 7

b) 2
c) 8

d) 10

3. Which of the following gate returns output as only 1 if all inputs are 1?

a) AND

b) EXOR

c) OR

d) NOR

4. Which of the following is not a Python IDE?

a)IDLE

b)Spyder

c)Jupyter Notes

d)Sublime Text

5. The ______ mode of Python gives instant result of typed statement

a)Interactive mode

b) Script mode

c) Combination of interactive and script modes

d) All of these

6. Dhruv wants to compute power of n. Select appropriate statement for him:

a) n^2

b) n*2

c) n^^2

d) n**2

7. Which of the following is not a valid relational operator?

a) !=

b) +=
c) <=

d) =

8. Identify the symbol is used to write a single line comment in python.

a) /

b) %

c) //

d) #

9. What will be the value of variable a when loop is terminated?

a=20

for i in range(10,-1,-2):

a-=a-2

print(a)

a) -2

b) 0

c) -1

d) 2

10. Dhyana wants to check the more than two conditions in python program.

Suggest her a control structure that helps her to accomplish her tasks.

a) Simple if

b) If-else

c) if-elif-else

d) nested if

11. Observe the given code and select an appropriate output:

a='Computer Science is Science of Computers'


w=[Link](‘Sci’)

print(a[1])

a) Science is

b) ence of Computers

c) Computer

d) ence is

12. Hriday has created a tuple in python:

T=(5,10,15)

Now he wants add an element 20 at the end of tuple next to 15. Which of the following statement is
correct for him?

a) T = T + 40

b) [Link](40)

c) T=T+(40,)

d) Not possible

13. Identify incorrect python tuple declaration?

a) (1,2,3)

b) 1,2,3,4

c) (1,)

d) (1)

14. The Indian IT ACT is amended in :

a) 2000

b) 2008

c) 2010

d) 2002

15. While using different apps and websites, it is asking our personal

information. What will they do with our data afterwards taking them?
a) They just save data for their records

b) It is compulsory to give information for using apps and websites

c) They are asking for reward user in future

d) Looking to run targeted advertisements on user’s computers

16. Which of the following digital footprint is created without user’s consent?

a) Active Digital Footprint

b) Passive Digital Footprint

c) Massive Digital Footprint

d) Inactive Digital Footprint

17 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 (A)

(B) Both (A) and (R) are true and R is not the correct explanation (A)

(C) (A) is True but (R) is False

(D) (A) is false but (R) is True

17. Consider following dictionaries:

xi22={‘CS’:’Mr. Sanjay’,’IP’:’Mrs. Hemanigini’}

xi23={‘IP’:’Mrs. Hemanigini’,’CS’:’Mr. Sanjay’}

print(xi22==xi23)

Assertion(A): Print statement returns True.

Reasoning(R): Dictionaries are unorder set of key:value pairs.

18. L=[23,24,25]

L[3]=27

Assertion(A): It adds 27 to the end of list.


Reasoning(R): List value can be added using functions only not by index.

Section B

19. Convert the following binary numbers to as directed:

a) (1011011)2 -()16

b) (11110011)2- ()8

c) (1010101)2- ()10

d) (468)10 - ()2

20. Prepare a truth table for the following equation:

a) (A+B)’C

b) A’+B’C’

[Link] has given following symbols and word to identify which types of tokens are they, help her to
identify them:
[Link]
ii.r_no

[Link]
iv. ‘True’

22. Predict the output of following code:

NUMBER= [15,12,19,26,18]

for i in range (3,0,-1):

A=NUMBER[i]

print(A,end='#')

B=NUMBER[i-1]

print(B,end='@')

OR

Rewrite the following code after removing all syntax errors. Underline each correction you have done in
the code:
a=10

for v in range(a)

if v%10=0:

print(v//10)

el if v%8==0:

print(v//8)

else:

print(v//2)

23. Predict the output of the following code:

d={ }

d[1]=1

d['1']=2
d[1.0]=3

[Link]('1.0',4)

print(d)
24. What is eavesdropping? What is phishing?

OR

Write the differences between Copyrights and Patents?


25. Differentiate between Free software and Open source software.

Section C

26. Tarun is preparing for an interview for software developer. Help him by explaining categories of
different application software by supporting examples.
27. Evaluate the expressions:

a) 5+5*10**2//4
b) 3*5-4**2
c) not (10<5) and (13>9) or (5==6)

OR

Write a program to enter a string and replace every occurrence of space with #

28. Write a program to create a list of 5 students and display the student names ends with ‘e’.

Example:

L=[‘Dhruvee’,’Hetvee’,’Kane’,’Rakesh’]

The output will be: ‘Dhruvee’, ‘Hetvee’, ‘Kane’

OR

What do you mean by packing and unpacking of tuples? Illustrate answer with example.

29. Write any three restrictions that needs be to keep in mind while creating a dictionary.

30. Write any three points should be taken care while sitting for work in front of computers.

Section D
31. Write algorithm and draw flow chart to check whether number is positive, negative or zero.

OR

Write a program to input 10 numbers in a list. Now input another number from user to search in the list
without using any built in functions of list.

32. Write a program to create a list [‘a’,’bb’,’ccc’,…] and continues up to z.

OR

Write a python program to create a dictionary of having keys as product name and price as values.
Compute the bill and display the bill with required details.

33. Explain following:

a) Software License b) GNU GPL c) Plagiarism d) FOSS e) Cyber Bullying

Section E
[Link] a dictionary 'ODD' of odd numbers between 1 and 10, where the key is the decimal number
and the value is the corresponding number in words. Perform the following operations on this dictionary
:

[Link] the keys

[Link] the length of the dictionary

[Link] if 7 is present or not

OR

Retrieve the value corresponding to the key 9

[Link] the item from the dictionary corresponding to the key 9

[Link] the following code to compute the sum of first n natural numbers

n = int(input(“Enter a number :”))

s= ___________________________________________ #Statement-1

for i in range(n):

s=_____________ #Statement-2

print(‘Sum is’, s)

(ii) Perform following operations on a dictionary using dictionary methods

only: d = {1: ‘one’, 2: ‘two’, 3 : ‘three’ }

(a) Add a key 5 with value ‘five’

(b) Remove the key value pair for key 2

(c) Print value at key 3

You might also like