12th Preboard2 CS
12th Preboard2 CS
General Instructions:
All questions are compulsory.
Marks for each question are indicated.
Use a pen for writing answers. Calculators are not allowed.
Ensure neat and legible handwriting.
Section A:
Multiple Choice Questions (1 mark each) (25 x 1 = 25 Marks)
1. "Identifiers are names used to identify a variable, function in a program'
a. True b. False
2. Given the following Tuple 1 Tup= (10, 20, 30, 50)
a. print (Tup[0] )
b. Tup. insert (2, 3) d. print (len (Tup) )
c. print (Tup [1 : 2] )
3. Consider the given expression:
5<10 and 12>7 or not 7>4
Which of the following will be the correct output, if the given expression is evaluated?
a. True b. False c. NONE d. NULL
partition (“ " )
print (a)
a. ( 'Amrit Mahotsav' , '@ ' , ' 7 5 ' ) c. ('Amrit’, ‘Mahotsav @ 75 ' )
b. [ 'Amrit' , 'Mahotsav' , ' @' 7 5 ' ] d. ( 'Amrit' , ‘’,'Mahotsav @ 75' )
5. Which of the following mode keeps the file offset position at the end of the file?
a. r+ b. w+ c. r d. a
6. In databases, what does SQL stand for?
a. Structured Query Language b..Standard Query Link
c. Simple Query Logic d. System Query Language
7. Which of the following statement(s) would give an error after executing the following code?
Stud= {"Murugan":100, "Mithu":95)
file_object.seek(offset [, reference_point])