Instructional Technology, Computers

11th

grade

Image

Chapter 7-8 Review

8
plays

20 questions

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

    What will run when the following code is executed?


    Count = 0


    while count < 10:

    print count


    count += 1

    0,1,2,3,4,5,6,7,8,9,10

    0,1,2,3,4,5,6,7,8,9

    1,2,3,4,5,6,7,8,9,

    0,1,2,3,4,5,6,7,8,9,10,11

  • 2. Multiple Choice
    30 seconds
    1 pt

    What will run when the following code is executed?


    def my_function(x):


    for i in range(0, len(x)):


    x[i] = x[i]

    return x


    print my_function(range(5))

    0,1,2,3,4,5

    1,2,3,4,5

    0,1,2,3,4

    None of these choices

  • 3. Multiple Choice
    30 seconds
    1 pt

    What will run when the following code is executed?


    N = [3, 5, 7]


    def double_list(x):


    for i in range(0, len(x)):


    x[i] = x[i] *2

    3,10,7

    6,10,14

    3,5,7

    [6,10,14]

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?