Python revision quiz

Descrição

keywords used to program in Python
Fiona Faulkner
Quiz por Fiona Faulkner, atualizado more than 1 year ago
Fiona Faulkner
Criado por Fiona Faulkner aproximadamente 10 anos atrás
337
0

Resumo de Recurso

Questão 1

Questão
The keyword 'print' outputs text in brackets to the screen
Responda
  • True
  • False

Questão 2

Questão
To store data in a program we use a variable followed by this sign
Responda
  • colon (:)
  • equals (=)
  • hyphen (-)

Questão 3

Questão
To allow the user of a program to enter data in response to a question we use the keyword 'int'
Responda
  • True
  • False

Questão 4

Questão
Data that consists of letters, characters, spaces and numbers is this data type:
Responda
  • string
  • integer
  • float

Questão 5

Questão
To cast a number back to string we use int( )
Responda
  • True
  • False

Questão 6

Questão
To tell a program to only run if a specified condition is met, we use:
Responda
  • else
  • elif
  • if

Questão 7

Questão
Iteration means:
Responda
  • the program will end
  • the program will loop

Questão 8

Questão
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:
Responda
  • #
  • *

Questão 9

Questão
Boolean conditions can only have 1 of 2 possible values, e.g. ==, !=
Responda
  • True
  • False

Semelhante

Year 9 Keywords Definitions
Fiona Faulkner
SCRATCH
Fiona Faulkner
Literatura Brasileira
Alessandra S.
Simulado para concursos públicos
Alessandra S.
Divisão Monômio por Polinômio
isabella.s.silva
BIOQUÍMICA CELULAR
paulo.ximendes
Física moderna
Vitoria Sefner
5 Passos para Aprendizagem de Sucesso
GoConqr suporte .
Mapa Conceitual
Eduardo Morais
Mercantilismo
Professor Junior
Contextualização da disciplina - Tecnologias na formação profissional - Saúde
Fabrícia Assunção