Font size
WorksheetsData types and operators
Total questions: 39
Worksheet time: 19mins
What is + ?
What is a - ?
Multiplication
What is a * ?
What is a / ?
What is a % ?
Stores text incased with " "
equal to (compares if two items are the same)
What data type would this be 555.78
What data type would this be 5
This operator compares values, and will only return true if the two values are equal to each other.
&& (and)
|| (or)
!= (not equal)
= = (equal to)
This programming concept allows programmers to create a named identifier that stores a value which can change when the program is running?
Control Strucutures
Variables
Constant
Logic Operators
What is the comparison operator symbol for equal to?
(a)
Match the following comparison operators with their purpose
>
Greater than
<=
Less than or equal to
==
Equal to
!=
Not equal to
<
Less than
Match the following arithmetic operators with their purpose
%
Modulus (remainder)
//
DIV - Integer division
**
Exponentiation - to the power of
/
Divide - Will return a float if needed
*
Multiplication
7 > 4
True
False
7 >= 7
True
False
7 != 7
True
False
(40 < 60) or (40 > 60)
True
False
(40 < 60) and (40 > 60)
True
False
room = "basic"
if room !="basic" and room != "premium":
True
False
Are you confident with data types (String, integer, float, Boolean)
Yes
No
What does casting do?
Changes a data type
Magic
Joins strings together
Raises a number to a power
What does concatenation do (represented with the +)?
Changes a data type
Magic
Joins strings together
Raises a number to a power
What is 4**2?
(a)
What is 60 MOD 7?
4
8
12
3
What is 49 DIV 8?
6
1
12
5
