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 mais de 10 anos atrás
342
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
Continentes
Alessandra S.
Estatuto
renathanjo2
Aprenda a fazer uma boa Redação em 5 passos
Alessandra S.
As 22 consagradas leis do Marketing
Cristiano Bertul
Leitura para o First Certificate (I)
GoConqr suporte .
COLOCAÇÃO PRONOMINAL
angrafederal
Inquérito Policial
cesar_basso
Mapa Mental - Fungos
Leonardo Bermudes
Crise da República e a ruptura de 1930
jacson luft