Title: Handling Data In Algorithms
Course: Quiz Statistics Report Test Course

Q: If we type the following into the interpreter

>>> spam = 15
>>> spam = spam + 5
>>> spam = spam + 5
>>> spam = spam + 5
>>> spam

What will be output ?
- 30
- 15
- 20
- 0
- 25
A: 30

Q: If you type 2 + 2 into the Python interactive shell and press return, which of the following will be output, eg.

>>> 2 + 2
- 4
- 22
- Syntax error
- runtime error
- incorrect function called
- object not defined
- 22.0
- 44
A: 4

Q: What are the symbols below called in Computing?

==

!=

>

<=
- comparison operators
- rounded integers
- string operands
- maths symbols
- multiplexers
- comparison integers
A: comparison operators

Q: Which of the following could not be stored as a Boolean data type?
- Yes, No, Not sure
- Male, Female
- positive, negative
- night, day
- True, False
A: Yes, No, Not sure

Q: If you type in

>>> 'Hello ' + 'World!'

The output is 'Hello World!' .

What is this process called?
- Concatenation
- Extension
- Compression
- Conversion
- Multi-plexing
- Addition in the Python shell
- Use of the print function
- A syntax error
A: Concatenation

Q: In computing, a variable can be described as...
- a place to store values in that may change during program execution
- something that is always changing
- for converting an integer to a binary value
- an interpreter for strings and floating point integers
- a binary function
- a value that is fixed on execution but never changes
A: a place to store values in that may change during program execution
Partly right: something that is always changing (10%)

Q: If we type the following into the shell in an IDE
>>> fizz = 10
>>> eggs = 15
>>> spam = fizz + eggs
>>> spam

What will the output be on the next line?
- 25
- 10
- 15
- It will produce a syntax error because they are mixed data types
- fizzeggs
A: 25

Q: Which of these is not a string?
- 23
- ' " '
- '7 apples, 14 oranges, 3 lemons'
- 'KITTENS'
- "2333.0"
A: 23

Q: Alan wishes to store the value "Ernie" in a variable called Name.

What would be the best data-type for him to use?
- String
- Integer
- Floating Point Number
- Textual Data Entry
- Char
- Real number
- A named data type
A: String

Q: What are the symbols + - * / called in Computing?
- mathematical operators
- rounded integers
- string operands
- maths symbols
- multiplexers
- comparative operators
- comparison integers
A: mathematical operators

Q: Which line when executed, makes the program wait for the user to enter text. Then stores the text string that the user enters into a variable.
- my_name = input()
- print ("Your name is" + input())
- print (my_name)
- my_name = "Carol"
- print ('Hello' + my_name)
A: my_name = input()

Q: What name is given to a data-type which represents a whole number with no fractional parts?

[Give your answer as one word only, eg. banana]
A: *integer*

Q: What name is given to a data-type which represents a number commonly referred to as a decimal, eg. 0.001 ?

[Give your answer as one word only, eg. banana]
A: *float*