WorksheetsTynker Quiz
Total questions: 13
Worksheet time: 8mins
What's a function?
A sequence of commands that can be run together as if it were a couple command.
A sequence of commands that can be run together as if it were a single command.
What's the difference between a "function definition" block and a "function call" block ?
The "function definition" block describes what the function will do, whereas the "function call" block can be used to call a function again and again).
In levels 1-2, the" (a) " function definition block has code attached to it that will make the dragon perform the following sequence: eat - walk - blast - walk.
The " (a) " command code block will run all of the blocks attached to the "climb up" function definition code block.
The "..................." command code block will run all of the blocks attached to the "......." function definition code block.
(a)
What is abstraction?
A way of making a specific problem more general, so the solution can be repeated for a wide range of problems
1. Something that repeats
loop
counting loop
Make the character eat objects
run
sleep
walk
eat
Make the character move one step forward
The language that tells a device (e.g., computer, tablet, iPhone) what to do
sequence
code
command
loop
What is a loop in programming?
A way to execute a block of code only once.
A structure that allows repeated execution of a block of code as long as a condition is true.
A method for defining functions in programming.
A way to store multiple values in a single variable.
What does the term 'variable' refer to in programming?
A command that performs a specific action.
A fixed value that cannot change during program execution.
A named storage location in memory that can hold different values during program execution.
A type of function that does not return a value.
What is the purpose of a conditional statement?
To declare variables in a program.
To create loops that repeat code execution.
To execute a block of code based on whether a condition is true or false.
To define a function that can be reused.
