CodeHS Javascript Unit 1 Quiz Review

CodeHS Javascript Unit 1 Quiz Review

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Topic 2 - Revision Quiz (4th)

Topic 2 - Revision Quiz (4th)

11th Grade

20 Qs

আইসিটি ৪র্থ চ্যাপ্টার msq টেস্ট

আইসিটি ৪র্থ চ্যাপ্টার msq টেস্ট

11th - 12th Grade

20 Qs

Database&Relation

Database&Relation

12th Grade

20 Qs

Data structure test1

Data structure test1

12th Grade

20 Qs

Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ

Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ

10th - 12th Grade

20 Qs

EMPOWERMENT ONLINE QUIZ BEE 2

EMPOWERMENT ONLINE QUIZ BEE 2

11th Grade

20 Qs

ICT

ICT

1st Grade - University

20 Qs

Wireless and Bluetooth devices

Wireless and Bluetooth devices

11th Grade

20 Qs

CodeHS Javascript Unit 1 Quiz Review

CodeHS Javascript Unit 1 Quiz Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Katy Fleming

Used 32+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the purpose of using a for loop in code?

To do something if a condition is true

To do something while a condition is true

To repeat something a fixed number of times

To make programs run faster

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, what would be a good Postcondition to write?

  1. Karel is on a spot with a tennis ball facing north.

  1. Karel ends one spot above a tennis ball facing East.

  1. Karel is on the same position but on top of a ball.

  1. Karel is facing East.

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

How can we improve the following program?

Break down this program into more functions

Use a for loop to repeat the move command

Use a while loop to repeat the move command

Fix the indentation of this program

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In this code, how many times is the dance function called and how many times is it defined?

Called 1 time, defined 1 time

Called 1 time, defined 3 times

Called 3 times, defined 1 time

Called 3 times, defined 3 times

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What’s wrong with this code?

The go function is called twice

  1. The go function has a syntax error

The go function has been defined twice

go is not a command that Karel understands

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

How many total times will Karel move in this program?

1

5

6

7

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Why is the following command an invalid Karel command?

turnleft();

  1. It should end in a colon rather than a semicolon

  1. The l should be a capital L

  1. It should start with a capital T

  1. This command is correct

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?