NEW
Font size
WorksheetsSEM-2(Python-Q1)
Total questions: 15
Worksheet time: 6mins
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
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
A disadvantage of Python is it is harder to debug than other higher level programming languages.
True
False
Examples of program translators
Compilers
Interpreters
Assemblers
All the above
What is IDE?
Integrated Development Environment
Implicit Deployment Environment
Interrogated Development Environment
Binary operators use _____ operands and unary operators use _____ operand
one, one
two, one
two, two
three, two
What is the correct extension for python files ?
.py
.pyth
.python
How is a block of code defined in Python ?
with indentation
with paranthesis
with curly braces
