New ! Computer Science MCQ Practise Tests



Python - Variables and Operators Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 02:00:00 Hrs
Total Marks : 50
    10 x 1 = 10
  1. Who developed Python?

    (a)

    Ritche

    (b)

    Guido Van Rossum

    (c)

    Bill Gates

    (d)

    Sunder Pitchai

  2. Which of the following is not a token?

    (a)

    Interpreter

    (b)

    Identifiers

    (c)

    Keyword

    (d)

    Operators

  3. Which operator is also called as Comparative operator?

    (a)

    Arithmetic

    (b)

    Relational

    (c)

    Logical

    (d)

    Assignment

  4. Which of the following is not Logical operator?

    (a)

    and

    (b)

    or

    (c)

    not

    (d)

    Assignment

  5. Which operator is also called as Conditional operator?

    (a)

    Ternary

    (b)

    Relational

    (c)

    Logical

    (d)

    Assignment

  6. Python language was released in

    (a)

    1992

    (b)

    1991

    (c)

    1994

    (d)

    2001

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

    (a)

    .pyt

    (b)

    .pyh

    (c)

    .py

    (d)

    .pon

  8. Which of the following mode allows to write codes in Python command prompt?

    (a)

    Script mode

    (b)

    Complier mode

    (c)

    Interactive mode

    (d)

    Program mode

  9. Which mode can also be used as a simple calculator?

    (a)

    Calc mode

    (b)

    Interactive mode

    (c)

    Script mode

    (d)

    Code mode

  10. Which of the following function in Python is used to convert strings data as integer data explicitly?

    (a)

    integer ()

    (b)

    num ()

    (c)

    int ()

    (d)

    number ()

  11. 5 x 1 = 5
  12. 0b1010

  13. (1)

    Binary Literal

  14. Oo310

  15. (2)

    Octal Literal

  16. 567

  17. (3)

    Decimal Integer

  18. 0432

  19. (4)

    Hexdecimal Integer

  20. Ox562

  21. (5)

    Octal Integer

    4 x 2 = 8
  22. What are the different modes that can be used to test Python Program?

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

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

  25. Write the syntax of input () used in python.

  26. 4 x 3 = 12
  27. Write short notes on Arithmetic operator with examples.

  28. Explain Ternary operator with examples.

  29. What are string literals? Explain.

  30. Write a Python programme to get the following output.
    Output:
    Enter Number 1: 50
    Enter Number 2: 50
    X = 50 Y = 50

  31. 3 x 5 = 15
  32. Explain input() and print() functions with examples.

  33. Discuss in detail about Tokens in Python.

  34. 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 Standard Computer Science - Python - Variables and Operators Model Question Paper

Write your Comment