Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Review lesson 7.6.3

Total questions: 28

Worksheet time: 9mins

Name
Class
Date
1.

What is the output when using the AND operator with two inputs, where the first input is true and the second input is false?

a)

True

b)

False

c)

1

d)

0

2.

If a program uses the OR operator and both inputs are false, what will

be the output?

a)

True

b)

False

c)

0

d)

1

3.

Which of the following conditions will return true when using the AND operator with three inputs: A, B, and C?

a)

A is false, B is true, C is true

b)

A is true, B is false, C is true

c)

A is true, B is true, C is true

d)

A is false, B is false, C is true

4.

In a program using the OR operator, if one of the inputs is false and the other is true, what will the result be?

a)

True

b)

False

c)

0

d)

1

5.

What will happen if you combine the AND and NOT operators in a single expression?

a)

The result will always be true

b)

The result will always be false

c)

The NOT operator will invert the result of the AND operation

d)

The AND operator will invert the result of the NOT operation

6.

Which Boolean operator is used in logic gates that are implemented as "if-else" statements in programming?

a)

AND

b)

OR

c)

NOT

d)

All of the above

7.

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?

a)

True

b)

False

c)

0

d)

1

8.

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?

a)

True

b)

False

c)

0

d)

1

9.

What will happen if the NOT operator is applied to the result of an AND operation between two inputs?

a)

It will negate the entire result of the AND operation

b)

It will negate the first input only

c)

It will negate the second input only

d)

It will have no effect on the result

10.

How does a sub-routine improve program efficiency in terms of repeated code?

a)

By allowing the program to run faster

b)

By organizing and simplifying code that may be reused multiple times

c)

By avoiding the use of variables

d)

By reducing the number of decisions in the program

11.

If a sub-routine contains an infinite loop, what will likely happen to the program?

a)

The program will run as expected without issues

b)

The program will crash or freeze

c)

The sub-routine will be ignored

d)

The program will skip the sub-routine execution

12.

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)?

a)

True

b)

False

c)

1

d)

0

13.

When is it appropriate to use the NOT operator in programming?

a)

When you want to check if an input is true

b)

When you want to negate or reverse the truth value of a condition

c)

When you want to combine two conditions

d)

When you want to check if two inputs are different

14.

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?

a)

True

b)

False

c)

Undefined

d)

0

15.

In a sub-routine, what happens when an input to the sub-routine changes while the program is executing?

a)

The sub-routine will automatically update its output based on the input change

b)

The program will skip the sub-routine execution

c)

The sub-routine will run with the initial input value before the change

d)

The sub-routine will stop running

16.

What is a typical use case for combining the AND and OR operators in a program?

a)

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")

b)

To test if an input is true

c)

To check if a value is equal to another

d)

To perform mathematical calculations

17.

In a program that uses the OR operator, which condition will result in a false output?

a)

Both inputs are false

b)

One input is false, and the other is true

c)

Both inputs are true

d)

At least one input is true

18.

What is the result of the following condition NOT (A OR B) where both A and B are false?

a)

True

b)

False

c)

1

d)

0

19.

Which of the following describes a Test Plan?

a)

A document listing the tests to check if a program works correctly

b)

A sequence of steps that a program follows

c)

A function that plays sounds on a speaker

d)

A type of variable used to store numbers

20.

What is the Output of the following command on a Micro:bit?

display.show(Image.HEART)

a)

The Micro:bit screen will display a heart shape

b)

The Micro:bit will make a sound

c)

The Micro:bit will turn off

d)

Nothing will happen

21.

What is the main purpose of Debugging?

a)

To add new features to a program

b)

To find and fix errors in a program

c)

To write a test plan

d)

To create a sequence of instructions

22.

Which of these best describes a Process in computing?

a)

A sequence of steps that are ignored by the computer

b)

The action of following instructions to perform calculations or display information

c)

A list of test cases for checking errors

d)

A type of variable storing words

23.

Which statement is true about a Sequence?

a)

It describes a specific order in which instructions are executed

b)

It means repeating instructions multiple times

c)

It is a type of test plan

d)

It refers to the speed of the computer

24.

What kind of data does a String store?

a)

Only numbers

b)

Only letters

c)

Letters, numbers, and symbols

d)

Only symbols

25.

A student notices that every even number in a list is followed by another even number. What computing concept is this?

a)

Debugging

b)

Output

c)

Pattern Recognition

d)

Sequence

26.

What is an example of an Output in computing?

a)

Pressing a key on the keyboard

b)

Storing a number in a variable

c)

Displaying a message on the screen

d)

Writing a sequence of code

27.

Why is Pattern Recognition important in problem-solving?

a)

It helps in finding common structures in problems to make solving them easier

b)

It allows the computer to repeat the same steps forever

c)

It helps in storing data in a string format

d)

It is used for debugging programs

28.

Which of the following is NOT an example of a Process?

a)

A computer calculating the sum of two numbers

b)

A speaker playing music

c)

A variable storing the user's name

d)

A program following a test plan