wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding Adventure Quiz V

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

What is a function?

a)

A set of instructions that perform a specific task

b)

A type of loop

c)

A conditional statement

d)

An operator

2.

What does the 'goto' function do?

a)

It collects items

b)

It moves a character to an object

c)

It checks conditions

d)

It creates loops

3.

What is the purpose of conditional loops?

a)

To repeat code indefinitely

b)

To define functions

c)

To continue until a condition is met

d)

To combine conditions

4.

What does the 'if' statement do?

a)

Combines multiple conditions

b)

Creates a loop

c)

Performs actions based on specific conditions

d)

Defines a function

5.

What is the syntax for a function without parameters?

a)

functionName = (parameter) ->

b)

functionName = () ->

c)

functionName = (parameter1, parameter2) ->

d)

functionName = (parameter1) ->

6.

What does the 'and' operator do?

a)

Checks if a condition is met

b)

Combines multiple functions

c)

Returns yes if both conditions are true

d)

Returns yes if at least one condition is true

7.

What is the purpose of boolean operators?

a)

To check for errors

b)

To combine multiple conditions

c)

To create functions

d)

To define loops

8.

What is the syntax for a conditional loop?

a)

while condition

b)

functionName = () ->

c)

until condition

d)

if condition

9.

What happens when a function is called?

a)

The program restarts

b)

The program stops

c)

The function's code is executed with the given arguments

d)

The function is deleted