image
[custom_code] Class 12 CBSE Final Term Question Bank

Class 12 CBSE Final Term Question Bank - Computer Science

Section A – Multiple Choice Questions (1 mark each)

  1. State True or False: Identifiers are names used to identify a variable, function in a program.
  2. Which of the following is a valid keyword in Python?
  3. Given the following Tuple: Tup = (10, 20, 30, 50), which of the following statements will result in an error?
  4. 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?
  5. Select the correct output of the following code:
    S = "Amrit Mahotsav@ 75"
    A = S.partition(" ")
    print(A)
  6. Which of the following mode keeps the file offset position at the end of the file?
  7. Which function is used to arrange the elements of a list in ascending order?
  8. Which of the following operators will return either True or False?
  9. Which statement(s) would give an error after executing the following code?
    
    Stud = {"Murugan": 100, "Mithu": 95}
    print(Stud[95])
            
  10. ___ is the number of tuples in a relation.
  11. The syntax of `seek()` is: `file object.seek(offset[, reference_point])`. What is the default value of the reference point?
  12. ___ clause is used with the SELECT statement to display data in a sorted form with respect to a specified column.
  13. ___ communication is used for point-to-point communication such as radar and satellite.
  14. What will the following expression evaluate to?
    print(4 + 3 * 5 / 3 - 5 % 2)
  15. Which function returns the sum of all elements of a list?
  16. fetchall() method fetches all rows in a result set and returns a:
  17. 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.
  18. 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.
[/custom_code]