Lab 9 Quiz

Lab 9 Quiz

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Ayo Belajar Agile

Ayo Belajar Agile

9th - 12th Grade

10 Qs

networks

networks

11th Grade

10 Qs

SHORTCUT PADA KEYBOARD

SHORTCUT PADA KEYBOARD

10th - 12th Grade

10 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

Lab 9 Quiz

Lab 9 Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Pauline White

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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."