Python revision quiz

Description

keywords used to program in Python
Fiona Faulkner
Quiz by Fiona Faulkner, updated more than 1 year ago
Fiona Faulkner
Created by Fiona Faulkner about 11 years ago
375
0
1 2 3 4 5 (2)

Resource summary

Question 1

Question
The keyword 'print' outputs text in brackets to the screen
Answer
  • True
  • False

Question 2

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

Question 3

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

Question 4

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

Question 5

Question
To cast a number back to string we use int( )
Answer
  • True
  • False

Question 6

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

Question 7

Question
Iteration means:
Answer
  • the program will end
  • the program will loop

Question 8

Question
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:
Answer
  • #
  • *

Question 9

Question
Boolean conditions can only have 1 of 2 possible values, e.g. ==, !=
Answer
  • True
  • False
Show full summary Hide full summary

0 comments

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

Similar

SCRATCH
Fiona Faulkner
3. The Bolshevik's Seizure of Power
ShreyaDas
Cory & Manuel_1
cory.jones2010
What was the Cold War?
Emily Tisch
Edexcel History A Gcse ~ USA 1919-1941
Kieran Elson
Who was to blame for the Cold War?
Will Barnes
Attachment - Psychology - Flash Cards
Megan Price
P1 quiz
I M Wilson
AQA Biology B2 Unit 2.1 - Cells Tissues and Organs
BeccaElaine
NSI FINAL TEST
brahim matrix