Karel Quizzes 6-10 (Top Dwn- If State)

Karel Quizzes 6-10 (Top Dwn- If State)

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Code HS Tech Apps and Coding

Code HS Tech Apps and Coding

9th - 12th Grade

12 Qs

Karel Unit 2 Review

Karel Unit 2 Review

7th - 9th Grade

10 Qs

Unit 2 Knowledge Test Make Up

Unit 2 Knowledge Test Make Up

9th - 12th Grade

11 Qs

Karel If Statement

Karel If Statement

9th - 12th Grade

11 Qs

If Then Statements

If Then Statements

9th - 12th Grade

11 Qs

Karel the Dog Code Quiz

Karel the Dog Code Quiz

9th - 12th Grade

12 Qs

CodeHS Tech Apps and Coding

CodeHS Tech Apps and Coding

9th - 12th Grade

12 Qs

Karel Quizzes 6-10 (Top Dwn- If State)

Karel Quizzes 6-10 (Top Dwn- If State)

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Fernando Alvarado

Used 30+ times

FREE Resource

7 questions

Show all answers

1.

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is top down design?

Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.

Top down design is a way that you can create designs on a computer to put on a web page

Top down design is a way of designing your programs starting with the individual commands first

Top down design is a way to use loops and classes to decompose the problem

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a code comment?

A way to teach Karel a new word

A way to give notes to the reader to explain what your code is doing

A message to your teacher in code

A place to write whatever you want in your code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What commands does SuperKarel know that regular Karel does not?

turnLeft() and jump()

turnRight() and jump()

turnAround() and turnRight()

turnAround() and jump()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best way for Karel to move 10 times?

move();

move();

move();

move();

move();

move();

move();

move();

move();

move();

for (var i = 0; i < 10; i++) {

move();

}

move(10);

move10();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use if statements in JavaScript?

To break out of some block of code

To do something only if a condition is true

To do something while a condition is true

To repeat something for a fixed number of times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which general if statement definition is written correctly?

for(condition) {

// code

}

if(condition) {

//code

}

if(var i = 0; i < count; i++) {

//code

}

if false {

//code

}