Font size
WorksheetsStrand D-Coding
Total questions: 12
Worksheet time: 16mins
What does the Boolean NOT operator do?
A) Changes true to false
B) Adds two numbers
C) Displays a message
D) Repeats a function
What is a function in coding?
A) A tool to create graphics
B) A block of code that performs a specific task
C) A way to store data
D) A type of error
Which of the following is an example of a function?
A) say "Hello"
B) if (x > 10)
C) function greet() { return "Hi"; }
D) for (i = 0; i < 5; i++)
Which of the following is an example of a Variable?
A) say "Hello"
B) if (x > 10)
C) function greet() { return "Hi"; }
D)d1=gotoNearestHealthzone
What is an event in coding?
A) A type of variable
B) An action that can be detected by the program
C) A way to store data
D) A method to loop through code
Study the CodeMonkey program given, what should be the value of “d” for the monkey to collect all the bananas?
(a)
Write a code using the instructions step, turn, left, right, if, equals, and onKey to help the
monkey collect bananas.
Study the diagram given and help the monkey to collect all the bananas using the code, for, if and not with three lines of code.
Look closely at the picture and code given, the code consists of some error, rewrite the code with the correct sequence and error free.
The coding language used in the coding Adventure is known as (a) .
The three types of events are onKey, onMouseMove and (a)
The onMouseMove take an argument, (a)
