Search Header Logo

Code.org Unit 4

Computers

10th - 12th Grade

Used 3K+ times

Code.org Unit 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz focuses on fundamental programming concepts in computer science, specifically covering variables, conditional statements, loops, functions, and program flow control. The content is appropriate for grades 10-12, as it requires students to trace through code execution, predict outputs, debug logical errors, and understand Boolean expressions and control structures. Students need a solid foundation in programming syntax, the ability to follow sequential and conditional program execution, understanding of variable assignment and reassignment, and knowledge of function definition and calling conventions. The questions assess critical thinking skills as students must analyze code snippets, identify errors in logic, and determine the most appropriate conditional structures for real-world scenarios like ticket pricing systems. This quiz was created by a classroom teacher who designed it for students studying computer programming in grades 10-12. The assessment serves as an excellent tool for formative assessment during a unit on programming fundamentals, allowing teachers to gauge student understanding of essential coding concepts before moving to more complex topics. Teachers can deploy this quiz as a review activity before a summative assessment, assign it as homework to reinforce classroom learning, or use individual questions as warm-up activities to begin programming lessons. The varied question formats—from code tracing to debugging to practical application scenarios—make this quiz versatile for supporting instruction throughout a programming unit. This content aligns with standards such as CSTA K-12 Computer Science Standards 3A-AP-13 (creating prototypes), 3A-AP-15 (using control structures), and 3A-AP-17 (decomposing problems into functions).

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What number will be output by the console.log command on line 7?

10

100

20

200

Answer explanation

Notice the destructive reassignment on line 5

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What number will be output by the console.log command on line 5?

10

11

12

13

16

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What number will be output by the console.log command on line 5?

10

25

30

35

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What text will be output by the program?

Less than 10

Less than 20

Less than 30

30 or more

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What text will be output by the program?

Output A

Output B

Output C

Output D

Output E

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the order of letters printed to the console when this program is run?

a b c

a b c b c b c

a b c b c

a b c a

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

"You win!" never displays. What line is responsible for this error?

1

3

4

5

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?