Programming Functions Quiz

Programming Functions Quiz

10th Grade

37 Qs

quiz-placeholder

Similar activities

Review for Finals

Review for Finals

9th - 12th Grade

32 Qs

QUIZZ KJD - PERAWATAN, PERMASALAHAN DAN PERBAIKAN PC

QUIZZ KJD - PERAWATAN, PERMASALAHAN DAN PERBAIKAN PC

KG - Professional Development

40 Qs

8th Grade Review Chapter 3 Finding the Right Occupation For You

8th Grade Review Chapter 3 Finding the Right Occupation For You

6th - 12th Grade

35 Qs

Life Unit 9 vocabulary quiz

Life Unit 9 vocabulary quiz

10th Grade

34 Qs

BIM I Vocab Quiz 3 A

BIM I Vocab Quiz 3 A

6th - 12th Grade

42 Qs

ALL QUIZ

ALL QUIZ

KG - Professional Development

39 Qs

Introduction to Animation

Introduction to Animation

10th Grade

38 Qs

Remedial PTS Robotika

Remedial PTS Robotika

9th - 12th Grade

40 Qs

Programming Functions Quiz

Programming Functions Quiz

Assessment

Quiz

Other

10th Grade

Easy

Created by

Jared Lewis

Used 12+ times

FREE Resource

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in programming?

A line of code

A reusable block of code that performs a task

A variable name

A programming language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Karel, what does the command move() do?

Turns Karel left

Moves Karel one space forward

Stops Karel

Places a beeper

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command would you use to turn Karel 90 degrees to the left?

turnLeft();

move();

turnRight();

pickBeeper();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of defining a function in Karel?

To add errors to the program

To simplify the program and avoid repeated code

To create variables

To stop the program

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a function call?

turnLeft();

function turnAround() { ... }

int x = 5;

if (x == 0)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if Karel tries to move into a wall?

Karel stops and the program continues

Karel turns around

The program throws an error

Karel moves to the next available space

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does takeBall() ; do in Karel?

Moves Karel forward

Karel picks up a ball from the current position

Turns Karel left

Stops the program

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?