Font size
WorksheetsPython Cert - Day 1 (AM)
Total questions: 18
Worksheet time: 9mins
Python is an example of:
Select the TRUE statements. (Select TWO answers)
Python is a good choice for low-level programming, e.g., when you want to implement an effective driver
Python is free, open-source, and multiplatform
Python 3 is backwards compatible with Python 2
Python is a good choice for creating and executing tests for applications
A complete set of known commands is called:
A Machine List
A Low-Level List
An Instruction List
What is a source code?
Machine code executed by computers
A program written in a high-level programming language
Another name for a source file
What do you call a computer program which directly executes instructions written in a programming language?
An interpreter
A translator
A compiler
What Python version is covered in this course?
Python 3
Python 2
Python 1
What is CPython?
A compiled language used to perform high-level programming functions
The default implementation of the Python programming language
Another name for Cython, a superset of the Python programming language
What is IDLE?
An acronym that stands for Interactive Development and Learning Extension
A version of Python
An acronym that stands for Integrated Development and Learning Environment for Python
What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution?
A debugger
An editor
A console
How did Python, the programming language get its name?
Which of the following is an example of a Python file extension?
py
pi
p
What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts?
A console
Jython
An editor
A compiler
What is the expected behavior of the following program?
prin("Goodbye!")
The program will output Goodbye! to the screen
The program will generate an error mesage on the screen
The program will output ("Goodbye!")
The program will output "Goodbye!"
What is the best definition of a script?
It's an error message generated by the compiler
It's an error message generated by the interpreter
It's a text file that contains sequences of zeroes and ones
It's a text file that contains instructions which make up a Python program
What is machine code?
A medium-level programming language consisting of the assembly code designed for the computer processor
A low-level programming language consisting of binary digits/bits that the computer reads and understands
A high-level programming language consisting of instruction lists that humans can read and understand
A low-level programming language consisting of hexadecimal digits that make up high-level language instructions
What is TRUE about compilation? (Select TWO answers)
Both you and the end user must have the compiler to run your code
The code is converted directly into machine code executable by the processor
It tends to be faster than interpretation
It tends to be slower than interpretation
What do you call a file containing a program written in a high-level programming language?
A target file
A code file
A source file
A machine file
What are the four fundamental elements that make a language?
An alphabet, morphology, phonetics and semantics
An alphabet, a lexis, phonetics and semantics
An alphabet, phonetics, phonology and semantics
An alphabet, a lexis, a syntax and semantics
