Search Header Logo

CodeHS Unit 2: Lessons 9-10

Authored by Courtney Yatteau

Computers

10th - 12th Grade

Used 18+ times

CodeHS Unit 2: Lessons 9-10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is ouptut by the code? Pretend it says System.out.println

2

3

4

5

6

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

104

54

44

35

65

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the output of the following code?
int x = 0;
while (x < 4) {
 x = x + 1;
}
System.out.println("x is " + x);

0
1
3
4

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
 System.out.println("Welcome to Java");
 count++;
}

8
9
10
0

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the code output?

0

1

2

3

1

2

3

0

1

2

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the code output?

hi

hi

hi

hi

hi

hi

hi

hi

hi

hi

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the code output?

3

4

5

1

2

3

3

4

5

6

3

4

4

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?