Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

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 etwa 11 Jahre
377
0
1 2 3 4 5 (2)

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

0 Kommentare

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

ähnlicher Inhalt

SCRATCH
Fiona Faulkner
Mind Mapping
braun.rachel
Allgemeinwissen Chemie
Cassibodua
IKA-Theoriefragen Serie 04 (15 Fragen)
IKA ON ICT GmbH
BAS1 - Bau und Funktion des Bewegungsapparates (1)
susi.spakowski08
FOST 2 Deskriptive und explorative Datenanalyse
Kathy H
Vetie Immunologie 88-114
Karo Karl
Vetie Radiologie VL 2013
Cedric-Bo Lüpkemann
Vetie - Innere Medzin 2018
Fioras Hu
Vetie - Milchkunde 2016
Birte Schulz