" /> -->

Python - Variables and Operators Model Question Paper

12th Standard EM

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. The Python prompt indicates that Interpreter is ready to accept instruction.

    (a)

    >>>

    (b)

    <<<

    (c)

    #

    (d)

    <<

  2. Which of the following is not a Keyword in Python ?

    (a)

    break

    (b)

    while

    (c)

    continue

    (d)

    operators

  3. Which of the following is not Logical operator?

    (a)

    Ternary

    (b)

    Relational

    (c)

    Logical

    (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. Write short notes on Tokens.

  9. What is a literal? Explain the types of literals ?

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

  11. Name any four keywords in Python.

  12. 5 x 3 = 15
  13. Write short notes on Arithmetic operator with examples.

  14. What are the assignment operators that can be used in Python?

  15. Write short notes on Escape sequences with examples.

  16. Fill up the blanks to get the following output from Python code given.
    Output:
    Enter Number 1 : 34
    Enter Number 2 : 70
    The Sum = 104
    Code:
    X = \(\overset { (1) }{ \_ \_ \_ \_ \_ } \) (input ("Enter Number 1:"))
    Y = \(\overset { (2) }{ \_ \_ \_ \_ \_ } \) (\(\overset { (3) }{ \_ \_ \_ \_ \_ } \) ("Enter Number 2 :"))
    \(\overset { (4) }{ \_ \_ \_ \_ \_ } \) ("The sum =", \(\overset { (5) }{ \_ \_ \_ \_ \_ } \))

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

  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)

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

TN 12th Standard EM Computer Science free Online practice tests

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

Write your Comment