New ! Computer Science MCQ Practise Tests



Python - Variables and Operators 3 Marks and 5 Marks Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 35
    5 x 3 = 15
  1. Write short notes on Arithmetic operator with examples.

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

  3. Explain Ternary operator with examples.

  4. Write short notes on Escape sequences with examples.

  5. What are string literals? Explain.

  6. 4 x 5 = 20
  7. Describe in detail the procedure Script mode programming.

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

  9. Discuss in detail about Tokens in Python.

  10. 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 3 Marks and 5 Marks Questions

Write your Comment