Computers

11th -

12thgrade

Image

Basic Python Coding

626
plays

15 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    Which one of the following is correct way of declaring and initializing a variable, x with value 5?

    int x

    x=5

    int x=5

    x=5

    declare x=5

  • 2. Multiple Choice
    30 seconds
    1 pt

    Which of the following is not valid variable name in Python?

    _var

    var_name

    var11

    11var

  • 3. Multiple Choice
    30 seconds
    1 pt

    Which of the following statement is False?

    Variable names can be arbitrarily long.

    They can contain both letters and numbers.

    Variable name can begin with underscore.

    Variable name can begin with number.

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?