Lab 9 Quiz

Lab 9 Quiz

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

Pemrograman Dasar Kelas X TKJ Smt 2

Pemrograman Dasar Kelas X TKJ Smt 2

12th Grade - University

10 Qs

pictoblox_lvl_1

pictoblox_lvl_1

2nd Grade - University

10 Qs

Operating Systems

Operating Systems

12th Grade

10 Qs

Data 201-210

Data 201-210

12th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?