KnowledgeBoat Logo

Class - 12 CBSE Computer Science — Assertion Reason Type Questions

  • Python Funda

    Assertion. Assigning a new value to an int variable creates a new variable internally.

    Reason. The int type is immutable data type of Python.


  • Python Data Handling

    Assertion (A): Every small unit in a Python programming statement is termed as a token.

    Reasoning (R): Tokens are not interpreted but are an integral part while designing the code.

    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.


  • Python Data Handling

    Assertion (A): The data type of a variable is taken according to the type of value assigned to it.

    Reasoning (R): Data types do not require initialization at the time of declaration. This process is described as Dynamic Typing.

    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.


  • Python Data Handling

    Assertion (A): In Python, strings, lists and tuples are called Sequences.

    Reasoning (R): Sequence is referred to as an ordered collection of values having similar or different data types.

    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.


  • Python Funda

    Assertion. If and For are legal statements in Python.

    Reason. Python is case sensitive and its basic selection and looping statements are in lower case.


  • Python Funda

    Assertion. if and for are legal statements in Python.

    Reason. Python is case sensitive and its basic selection and looping statements are in lower case.


  • Python Funda

    Assertion. The break statement can be used with all selection and iteration statements.

    Reason. Using break with an if statement is of no use unless the if statement is part of a looping construct.


  • Python Funda

    Assertion. The break statement can be used with all selection and iteration statements.

    Reason. Using break with an if statement will give no error.


  • Python Control Flow

    Assertion (A): break and continue are termed as Jump statements.

    Reasoning (R): Jump statements can only be used with looping constructs but not with conditional constructs.

    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.


  • Python Control Flow

    Assertion (A): The conditional flow of control can be defined with the help of if statement.

    Reasoning (R): if statement executes one or more statements based on the given condition. If the condition evaluates to true, the statement block following the indentation gets executed, otherwise nothing gets executed.

    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.


Showing 1 - 10 of 201 Questions