Lesson details
Key learning points
- In this lesson, we will be introduced to a new operator called XOR. We will discover how an XOR works before writing a function to perform the XOR operation.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
Loading...
5 Questions
Q1.
On which line is the global variable number assigned?
1
2
6
Q2.
On which line is the local variable number assigned?
1
5
6
Q3.
What value will line 8 output when this program is executed?
10
5
There will be no output
Q4.
What will happen when this program is executed?
An error message because the global variable number is not defined
It will output 10
It will output 5
Q5.
On which line of code does constant declaration occur?
1
2
4
4 Questions
Q1.
What will be the output when this program is executed?
That is false, That is false
That is false, That is true
That is true, That is false
Q2.
Will the following program output True or False?
False
Q3.
Will the following program output True or False?
True
Q4.
Will the following program output True or False?
False