QUIZ DAY 1


Python Quiz: Day 1

Nihareeka IT Club day 1 quiz........
Python training

  1. Which of the following statements is true?

  2. Python is a high level programming language.
    Python is an interpreted language.
    Python is an object-oriented language.
    All of the above.

  3. What is used to define a block of code (body of loop, function etc.) in Python?

  4. Curly braces
    Parenthesis
    Indentation
    Quotation

  5. Which of the following is correct?

  6. Comments are for programmers for better understanding of the program.
    Python Interpreter ignores comment.
    You can write multi-line comments in Python using triple quotes, either ''' or """.
    All of the above

  7. Which of the following is correct?

  8. Variable name can start with an underscore.
    Variable name can start with a digit.
    Keywords cannot be used as a variable name.
    Variable name can have symbols like: @, #, $ etc. Next

  9. In the following code, n is a/an _______?
    >>> n='5'

  10. integer
    string
    tuple
    operator

  11. What is the output of the following code? >>>print(1, 2, 3, 4, sep='*')

  12. 1 2 3 4
    1234
    1*2*3*4
    1,2,3,4

  13. what is the result of this code??
    >>>7%(5//2)

  14. 1
    2
    0
    5

  15. what is the output of this code?
    >>>print(' print ("print")')

  16. An Error message
    print("print")
    'print ("print") '
    'print'

  17. what is the output of this code?
    >>>int("3" +"4")

  18. 34
    7
    "34"
    "7"

  19. IDLE stands for

  20. Interactive Development Environment
    Integrated Development Environment
    Interprocess Development Environment
    Interface Development Environment

Thanks for your participation.....

Popular posts from this blog

BIG DATA

C plus plus notes