Quiz
Python revision quiz
Questions in this quiz (9)
1The keyword 'print' outputs text in brackets to the screen
- ATrue
- BFalse
2To store data in a program we use a variable followed by this sign
- Acolon (:)
- Bequals (=)
- Chyphen (-)
3To allow the user of a program to enter data in response to a question we use the keyword 'int'
- ATrue
- BFalse
4Data that consists of letters, characters, spaces and numbers is this data type:
- Astring
- Binteger
- Cfloat
5To cast a number back to string we use int( )
- ATrue
- BFalse
6To tell a program to only run if a specified condition is met, we use:
- Aelse
- Belif
- Cif
7Iteration means:
- Athe program will end
- Bthe program will loop
8To make a program easier to read and understand we use a line of text to explain part of the code. So that the line of text does not become confused as part of the actual program, we use this character:
- A#
- B*
9Boolean conditions can only have 1 of 2 possible values, e.g. ==, !=
- ATrue
- BFalse
Information
- Description
- keywords used to program in Python
- Author
- Fiona Faulkner
- Language
- English
- Views
- 439
- Tags
- Rating
- 2.0 out of 5 · 2 ratings Rate this quiz