New ! Computer Science MCQ Practise Tests



12th Standard Computer Science English Medium Python - Variables and Operators Reduced Syllabus Important Questions 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 100

      Multiple Choice Questions

    15 x 1 = 15
  1. The Python prompt indicates that Interpreter is ready to accept instruction.

    (a)

    >>>

    (b)

    <<<

    (c)

    #

    (d)

    <<

  2. Which operator is also called as Conditional operator?

    (a)

    Ternary

    (b)

    Relational

    (c)

    Logical

    (d)

    Assignment

  3. Which of the following mode cannot be written Python program?
    (i) Interactive mode
    (ii) Script mode
    (iii) Calculator mode
    (iv) Executable mode

    (a)

    i

    (b)

    ii

    (c)

    i and iii

    (d)

    iii and iv

  4. Which mode can also be used as a simple calculator in Python?

    (a)

    Information

    (b)

    Intelligent

    (c)

    Script

    (d)

    Interactive

  5. Which of the following indicates in Python that interpreter is ready to accept instructions?

    (a)

    >>>

    (b)

    <<<

    (c)

    .py

    (d)

    <<

  6. >>> indicates that

    (a)

    IDLE is working in script mode

    (b)

    Source program can be created and stored

    (c)

    IDLE is working in Interactive mode

    (d)

    It will not display the results immediately

  7. A sequence of elementary lexical components of Python statement is known as

    (a)

    Keywords

    (b)

    Tokens

    (c)

    Delimiters

    (d)

    Literals

  8. Which of the following is a sequence of characters surrounded by quotes?

    (a)

    String

    (b)

    Complex

    (c)

    Boolean

    (d)

    Octal

  9. Exponent data example is

    (a)

    123.45

    (b)

    .0537

    (c)

    2.4E-2

    (d)

    Ox5

  10. In Python there are ______ normal token types.

    (a)

    4

    (b)

    3

    (c)

    5

    (d)

    7

  11. In computer programming languages _____ are special symbols which represent computations.

    (a)

    Keywords

    (b)

    Literals

    (c)

    Delimiters

    (d)

    Operators

  12. An arithmetic operator takes _____ operands and perform a calculations.

    (a)

    3

    (b)

    4

    (c)

    2

    (d)

    1

  13. In Python _____ is a simple assignment operator.

    (a)

    =

    (b)

    !=

    (c)

    ==

    (d)

    #

  14. All data values in Python are ______

    (a)

    objects

    (b)

    class

    (c)

    type

    (d)

    functions

  15. ______ data can be decimal, octal or hexadecimal.

    (a)

    Character

    (b)

    Integer

    (c)

    Escape sequence

    (d)

    Symbols

    1. 2 Marks

    10 x 2 = 20
  16. What are the different modes that can be used to test Python Program?

  17. Write short notes on Tokens.

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

  19. Write short notes on Exponent data?

  20. How will you develop and run Python code?

  21. What is the purpose of using Input-output functions?

  22. Write the Syntax of using print () in python.

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

  24. Why the following identifiers are invalid?
    (i) 12 Name
    (ii) name$
    (iii) physics-mark
    (iv) break

  25. Assume the value of a = 100 and b = 75. Evaluate the following expression.
    (i) a==b
    (ii) a!=b
    (iii) a//b
    (iv) a>=b

    1. 3 Marks

    15 x 3 = 45
  26. Write short notes on Arithmetic operator with examples.

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

  28. Write short notes on Escape sequences with examples.

  29. What are string literals? Explain.

  30. Write the key features of Python.

  31. Write the function of the following
    (i) Ctrl + N
    (ii) Ctrl + S
    (iii) F5

  32. Fill in the blanks.
    >>> city = \(\overset { (1) }{ \_ \_ \_ \_ \_ } \) ("Enter your City")
    Enter your city \(\overset { (2) }{ \_ \_ \_ \_ \_ } \)
    >>> print ("I am from", \(\overset { (3) }{ \_ \_ \_ \_ \_ } \))
    I am from Chennai

  33. 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) }{ \_ \_ \_ \_ \_ } \))

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

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

  36. Write a short note on comment statement.

  37. How will you define program blocks in python?

  38. Fill in the blanks.
    (i) _____ statements are ignored by Python interpreter.
    (ii) The value of an operator used is called _______
    (iii) 100/30 = ______

  39. Identify the type of literals.
    (i) OX13B
    (ii) i+34j
    (iii) 12e05
    (iv) 0346

  40. How will you represent Octal, hexadecimal and long integer data?

    1. 5 Marks

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

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

  43. Discuss in detail about Tokens in Python.

  44. 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 English Medium Python - Variables and Operators Reduced Syllabus Important Questions 2021

Write your Comment