Font size
WorksheetsIntroduction to python
Total questions: 32
Worksheet time: 18mins
Python is an example of a:
Text-based programming language
Visual-based programming language
Block-based programming language
Language written in JavaScript
What will the output be from the following code? Print (“Hello world!”)
SyntaxError
“Hello world!”
Hello world!
Print (Hello world!)
The correct way to write a variable in python?
my_variables=10
my_variable:10
my variable=10
my_variable is 10
Which of the following is a correctly-formatted comment?
&comment
“”Comment””
!comment
#comment
A data type consisting of numbers letters and symbols:
String
Integer
Float
Boolean
What does term ‘debug’ mean:
looking at the code
a set of instructions
Identify errors and fix them
Making a calculation
To repeat until a particular condition is true use:
While loop
For loop
If loop
Indentation
What does Python turtle allow you to do?
Draw using Java
Draw using python
Insert Audio
Edit photo
If you want more than one option for your code, what do you use (after if)?
If if
Else
And
Elif
What does an if statement do?
Close the program
Ask a question
Make a decision
Write a comment
100
TRUE
"D"
What is a variable?
A storage location of memory which can change
A random area to store things in.
Something that changes
Something that can only store numbers
What is a Constant?
A storage location of memory which does not change
A random area to store things in.
Something that changes
Something that can only store numbers
Which variable uses a integer data type?
password
passwordScore
passwordLength
Which variable uses a string data type?
password
passwordScore
passwordLength
Python is an example of a:
Text-based programming language
Visual-based programming language
Block-based programming language
Language written in JavaScript
Python (TM) is owned and managed by
Microsoft (c)
Sun Microsystems (c)
Python (TM) is open source and free to use
Google (c)
Why was Python (TM) developed?
To go back to the old way of programming
To create a programming language for students in grade school
To make it easier to learn Java
Python was developed by accident
Python is ___________ level programming language and is ___________.
High, compiled
High, interpreted
Low, compiled
Low, interpreted
Generally speaking, a low level programming language is easier to read, write and maintain over a high level programming language
True
False
The syntax in Python (TM) is one of the main advantages over other high level programming languages.
True
False
A statement in programming
Expresses an action to be carried out
Always returns results like expressions
Rules controlling how components in a program are combined
An instruction to perform a task, usually one word
A string
carries out an action
the elements of a command
a collection of characters
how elements in a commad are arranged
A block is
a statement including elements of a command
the structure and form of the code
source code that is grouped together
meaning assigned to symbols, characters and words
What symbol comes before a comment?
$
>>
#
!
An exception is
the structure of form of the code
the meaning of the characters and words in the code
the statement that is missing from the instructions
an event occurring during execution of a program which disrupts the flow of the program's instructions
Since Python (TM) is open source,
Support for using Python (TM) is easy to find
It is free
There is a large catalog of supporting documents
it is a less powerful programming languange
Generally speaking Python (TM) would run _____________ than C++ and take ____________ time to create
faster, less
faster, more
slower, less
slower, more
