New ! Computer Science MCQ Practise Tests



Python - Variables and Operators Model Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    10 x 1 = 10
  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. Python language was released in

    (a)

    1992

    (b)

    1991

    (c)

    1994

    (d)

    2001

  4. IDLE expansion is

    (a)

    Integrated Development Learning Environment

    (b)

    Information Development Logical Environment

    (c)

    Integrated Development Language Environment

    (d)

    Interactive Development Learning Environment

  5. Which of the following defines the Pythons interactive mode of programming?

    (a)

    >>>

    (b)

    <<<

    (c)

    >>

    (d)

    <<

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

    (a)

    Calc mode

    (b)

    Interactive mode

    (c)

    Script mode

    (d)

    Code mode

  7. 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 ()

  8. Which of the following is not a type of token?

    (a)

    Identifier

    (b)

    Keywords

    (c)

    Literals

    (d)

    functions

  9. Which of the following operator checks the relationship between two operands?

    (a)

    Arithmetic

    (b)

    Comparative

    (c)

    Assignment

    (d)

    Conditional

  10. Which of the following is not a numerical literal type?

    (a)

    Integer

    (b)

    Float

    (c)

    Boolean

    (d)

    Complex

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

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

  14. How will you develop and run Python code?

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

  16. How the interactive mode of Python shell can be used as simple calculator?

  17. 5 x 3 = 15
  18. Write short notes on Arithmetic operator with examples.

  19. Explain Ternary operator with examples.

  20. What are string literals? Explain.

  21. Write the key features of Python.

  22. Differentiate two ways in which Python programs can be written.

  23. 3 x 5 = 15
  24. Describe in detail the procedure Script mode programming.

  25. Discuss in detail about Tokens in Python.

  26. 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 Chapter 5 Python - Variables and Operators Model Question Paper

Write your Comment