Assertion-Reason Board Questions


ASSERTION (A) and REASONING (R) 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.

  1. Assertion (A) : The expression "HELLO".sort() in Python will give an error.

    Reason (R) : sort() does not exist as a method/function for strings in Python. [1 MARK] [2024]
  2. (a) Both (A) and (R) are true and (R) is the correct explanation for (A).

  3. Assertion (A) : CSV file is a human readable text file where each line has a number of fields, separated by comma or some other delimiter.

    Reason (R) : writerow() method is used to write a single row in a CSV file. [1 MARK] [2024]
  4. (b) Both (A) and (R) are true and (R) is not the correct explanation for (A).

  5. 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. [1 MARK] [2023]
  6. (1 mark for writing (c) as the correct option)
    OR
    (1 mark for writing (b) as the correct option)
    OR
    (1 mark for writing (a) as the correct option)
    

  7. 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. [1 MARK] [2023]
  8. (b) Both (A) and (R) are true and (R) is not the correct explanation for (A)
    
    (1 mark for writing correct answer)
    OR
    (½ mark for writing (a) as the correct option)