Computers

11th

grade

Image

Control Statements in Python

154
plays

20 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    12 pts

    Function range(3) is equivalent to "

    range(1,3)

    range(0,3)

    range(0,3,1)

    range(1,3,0)

  • 2. Multiple Choice
    30 seconds
    12 pts

    Consider the following loop given below :


    for i in range(5):

    print(i)


    How many times will this loop run ?

    5

    0

    infinite

    Error

  • 3. Multiple Choice
    1 minute
    1 pt

    What is the output of the following code?

    for word in "Jump Statement":

    if word == "u":

    break

    print (word, end='')

    Jump Statement

    Jump

    J

    Ju

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?