Font size
WorksheetsGame & Sim MidTerm Exam 2023
Total questions: 25
Worksheet time: 13mins
How do you open the chat command field in Minecraft?
Type T on the keyboard
Type E on the keyboard
Type A on the keyboard
Type W on the keyboard
Where do you add a block to an event handler?
Something that happens outside a program (like a screen tap or mouse click) that the program can respond to.
a routine that is used to deal with the event, allowing a programmer to write code that will be executed when the event occurs.
In the coding workspace.
Block-based visual programing uses visuals to represent lines of code.
What is an event handler?
Something that happens outside a program (like a screen tap or mouse click) that the program can respond to.
a routine that is used to deal with the event, allowing a programmer to write code that will be executed when the event occurs.
In the coding workspace.
Block-based visual programing uses visuals to represent lines of code.
What type of position is each of the following?
(X, Y, Z)
Absolute world position
Relative player position
world origin
What type of position is each of the following?
(~X, ~Y, ~Z)
Absolute world position
Relative player position
world origin
What is Relative position?
The distance from the world origin to an object or entity
The distance from player to an object or entity
What is World position?
The distance from the world origin to an object or entity
The distance from player to an object or entity
Which type of position is fixed and doesn’t change?
Relative player position
Absolute world position
What is a number variable?
This holds numeric data
This holds a string of alphanumeric characters.
This has only two possible values: true or false
This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space
What is a string variable?
This holds numeric data
This holds a string of alphanumeric characters.
This has only two possible values: true or false
This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space
What is a Boolean variable?
This holds numeric data
This holds a string of alphanumeric characters.
This has only two possible values: true or false
This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space
What is a position variable in MakeCode?
This holds numeric data
This holds a string of alphanumeric characters.
This has only two possible values: true or false
This is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space
In coding, conditionals tell a computer to do which of the following?
How to do it
To do it faster
When to do it
Where to do it
What’s type of block acts like a conditional but isn’t located in the LOGIC Toolbox drawer?
A While loop
A Forever loop
A Nested Loop
What’s a reason you might need to restart your code?
Things aren’t working as they should
An infinite loop
You get the message Cannot issue command, Agent is out of range
All of the above
Only a and c
How does making something a function save you time when editing?
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.
block of code to be executed a specified number of times.
self-contained set of instructions for performing a specific task within a computer program.
a specific purpose and can be/is used in multiple places within a program.
How is a loop different than a function?
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.
block of code to be executed a specified number of times.
self-contained set of instructions for performing a specific task within a computer program.
a specific purpose and can be/is used in multiple places within a program.
What is the difference between a function and a custom function?
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.
block of code to be executed a specified number of times.
self-contained set of instructions for performing a specific task within a computer program.
a specific purpose and can be/is used in multiple places within a program.
What is the difference between Main Code functions and Helper functions?
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.
block of code to be executed a specified number of times.
self-contained set of instructions for performing a specific task within a computer program.
a specific purpose and can be/is used in multiple places within a program.
What type of loop is a Repeat Loop?
Runs a command n times
Runs a command as long as the condition is true
Runs a command until the program ends
Runs a command n times with a variable
What type of loop is a For Loop?
Runs a command n times
Runs a command as long as the condition is true
Runs a command until the program ends
Runs a command n times with a variable
What type of loop is a While Loop?
Runs a command n times
Runs a command as long as the condition is true
Runs a command until the program ends
Runs a command n times with a variable
What type of loop is a Forever Loop?
Runs a command n times
Runs a command as long as the condition is true
Runs a command until the program ends
Runs a command n times with a variable
Is the following statement true or false? The agent will place whatever is in the lower-right corner of his inventory.
True
False
What are two keyboard controls to move your player?
W
S
A
D
Space bar
