WorksheetsReview lesson 7.6.3
Total questions: 28
Worksheet time: 9mins
What is the output when using the AND operator with two inputs, where the first input is true and the second input is false?
True
False
1
0
If a program uses the OR operator and both inputs are false, what will
be the output?
True
False
0
1
Which of the following conditions will return true when using the AND operator with three inputs: A, B, and C?
A is false, B is true, C is true
A is true, B is false, C is true
A is true, B is true, C is true
A is false, B is false, C is true
In a program using the OR operator, if one of the inputs is false and the other is true, what will the result be?
True
False
0
1
What will happen if you combine the AND and NOT operators in a single expression?
The result will always be true
The result will always be false
The NOT operator will invert the result of the AND operation
The AND operator will invert the result of the NOT operation
Which Boolean operator is used in logic gates that are implemented as "if-else" statements in programming?
AND
OR
NOT
All of the above
If the program checks the condition (NOT A AND B) and button A is pressed (true), and button B is not pressed (false), what will be the result?
True
False
0
1
In a flowchart with a decision to check if “either button A or button B is pressed” using the OR operator, what will the output be if both buttons are not pressed?
True
False
0
1
What will happen if the NOT operator is applied to the result of an AND operation between two inputs?
It will negate the entire result of the AND operation
It will negate the first input only
It will negate the second input only
It will have no effect on the result
How does a sub-routine improve program efficiency in terms of repeated code?
By allowing the program to run faster
By organizing and simplifying code that may be reused multiple times
By avoiding the use of variables
By reducing the number of decisions in the program
If a sub-routine contains an infinite loop, what will likely happen to the program?
The program will run as expected without issues
The program will crash or freeze
The sub-routine will be ignored
The program will skip the sub-routine execution
What will be the result of the condition NOT (A AND B) when button A is not pressed (false) and button B is not pressed (false)?
True
False
1
0
When is it appropriate to use the NOT operator in programming?
When you want to check if an input is true
When you want to negate or reverse the truth value of a condition
When you want to combine two conditions
When you want to check if two inputs are different
If the condition (A AND NOT B) is used in a program and button A is not pressed (false) while button B is pressed (true), what will be the result?
True
False
Undefined
0
In a sub-routine, what happens when an input to the sub-routine changes while the program is executing?
The sub-routine will automatically update its output based on the input change
The program will skip the sub-routine execution
The sub-routine will run with the initial input value before the change
The sub-routine will stop running
What is a typical use case for combining the AND and OR operators in a program?
To test multiple conditions with complex logic (e.g., "if button A is pressed AND the temperature is above 25°C OR button B is pressed")
To test if an input is true
To check if a value is equal to another
To perform mathematical calculations
In a program that uses the OR operator, which condition will result in a false output?
Both inputs are false
One input is false, and the other is true
Both inputs are true
At least one input is true
What is the result of the following condition NOT (A OR B) where both A and B are false?
True
False
1
0
Which of the following describes a Test Plan?
A document listing the tests to check if a program works correctly
A sequence of steps that a program follows
A function that plays sounds on a speaker
A type of variable used to store numbers
What is the Output of the following command on a Micro:bit?
display.show(Image.HEART)
The Micro:bit screen will display a heart shape
The Micro:bit will make a sound
The Micro:bit will turn off
Nothing will happen
What is the main purpose of Debugging?
To add new features to a program
To find and fix errors in a program
To write a test plan
To create a sequence of instructions
Which of these best describes a Process in computing?
A sequence of steps that are ignored by the computer
The action of following instructions to perform calculations or display information
A list of test cases for checking errors
A type of variable storing words
Which statement is true about a Sequence?
It describes a specific order in which instructions are executed
It means repeating instructions multiple times
It is a type of test plan
It refers to the speed of the computer
What kind of data does a String store?
Only numbers
Only letters
Letters, numbers, and symbols
Only symbols
A student notices that every even number in a list is followed by another even number. What computing concept is this?
Debugging
Output
Pattern Recognition
Sequence
What is an example of an Output in computing?
Pressing a key on the keyboard
Storing a number in a variable
Displaying a message on the screen
Writing a sequence of code
Why is Pattern Recognition important in problem-solving?
It helps in finding common structures in problems to make solving them easier
It allows the computer to repeat the same steps forever
It helps in storing data in a string format
It is used for debugging programs
Which of the following is NOT an example of a Process?
A computer calculating the sum of two numbers
A speaker playing music
A variable storing the user's name
A program following a test plan
