CodeHS Unit 2: Lessons 9-10

CodeHS Unit 2: Lessons 9-10

10th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

While and If's (Test4)

While and If's (Test4)

9th - 12th Grade

18 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

11th - 12th Grade

10 Qs

Code Tracing

Code Tracing

9th - 12th Grade

10 Qs

Introduction to Arrays

Introduction to Arrays

KG - University

10 Qs

Arrays

Arrays

10th - 12th Grade

10 Qs

Strings + Revision

Strings + Revision

9th - 10th Grade

18 Qs

Lesson 3.5 - If Structures Practice

Lesson 3.5 - If Structures Practice

11th Grade

16 Qs

REVIEW QUIZ FOR & WHILE LOOP

REVIEW QUIZ FOR & WHILE LOOP

10th Grade

10 Qs

CodeHS Unit 2: Lessons 9-10

CodeHS Unit 2: Lessons 9-10

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Courtney Yatteau

Used 18+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?