Python revision quiz

Descripción

keywords used to program in Python
Fiona Faulkner
Test por Fiona Faulkner, actualizado hace más de 1 año
Fiona Faulkner
Creado por Fiona Faulkner hace alrededor de 10 años
337
0

Resumen del Recurso

Pregunta 1

Pregunta
The keyword 'print' outputs text in brackets to the screen
Respuesta
  • True
  • False

Pregunta 2

Pregunta
To store data in a program we use a variable followed by this sign
Respuesta
  • colon (:)
  • equals (=)
  • hyphen (-)

Pregunta 3

Pregunta
To allow the user of a program to enter data in response to a question we use the keyword 'int'
Respuesta
  • True
  • False

Pregunta 4

Pregunta
Data that consists of letters, characters, spaces and numbers is this data type:
Respuesta
  • string
  • integer
  • float

Pregunta 5

Pregunta
To cast a number back to string we use int( )
Respuesta
  • True
  • False

Pregunta 6

Pregunta
To tell a program to only run if a specified condition is met, we use:
Respuesta
  • else
  • elif
  • if

Pregunta 7

Pregunta
Iteration means:
Respuesta
  • the program will end
  • the program will loop

Pregunta 8

Pregunta
To 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:
Respuesta
  • #
  • *

Pregunta 9

Pregunta
Boolean conditions can only have 1 of 2 possible values, e.g. ==, !=
Respuesta
  • True
  • False
Mostrar resumen completo Ocultar resumen completo

Similar

Year 9 Keywords Definitions
Fiona Faulkner
SCRATCH
Fiona Faulkner
Capitales Europeas
Diego Santos
Ingeniería Industrial
genifer.estrada
Arte Prerromano
maya velasquez
LA CELULA
carol viatela
RAMAS DE LA GEOGRAFIA
ROSA MARIA ARRIAGA
LITERATOS...
JL Cadenas
FÓRMULAS Geométricas...
Ulises Yo
Test Estructuras IV: Tipo de estructuras
Pedro Landín