Lab 9 Quiz

Lab 9 Quiz

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Python Testing

Python Testing

9th - 12th Grade

10 Qs

Pseudocode - OCR ERL

Pseudocode - OCR ERL

9th - 12th Grade

10 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

Unit 6 Review

Unit 6 Review

9th - 12th Grade

11 Qs

Project-Stem Unit 1 python coding

Project-Stem Unit 1 python coding

9th - 12th Grade

12 Qs

Python Final 052224 - 3

Python Final 052224 - 3

10th Grade

12 Qs

Python L2

Python L2

10th - 11th Grade

10 Qs

8.2.6 Working with Pseudocode

8.2.6 Working with Pseudocode

9th Grade

8 Qs

Lab 9 Quiz

Lab 9 Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Pauline White

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed when this code segment is executed?

5

3

1

531

5

3

51

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is x considered to be after this line of code executes?

An integer

A String

There is not enough information to answer this question.

It depends what the user typed.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following lists all of the possible values that could be printed?

7,8,9,10

8,9,10

8,9,10,11

7,8,9,10,11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code segment, what is the loop variable?

count

x

count and x are both loop variables.

There is no loop variable.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Suppose the user enters 3, 8, 6, 7 in order. What would be the output of this code segment?

Correct in 1 tries!

Correct in 2 tries!

Correct in 3 tries!

Correct in 4 tries!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What happens if the user types 7 on the first prompt?

The program prints, "Correct in 1 try!"

The program prints, "Correct in 2 tries!"

The program will print "Try again" continuously.

The program will have a runtime error.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will happen if the user types 6 at the first prompt?

The program will print "Try again" until the user types 7 and then print "Correct in x tries!" where x is the number of inputs the user made.

The program will print "Try again" and then print "Correct in 1 try!"

The program will print "Try again" and then print "Correct in 2 tries!"

The program will continuously print "Try again."