Worksheets01 - Introduction to Python
Total questions: 10
Worksheet time: 3mins
A computer ________________ is a detailed, step-by-step set of instructions telling a computer exactly what to do.
program
algorithm
function
language
Computer languages that are designed to be used and understood by humans are ________________.
machine code
high-level languages
natural languages
binary code
A statement is ________________.
a part of an algorithm
a complete computer command
a solution to a problem
a translation of machine language
Which of the following is FALSE about compilers?
They translate a program written in a high-level language into machine code
Compiled code can be used multiple times without recompilation
If an error is found in a line, the compiler pauses the translation and prompts the user to correct the error
It optimises the code
Which of the following is an interpreted language?
C
C++
Python
Fortran
Which of the following translators do not produce an object file?
Compiler
Interpreter
Assembler
Which of the following symbols is used to place a multiline comment?
+
#
" ( or ' )
" " " ( or ' ' ' )
Which if the following is a disadvantage of Python?
Compulsory variable declaration before using them
Python is not easy to understand
Python is slower than compiled programs in cases of large-scale simulations
Python is an open-source programming language
Which of the following is TRUE about Python?
Python is a low-level language
Python does not support object-orientated programming techniques
Python is a compiled language
Python is an open-source programming language
The items listed in the parenthesis of a procedure definition are called ________________ .
comments
scripts
parameters
variables
