Class 12 CBSE Final Term Question Bank – Computer Science
Section A – Multiple Choice Questions (1 mark each)
- State True or False: Identifiers are names used to identify a variable, function in a program.
- Which of the following is a valid keyword in Python?
- Given the following Tuple:
Tup = (10, 20, 30, 50), which of the following statements will result in an error? - Consider the given expression:
5<10 and 12>7 or not 7>4. What will be the correct output if the given expression is evaluated? - Select the correct output of the following code:
S = "Amrit Mahotsav@ 75" A = S.partition(" ") print(A) - Which of the following mode keeps the file offset position at the end of the file?
- Which function is used to arrange the elements of a list in ascending order?
- Which of the following operators will return either True or False?
- Which statement(s) would give an error after executing the following code?
Stud = {"Murugan": 100, "Mithu": 95} print(Stud[95]) - ___ is the number of tuples in a relation.
- The syntax of `seek()` is: `file object.seek(offset[, reference_point])`. What is the default value of the reference point?
- ___ clause is used with the SELECT statement to display data in a sorted form with respect to a specified column.
- ___ communication is used for point-to-point communication such as radar and satellite.
- What will the following expression evaluate to?
print(4 + 3 * 5 / 3 - 5 % 2) - Which function returns the sum of all elements of a list?
- fetchall() method fetches all rows in a result set and returns a:
- Assertion (A): To use a function from a particular module, we need to import the module.
Reason (R): import statement can be written anywhere in the program, before using a function from that module. - Assertion (A): A stack is a LIFO structure.
Reason (R): Any new element pushed into the stack always gets positioned at the index after the last existing element in the stack.