WorksheetsIntroduction to Python
Total questions: 20
Worksheet time: 7mins
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!)
Which of the following is a correctly-formatted comment?
&comment
“”Comment””
!comment
#comment
What does term ‘debug’ mean:
looking at the code
a set of instructions
Identify errors and fix them
Making a calculation
The correct way to write a variable in python?
my_variables=10
my_variable:10
my variable=10
my_variable is 10
Python (TM) is owned and managed by
Microsoft (c)
Sun Microsystems (c)
Python (TM) is open source and free to use
Google (c)
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 disadvantage of Python is it is harder to debug than other higher level programming languages.
True
False
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
