0% found this document useful (0 votes)
54 views2 pages

Summer Assignment 24-25-Cs-Xii

The document contains a set of practice questions for a Computer Science class. It includes multiple choice and true/false questions about Python concepts like data types, operators, dictionaries and functions. The questions cover topics like tuples, keywords, operators, dictionaries, string methods and functions.

Uploaded by

thakurkrish497
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)
54 views2 pages

Summer Assignment 24-25-Cs-Xii

The document contains a set of practice questions for a Computer Science class. It includes multiple choice and true/false questions about Python concepts like data types, operators, dictionaries and functions. The questions cover topics like tuples, keywords, operators, dictionaries, string methods and functions.

Uploaded by

thakurkrish497
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
You are on page 1/ 2

SICA SENIOR SECONDARY SCHOOL, SCHEME NO. 78, INDORE.

SUMMER HOLIDAY ASSIGNMENT 2024-25


CLASS XII
SUBJECT: COMPUTER SCIENCE
Q01. State True or False
“Tuple is datatype in Python which contain data in key-value pair.”
Q02 State True or False
“Python has a set of keywords that can also be used to declare variables”
Q03. Which of the following is not a keyword?
(A) eval (B) assert
(C) nonlocal (D) pass
Q04. Which of the following is not a valid python operator?
a) % b) in c) # d) **
Q05. What will the following expression be evaluated to in Python?
print ( round (100.0 / 4 + (3 + 2.55) , 1 ) )
(A) 30.0 (B) 30.55
(C) 30.6 (D) 31
Q06. Given the following dictionaries
dict_student = {"rno" : "53", "name" : ‘Rajveer Singh’}
dict_marks = {"Accts" : 87, "English" : 65}
Which statement will merge the contents of both dictionaries?
(A) dict_student + dict_marks (B) dict_student.add(dict_marks)
(C) dict_student.merge(dict_marks) (D) dict_student.update(dict_marks)
Q07. Which of the following statement(s) would give an error after executing the following
code? D={'rno':32,'name':'Ms Archana','subject':['hindi','english','cs'],'marks':(85,75,89)}
#S1
print(D) #S2
D['subject'][2]='IP' #S3
D['marks'][2]=80 #S4
print(D) #S5
(A) S1 (B) S3
(C) S4 (D) S3 and S4
Q08. Consider the given expression:
not ((True and False) or True)
Which of the following will be correct output if the given expression is evaluated?
(A) True (B) False
(C) NONE (D) NULL
Q09. Select the correct output of the code:
>>> s='[email protected]'
>>> s=s.split('kv')
>>> op = s[0] + "@kv" + s[2]
>>> print(op)
(A) mail2@kvsangathan (B) mail2@sangathan.
(C) mail2@kvsangathan. (D) mail2kvsangathan.

Q8 IS 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 R are true and R is not the correct explanation for A
(C) A is True but R is False
(D) A is false but R is True
Q08. str1= “Class” + ”Work”
ASSERTION: Value of str1 will be “ClassWork”.
REASONING: Operator ‘+’ adds the operands, if both are numbers & concatenates the string if
both operands are strings.
09. Def checkNumber(N):
status = N%2
return
#main-code
num=int( input(“ Enter a number to check :))
k=checkNumber(num)
if k = 0:
print(“This is EVEN number”)
else:
print(“This is ODD number”)

You might also like