Python revision quiz

Beschreibung

keywords used to program in Python
Fiona Faulkner
Quiz von Fiona Faulkner, aktualisiert more than 1 year ago
Fiona Faulkner
Erstellt von Fiona Faulkner vor mehr als 10 Jahre
342
0

Zusammenfassung der Ressource

Frage 1

Frage
The keyword 'print' outputs text in brackets to the screen
Antworten
  • True
  • False

Frage 2

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

Frage 3

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

Frage 4

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

Frage 5

Frage
To cast a number back to string we use int( )
Antworten
  • True
  • False

Frage 6

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

Frage 7

Frage
Iteration means:
Antworten
  • the program will end
  • the program will loop

Frage 8

Frage
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:
Antworten
  • #
  • *

Frage 9

Frage
Boolean conditions can only have 1 of 2 possible values, e.g. ==, !=
Antworten
  • True
  • False
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Year 9 Keywords Definitions
Fiona Faulkner
SCRATCH
Fiona Faulkner
Anatomie Grundlagen
m m
Raumfahrt II
Christian Kunzi
Vetie Tierhaltung und -hygiene Quiz 2012
Elisabeth Tauscher
Vetie Immunologie 168-196
verena be
Vetie Viro 2017
sylva Heise
Basiswissen Management Sozialer Dienstleistungen - Dienstleistungscharakteristika
Bernd Leisen
Vetie Pharma Übungsfragen 2019/2020
Maite J
Vetie Tierseuchen 2019
Tropsi B
Vetie - Milch 2021
Valerie Nymphe