CS Xi
CS Xi
1
10 Which output lines of the following program will print the same results? 1
T=(10, 20, 30, 40, 50)
print(T[1]) # 1
print(T[0]) # 2
print(T[-4]) # 3
print(T[-3) # 4
a) (1) and (2)
b) (1) and (3)
c) (2) and (3)
d) (2) and (4)
11 In which situation is it acceptable to use all caps in a social media post? 1
a) To emphasize a point
b) Always for better visibility
c) Never, it's considered shouting
d) Only in private messages
12 The following symbol is used to represent _____ in flow charts 1
a) Decision
b) Process
c) Input/output
d) stop
13 These are some small text files for storing a small piece of information related to 1
someone’s online habits
a) spam b)cookies c) spam d) virus
14 ___________refer to the traces and records of an individual's online activities and 1
interactions
a) Digital footprints
b) Identity theft
c) Plagiarism
d) Copyright infringement
15 Which of the following is a correct statement? 1
a) Int and list are immutable data types
b) string and list are mutable data types
c) dictionary and list are mutable data types
d) list and tuple are mutable data types
16 How many times will the for loop be executed? 1
for n in range(1,9,2):
print(n)
a) 9 b) 5 c)8 d) 4
Q17 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 for A
(b) Both A and Rare true and R is not the correct explanation forA
(c) A is True but R is False
(d) A is false but R is True
2
17 Assertion (A):-A while loop in Python can have an ‘else’ block. 1
Reason (R):-The ‘else’ block of a while loop is executed when the loop condition
becomes False.
Assertion (A):-The’ in’ operator can be used to check if a substring is present in a 1
18 string.
Reason (R):-The operators ‘in’ and ‘==’ are same in python
SECTION B
19 See the following program snippet which is designed to store and print the names of 2
some students. But the program shows some error while executing. You have to
Correct the errors to make it possible and underline each correction
NAMES = [ABHAY,NEHA,ROHAN]
TOTAL=Len(NAMES)
i=0
while i<= TOTAL:
print(NAMES[i])
i=+ 1
20 Write a program to print the pattern . 2
*
**
***
**** OR
Writea program to print the series 10-15-20-25-…….n- . the value for n is inputted by
the user
21 Which of the following options will not be the output of the following python code: 2
import random
STRING="PLUSONE"
for i in range(2):
N=random.randint(1,5)
print(STRING[N],end='#')
a) S#L#
b) P#U#
c) L#L#
d) L#E
22 Write any two methods to protect your computer from virus attacks 2
23 Obtain Boolean expression for the following logic circuit 2
3
c) To remove the last element of a list
d) To remove the last element of a dictionary .
SECTION C
26 Write a program to input a string and display all the words which starts with a vowel. 3
4
SECTION E
34 Convert the following 4
a) (82)10=(_____)2b) (11011010)2= (______)10
c) (101010110)2=(_____)8d)(26)10=(_____)8
35 Choose the specific cyber crime for each of the following situations from the bracket. 4
(Plagiarism , Bank fraud, Identity theft ,cyber bullying)
a) Using someone else's credit card information to make unauthorized purchases.
b) Copying and pasting text from a website or book without proper citation.
c) Harassing or threatening someone online through social media platforms
d) Impersonating someone online to access their accounts or commit illegal
activities