[go: up one dir, main page]

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

Class 11 CS QP See P

Uploaded by

Nakshatra Jonwar
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)
80 views5 pages

Class 11 CS QP See P

Uploaded by

Nakshatra Jonwar
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

SESSION ENDING EXAMINATION 2022-23

Subject: Computer Science (083)


Time: 3:00 Hours Class XI Max. Marks: 70

General Instructions
1. This question paper has 4 pages.
2. This question paper contains five sections, Section A to E.
3. All questions are compulsory.
4. Section A has 18 questions carrying 01 mark each.
5. Section B has 07 Very Short Answer questions carrying 02 marks each.
6. Section C has 05 Short Answer type questions carrying 03 marks each.
7. Section D has 03 Long Answer type questions carrying 05 marks each.
8. Section E has 02 questions carrying 04 marks each.
9. All programming questions are to be answered in Python Language only.

SECTION – A (18 x 1M = 18M)


1 Which smaller unit of the CPU performs all arithmetic and logic functions in a computer?
a) CU b) ALU c) Processor d) All the above
2 Which of the following is not a valid symbol in Hexadecimal number system?
a) 2 b) 8 c) 9 d) G
3 According to DeMorgan law: (A+B)’ =?

a) A+B’ b) A+B c) A’+B’ d) A’. B’


4 What shape represents a decision in a flowchart?
a) A diamond b) A rectangle c) An oval d) None of the above
5 Python code can run on a variety of platforms, it means Python is a _____ Language.
a) Graphical b) platform independent c)open source d) All the above
6 To print a value of a variable, Python uses
a) Print function b) Input() function c) input() function d) print ()function

7 Special meaning words of Python, fixed for specific functionality are called
a) Identifiers b) functions c)keywords d) literals
8 The lines beginning with certain character, and which are ignored by a compiler and not
executed are called
a) Operators b) operands c) functions d) comments
9 What is the value of expression 100//25
a) 4 b) 4.0 c) 2.5 d) none of the above
10 What will be the value of y after following code fragment is executed?
x=10.0
y=(x<100.0) and x>=10
a) 110 b) True c) False d) Error
11 What is the output when the following code is executed?
x=1
while(x<=5):
x+1
print(x)
a) 6 b) 1 c) 5 d) infinite
12 Which of the following functions will return the last three characters of a string s?
a) s[3:] b) s[:3] c) s[-3:] d) s[:-3]
13 Which of the following will create an empty list?
a) L=[] b) list(0) c) L=list() d) L=List(empty)
14 Which of the following will not create a single element tuple?
a) (1,) b) (1) c) ([1]) d) tuple([1])
15 Dictionaries are _____ data types of Python
a) Mutable b) immutable c) simple d) all the above
16 Which of the following are jump statements?
a) if b) break c) while d) for
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
Assertion (A): Data submitted online intentionally known as active digitalfoot print.
17
Reasoning(R): Active digital footprints include emails, replies, comments or posts made
on different websites or apps.
18 Assertion (A): Python lists allows to modify their elements by indexes easily.

Reasoning(R): Python lists are mutable


SECTION B (7*2M=14M)
19 Convert the following.
a. (13)10 = (?)2
b. (11111011110101)2=(?)8

20 Draw the logic circuit for the following equation : A’B + C


21 What will be the output of the following program
x,y=2,6
x,y=y,x+2
print(x,y)
22 L1=[1,2,3]
L2=[4,5,6]
With reference to L1and L2 explain append() and extend() functions with example.
OR
Write the output of the following.
data=(10,20,20,1,7,9,100)
a) print(data[::-1])
b) print(data[1:6])
c) print(data[4:-2])
d) print(data[-40:4])
23 Write a program to create a dictionary to assign day number as key and day name as value.
24 Rewrite the Python code after identifying and correcting the code. Underline each
correction
N=10
for i in range(0,N)
If i%4==0:
print(i*4)
Elseif i%5==0:
print(i+3)
else
print(i+10)
OR

Mention any four net etiquettes

25 Define cyber Bullying.


SECTTION – C (5 x 3M=15M)

26 Define Assembler, Compiler and Interpreter

27 Explain the following string operations


a. String concatenation

b. String repetition

c. String Membership
OR

Write a program to search an element in a given list


28 What is the expected output of the given Python code.
L = [6 , 3 , 8 , 10 , 4 , 6 , 7]
print( '@', L[3] - L[2])
for i in range (len(L)-1,-1,-2) :
print( '@',L[i],end='' )
OR
Write a program to accept a number, reverse it and show the result.
29 Predict the output of the given Python Code:
tuple1 = (11, 22, 33, 44, 55 ,66)
list1 =list(tuple1)
new_list = []
for i in list1:
if i%2==0:
new_list.append(i)
new_tuple = tuple(new_list)
print(new_tuple)

30 Define malware, adware, virus


SECTION – D (3x 5M = 15M)

31 How to dispose E-Waste and What are the benefits of E-waste management.
OR
Write a menu driven program to do the arithmetic operations (*,/,+,-)

32 Write a menu driven program using dictionary consisting of options


1) Enter data (Rollno, marks)
2) Display data
3) Quit
Considering rollno as key and marks as values.
OR
Write a program to accept a string and check whether it is palindrome or not.
33 Write a program to print Fibonacci series up to n terms

SECTION – E (2x 4M = 8M)


34 Consider below code:
a,b=0,1
n=___________ # Statement 1
if _________: #Statement 2
print(“Please enter a positive number”)
elif _______: #Statement 3
print(“You have entered 0”)
else:
_______________ #Statement 4
c = a+b
a=b
b=c
print(b)
a. Write input statement to accept number of terms(n) – Statement 1
b. Write if condition to check whether input is positive number or not - Statement 2
c. Write if condition to check whether input is 0 or not - Statement 3
d. Write for loop for to iterate the values up to n terms
OR
Observe the following program and answer the question that follows:
import random
x=3
N = random.randint (1, x)
for i in range (N):
print (i, '#', i + 1)
a. What is the minimum and maximum number of times the loop will execute?
b. Find out, which line of output(s) out of (i) to (iv) will not be expected from the program?
i. 0#1
ii. 1#2
iii. 2#3
iv. 3#4

35. (a)What is open source software? Give an example. 2M


` (b)Define i)Plagarism ii) Phishing 2M

You might also like