wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Game & Sim MidTerm Exam 2023

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

How do you open the chat command field in Minecraft?

a)

Type T on the keyboard

b)

Type E on the keyboard

c)

Type A on the keyboard

d)

Type W on the keyboard

2.

Where do you add a block to an event handler?

a)

Something that happens outside a program (like a screen tap or mouse click) that the program can respond to.

b)

a routine that is used to deal with the event, allowing a programmer to write code that will be executed when the event occurs.

c)

In the coding workspace.

d)

Block-based visual programing uses visuals to represent lines of code.

3.

What is an event handler?

a)

Something that happens outside a program (like a screen tap or mouse click) that the program can respond to.

b)

a routine that is used to deal with the event, allowing a programmer to write code that will be executed when the event occurs.

c)

In the coding workspace.

d)

Block-based visual programing uses visuals to represent lines of code.

4.
  1. What type of position is each of the following?

(X, Y, Z)

a)

Absolute world position

b)

Relative player position

c)

world origin

5.
  1. What type of position is each of the following?

(~X, ~Y, ~Z)

a)

Absolute world position

b)

Relative player position

c)

world origin

6.

What is Relative position?

a)

The distance from the world origin to an object or entity

b)

The distance from player to an object or entity

7.

What is World position?

a)

The distance from the world origin to an object or entity

b)

The distance from player to an object or entity

8.

Which type of position is fixed and doesn’t change?

a)

Relative player position

b)

Absolute world position

9.

What is a number variable?

a)

This holds numeric data

b)

This holds a string of alphanumeric characters.

c)

This has only two possible values: true or false

d)

This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space

10.

What is a string variable?

a)

This holds numeric data

b)

This holds a string of alphanumeric characters.

c)

This has only two possible values: true or false

d)

This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space

11.

What is a Boolean variable?

a)

This holds numeric data

b)

This holds a string of alphanumeric characters.

c)

This has only two possible values: true or false

d)

This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space

12.

What is a position variable in MakeCode?

a)

This holds numeric data

b)

This holds a string of alphanumeric characters.

c)

This has only two possible values: true or false

d)

This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space

13.

In coding, conditionals tell a computer to do which of the following?

a)

How to do it

b)

To do it faster

c)

When to do it

d)

Where to do it

14.

What’s type of block acts like a conditional but isn’t located in the LOGIC Toolbox drawer?

a)

A While loop

b)

A Forever loop

c)

A Nested Loop

15.

What’s a reason you might need to restart your code?

a)

Things aren’t working as they should

b)

An infinite loop

c)

You get the message Cannot issue command, Agent is out of range

d)

All of the above

e)

Only a and c

16.

How does making something a function save you time when editing?

a)

You only need to edit in one place if you need changes in the future and the function will change anywhere it appears in the program.

b)

block of code to be executed a specified number of times.

c)

self-contained set of instructions for performing a specific task within a computer program.

d)

a specific purpose and can be/is used in multiple places within a program.

17.

How is a loop different than a function?

a)

You only need to edit in one place if you need changes in the future and the function will change anywhere it appears in the program.

b)

block of code to be executed a specified number of times.

c)

self-contained set of instructions for performing a specific task within a computer program.

d)

a specific purpose and can be/is used in multiple places within a program.

18.

What is the difference between a function and a custom function?

a)

You only need to edit in one place if you need changes in the future and the function will change anywhere it appears in the program.

b)

block of code to be executed a specified number of times.

c)

self-contained set of instructions for performing a specific task within a computer program.

d)

a specific purpose and can be/is used in multiple places within a program.

19.

What is the difference between Main Code functions and Helper functions?

a)

You only need to edit in one place if you need changes in the future and the function will change anywhere it appears in the program.

b)

block of code to be executed a specified number of times.

c)

self-contained set of instructions for performing a specific task within a computer program.

d)

a specific purpose and can be/is used in multiple places within a program.

20.

What type of loop is a Repeat Loop?

a)

Runs a command n times

b)

Runs a command as long as the condition is true

c)

Runs a command until the program ends

d)

Runs a command n times with a variable

21.

What type of loop is a For Loop?

a)

Runs a command n times

b)

Runs a command as long as the condition is true

c)

Runs a command until the program ends

d)

Runs a command n times with a variable

22.

What type of loop is a While Loop?

a)

Runs a command n times

b)

Runs a command as long as the condition is true

c)

Runs a command until the program ends

d)

Runs a command n times with a variable

23.

What type of loop is a Forever Loop?

a)

Runs a command n times

b)

Runs a command as long as the condition is true

c)

Runs a command until the program ends

d)

Runs a command n times with a variable

24.

Is the following statement true or false? The agent will place whatever is in the lower-right corner of his inventory.

a)

True

b)

False

25.

What are two keyboard controls to move your player?

a)

W

b)

S

c)

A

d)

D

e)

Space bar