CodeHS Unit 1 Quiz

CodeHS Unit 1 Quiz

10th Grade

12 Qs

quiz-placeholder

Similar activities

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th 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

EmTech Q2 Post Test 2

EmTech Q2 Post Test 2

11th Grade

15 Qs

CSS background, border

CSS background, border

11th Grade

10 Qs

CodeHS Unit 1 Quiz

CodeHS Unit 1 Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Corey Duncan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid Karel command?

A) move;

B) MOVE

C) move();

D) move()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If Karel is facing North and the code runs; which direction is Karel facing now? turnLeft(); turnLeft();

North

South

East

West

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times should Karel turn left in order to turn right?

4

2

1

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can be used to teach Karel to turn right?

Variable

Function

Dog Treats

Karel can already turn right.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function will teach Karel how to spin in a circle one time?

function spin() { turnRight();}

function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft();}

function spin() { turnLeft(); turnLeft();}

function spin() { move(); move(); move(); move();}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times should the start function be defined in a program?

1

2

0

However many you would like

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in programming?

Break down our program into smaller parts

Avoid repeating code

Make our program more readable

All of the above

Create a free account and access millions of resources

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?