New ! Computer Science MCQ Practise Tests



Python - Variables and Operators Model Question Paper 1

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. Which of the following is not a token?

    (a)

    Interpreter

    (b)

    Identifiers

    (c)

    Keyword

    (d)

    Operators

  2. Which operator is also called as Comparative operator?

    (a)

    Arithmetic

    (b)

    Relational

    (c)

    Logical

    (d)

    Assignment

  3. Which of the following is not Logical operator?

    (a)

    and

    (b)

    or

    (c)

    not

    (d)

    Assignment

  4. In Python, How many ways programs can be written?

    (a)

    4

    (b)

    3

    (c)

    2

    (d)

    many

  5. In Python, the script mode programs can be stored with the extension.

    (a)

    .pyt

    (b)

    .pyh

    (c)

    .py

    (d)

    .pon

  6. 5 x 2 = 10
  7. What are the different modes that can be used to test Python Program?

  8. What are the different operators that can be used in Python?

  9. How many ways the Python shell can be used?

  10. How will you know the python IDLE working in interactive mode?

  11. Name the tokens where the whitespace in necessary in python.

  12. 5 x 3 = 15
  13. What are the assignment operators that can be used in Python?

  14. What are string literals? Explain.

  15. Write the key features of Python.

  16. Why the following statement not accept the data as numbers? Give reason and also state what function is used to accept the number.

  17. What are the rules followed while defining python identifier?

  18. 4 x 5 = 20
  19. Describe in detail the procedure Script mode programming.

  20. Explain input() and print() functions with examples.

  21. Discuss in detail about Tokens in Python.

  22. Write the output for the following python code..
    x=10
    x+=20
    print ("The x + = 20 is =",x)
    x-=5
    print ("The x -= 5 is = ",x)
    x*=5
    print ("The x *= 5 is = ",x)
    x/=2
    print ("The x/ = 2 is = ",x)
    x%=3
    print ("The x %= 3 is = ",x)
    x**=2
    print ("The x **= 2 is = ",X)
    x//=3
    print ("The x//= 3 is = ",x)

*****************************************

Reviews & Comments about 12th Computer Science - Python - Variables and Operators Model Question Paper 1

Write your Comment