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 11 años
379
0
1 2 3 4 5 (2)

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

0 comentarios

There are no comments, be the first and leave one below:

Similar

SCRATCH
Fiona Faulkner
Fórmulas Física
Diego Santos
Japonés básico Lección 1
naichu-
SEIS ESTRATEGIAS PARA MEJORAR LA COMPRENSIÓN LECTORA
lupitta_12
PAST SIMPLE
almajannette.soa
CAN, MUST , COUNTABLE AND UNCOUNTABLE NOUNS
Paula Lopez
Las ondas sonoras
mariajesus camino
DIPTONGO O HIATO
Silvia Rial Martínez
MAPA DE ACTORES DE ACOMPAÑAMIENTO PSICOSOCIAL DESDE LA PSICOLOGIA JURIDICA A VICTIMAS DE LA CONFRONTACION ARMADA.
JUAN CARLOS VELEZ LOPEZ