Multiple choice quiz about Python - Part 1

Python is an object-oriented, high-level, powerful, easy-to-learn programming language. To help you read more interesting knowledge about Python programming language, below the Network Administrator will send you a very interesting multiple choice questionnaire on this topic. Please try.

  1. Question 1: Which of the following assertions about Python is correct?
    1. Python is a high-level programming language.
    2. Python is an interpreter language.
    3. Python is an object-oriented programming language.
    4. All answers are correct
  2. Question 2: What sign is used to identify command blocks (function block, loop, .) in Python?
    1. Braces { }
    2. Square brackets [ ]
    3. Indent
    4. Oil parenthesis ()
  3. Question 3: Which assertion is correct about comments in Python?
    1. Annotation helps programmers better understand the program.
    2. The Python interpreter will ignore comments.
    3. Can write comments on the same line with the command / expression or write on multiple lines without any problems
    4. All the answers above.
  4. Question 4: What is the correct rule when naming variables in Python?
    1. Variable names can begin with an underscore "_".
    2. You can use keyword as variable name.
    3. Variable names can start with a digit.
    4. Variable names can have symbols like!, @, #, $,%, .
  5. Question 5: Which data type is in the following paragraph?
     n = '5' 
    1. integer
    2. string
    3. tuple
    4. operator
  6. Question 6: Output of the following command is:
     print(1, 2, 3, 4, sep='*') 
    1. 1 2 3 4
    2. 1234
    3. 1 * 2 * 3 * 4
    4. 24
  7. Question 7: Which command is used to retrieve input data from users?
    1. cin
    2. scanf ()
    3. input ()
    4. <>
  8. Question 8: The result of the code below is:
     numbers = [2, 3, 4] 
    print(numbers)
    1. 2, 3, 4
    2. 2 3 4
    3. [2, 3, 4]
    4. [2 3 4]
  9. Question 9: Output of the command is:
     print ( 3 >= 3 ) 
    1. 3> = 3
    2. True
    3. False
    4. None
  10. Question 10: When to use the operator and return TRUE results?
    1. Both operands are TRUE.
    2. Both teams are FALSE.
    3. One of the two operands is TRUE.
    4. The first operand is TRUE.
Update 24 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile