Font size
WorksheetsKey Programming Concepts
Total questions: 28
Worksheet time: 16mins
A (a) is a named space in memory that holds a data of any type that can be changed again and again.
What is a constant?
A named space in memory that holds one item of data that cannot be changed once it has been assigned.
A number that cannot be divided by zero
A number that always has the same number of digits after the decimal point.
A number that cannot be changed by adding one to it.
An integer that you cannot divide anything by.
Symbols that tell you what to do with two numbers such as + and - are called (a) .
Which operator is used to represent multiplication?
+
-
*
/
^
Which operator is used to represent an exponent?
+
-
/
^
*
Which operator is used to represent 'to the power of'?
*
/
+
**
//
What is 'integer division'?
Dividing a number by another number equally
Dividing a number by another number unequally
Dividing a number by another number and representing the answer as a whole number
Dividing a number by another number and representing the answer as a fraction
Dividing a number by another number and representing the answer as a floating point number
What does the DIV operator do?
Gives you only the whole number part of a division operation
Gives you only the whole number part of a multiplication operation
Gives you only the decimal part of a division operation
Gives you the remainder of a division operation
Gives the remainder of an addition operation
Which operation gives you the remainder of a division?
MOD
DIV
//
/
CHAR
What is the name given to the task of storing a data item in a variable?
equation
assignment
evaluation
comparison
retrieving
You can use the file. (a) () function to add data to a text file.
You need to use the (a) () function, which is a built-in function in Python, to accept data from the user via the keyboard.
To output text to the computer screen, you should use the built in Python function called (a) ().
You can use an assignment operation to store the results of a function inside a variable like the example below:
name = input("What is your name? ")
True
False
Sometimes
It depends
Which symbol do you use to assign values to variables?
!=
==
=
!
=>
Which symbol do you use to compare two items to see if they are the same?
=>
==
!=
=<
=
Which of these Python commands is used to code a selection programming structure?
while
for
if... elif ...else
if ... then ...else
if ... elseif ... else
Which of these will create a count controlled loop?
while...do
for x in range(0,100):
while True:
while False:
while n > 0:
Which of these commands will create a condition controlled loop?
repeat 4 [ fd 100 rt 90]
for n in range(0, 200, 2):
while gameOver == False:
repeat 4 [ fd 10 repeat 20 [fd 10 rt 12]]
What do you call a loop inside a loop?
loop the loop
loopy loop
nested loop
double loop
indented loop
What do you call a deer with no eyes?
plain deer
rarely spotted deer
no eye deer
don't know deer
Which of these is another name for a list?
one dimensional array
two dimensional array
three dimensional array
stack
queue
What is another name for a two dimensional array?
a database
a table
a list
a record
a compact disc
Which of these is not a database?
Access
Flat file
Relational
No SQL
PowerPoint
Which of these is a language used to manage data in a database?
Visual Basic
Structured Query Language (SQL)
Hypertext Markup Language (HTML)
Extensible Markup Language (XML)
Unified Modelling Language (UML)
Which of these is used for integer division?
/
_
-
//
%
Which operator is used for a division calculation?
+
%
&
/
*
What is the highest value digit used in hexadecimal?
9
0
A
F
H
