Test
Python revision quiz
Preguntas del test (9)
1The keyword 'print' outputs text in brackets to the screen
- AVerdadero
- BFalso
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'
- AVerdadero
- BFalso
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( )
- AVerdadero
- BFalso
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. ==, !=
- AVerdadero
- BFalso
Información
- Descripción
- keywords used to program in Python
- Autor
- Fiona Faulkner
- Idioma
- English
- Visitas
- 439
- Etiquetas
- Valoración
- 2,0 de 5 · 2 valoraciones Valora este test