Advanced WPD Exam

Advanced WPD Exam

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Karel 2.10, 2.11

Karel 2.10, 2.11

6th - 9th Grade

25 Qs

Karel Commands

Karel Commands

6th - 9th Grade

25 Qs

Java Script BASICS

Java Script BASICS

9th - 12th Grade

27 Qs

Functions in JavaScript

Functions in JavaScript

9th - 12th Grade

33 Qs

AP CSP - Standard 3 Review

AP CSP - Standard 3 Review

12th Grade

33 Qs

Javascript Functions

Javascript Functions

10th Grade

25 Qs

CSP Review Study Guide Final

CSP Review Study Guide Final

6th - 12th Grade

30 Qs

Introduction to Python

Introduction to Python

KG - University

25 Qs

Advanced WPD Exam

Advanced WPD Exam

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Tina Mickens

Used 10+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is a valid Karel command?

move

move;

move();

move()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the following command an invalid Karel command?

turnleft();

It should end in a colon rather than a semicolon

The l should be a capital L

It should start with a capital T

This command is correct

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a turnRight function in Karel?

function turnRight() { turnLeft(); turnLeft(); turnLeft(); }

function turnRight() { turnRight(); turnRight(); turnRight(); }

function turnRight { turnLeft(); turnLeft(); turnLeft(); }

turnRight function() { turnLeft(); turnLeft(); turnLeft(); }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in Karel programs?

Break down our program into smaller parts

Avoid repeating code

Make our program more readable

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

function start() {

move();

dance();

move();

move();

turnLeft();

dance();

dance();

}

function dance() {

turnLeft();

move();

turnLeft(); t

urnLeft();

move();

turnLeft();

}

Called 1 time, defined 1 time

Called 1 time, defined 3 times

Called 3 times, defined 1 time

Called 3 times, defined 3 times

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper format for a single line comment in Karel?

This is a comment

// This is a comment

This is a comment

/* This is a comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the mystery function do?

function mystery() {

while (noBallsPresent()) {

move();

}

}

Karel moves until it is on a ball

Karel moves once if there is no ball present

Karel moves until it puts down a ball

Karel checks if there is no ball on the current spot and then moves once

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?