ALL THE TEST Flashcards
How can a program written in a high-level programming language be executed?
By rendering it into machine language
What happens if the interpreter detects an error in the code?
It finishes its work immediately and displays an error message
Machine languages are devloped by computers.
False
Interpreters read and execute source code from bottom to top and right to left.
False
Select the true statements. (Select two answers)
Python 3 is not backwards compatible with Python 2
What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts?
A console
What is the execution model of an interpreted language?
Read, check, execute (repeated for each line)
Why is Python named after Monty Python?
The name of the Python programming language comes from an old BBC television comedy sketch series called Monty Python’s Flying Circus.
Where is Python extensively used?
Python is used to implement complex Internet services, everyday-use applications, and scientific research.
What are the two main versions of Python?
The two main versions of Python are Python 2 and Python 3. Python 2 is older and Python 3 is the current version.
Python is primarily used for low-level programming.
False
What do high-level programming languages enable humans to do?
Express complex commands to computers
Is Python suitable for low-level programming or mobile applications?
Python is not suitable for low-level programming or mobile applications.
What is CPython?
It’s the default, reference implementation of Python, written in the C language
What language does a computer CPU process and understand?
Machine language
Based on this class, what makes a computer usable?
A program
What is the historical term for languages designed to be interpreted?
Scripting languages
What is a high-level programming language?
A language readable by humans and capable of complex commands
Language is a means of expressing and recording thoughts.
True
What is CPython?
CPython is the traditional implementation of Python, often referred to as just “Python”.
(This is the end of the 1st quiz)
The * operator can be used to replicate strings.
True
The input() function is used to send data to the console.
False
The input() function is used to get user input from the console.
True
What is the meaning of the hierarchy of priorities in Python?
Determines the order of operations performed by operators