White Belt Flashcards
(47 cards)
Python is an example of:
A) A hight-level programing language
B) A machine language
C) A natural language
A) A hight-level programing language
A Complete set of known commands is called:
A) a machine list
B) an instruction list
C) A low-level list
B) An instruction list
What is a source code?
A) Another name for a source file
B) A program written in a high-level programming language
C) Machine code executed by computers
B) A program written in a high-level language
What do you call a computer program which directly executes instructions written in a programming language?
A) A translator
B) An interpreter
C) A compiler
B) An interpreter
What Python version is covered in this course?
A) Python 1
B) Python 3
C) Python 2
B) Python 3
What is CPython?
A) A compiled language is used to perform high-level programming functions.
B) The default implementation of the Python programming language
C) Another name for Cython, a superset of the Python programming language.
B) The default implementation of the Python programming language
What is Idle?
A) An acronym that stands for Integrated Development and Learning Environment for Python
B) A version of Python
C) An acronym that stands for Interactive Development and Learning Extension
A) 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) An editor
B) A console
C) A debugger
C) A debugger
How did Python, the programming language, get its name?
A) Guido van Rossum named it to honor Python of Catana, a dramatic poet of the time of Alexander the Great
B) Guido van Rossum named it to honor Monty Pyhon’s Flying Circus, a BBC comedy series popular in the 1970s
C) Guido van Rossum named it after the Pythonidae - a family of large, nonvenomous snakes
B) Guido van Rossum named it to honor Monty Pyhon’s Flying Circus, a BBC comedy series popular in the 1970s
Which one of the following is an example of a Python file extension?
A) py
B) pi
C) p
B) pi
What do you call a file containing a program written in a high-level programming language? A) A target file B) A code file C) A machine file D) A source file
D) A source file
What are the four fundamental elements that make a language?
A) An alphabet, a lexis, phonetics, and semantics
B) An alphabet, a lexis, a syntax, and sematics
C) An alphabet, phonetics, phonology, and sematics
D) A alphabet, morphology, phonetics, and sematics.
B) An alphabet, a lexis, a syntax, and sematics
What is machine code?
A) A low-level programming language consisting of hexadecimal digits that make up high-level language instructions.
B) A low-level programming language consisting of instruction lists that humans can read and understand
C) A high-level programming language consisting of instruction lists that humans can read and understand
D) A medium-level programming language consisting of the assembly code designed for the computer processor.
B) A low-level programming language consisting of instruction lists that humans can read and understand
What is the expected behavior of the following program?
prin(“Goodbye!”)
A) The program will output Goodbye! on the screen
B) The program with output (“Goodbye!”)
C) The program with output(“Goodbye!”)
D) The program will generate an error message on the screen
D) The program will generate an error message on the screen
What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts? A) jython B) A compiler C) A console D) An editor
C) A console
Select the true statement(Select two answers)
A) Python is free, open-source, and multiplatform
B) Python 3 is backwards compatible with Python 2
C) Python is a good choice for creating and executing test for applications.
D) Python is a good choice for low-level programing, e.g., when you want to implement an effective drive
A) Python is free, open-source, and multiplatform
C) Python is a good choice for creating and executing test for applications.
What is true about compilation? (Select two answers)
A) Both you and the end user must have the compiler to run your code
B) It tends to be faster than interpretation
C) The code is converted directly into machine code executable my the processor
D) It tends to be slower than interpretation.
B) It tends to be faster than interpretation
C) The code is converted directly into machine code executable my the processor
What is the expected behavior of the following program?
print(“Hello!”)
A) The program will generate an error message on the screen
B) The program will output Hello! to the screen
C) The program will output (“Hello!”)to the screen
D) The program will output “Hello!” to the screen
B) The program will output Hello! to the screen
What is the best definition of a script?
A) It’s an error message generated by the interpreter
B) it’s an error message generated by the compiler
C) it’s a text file that contains sequences of zeroes and ones
D) it’s a text file that contains instructions that make up a Python program.
D) it’s a text file that contains instructions that make up a Python program.
The escape character owes its name to the fact that it:
A) changes the meaning of the character next to it
B) escapes from the source file into the computer memory
C) cannot be caught due to its high speed
A) changes the meaning of the character next to it
The meaning of the positional parameter is determined by its:
A) name
B) position
C) appearance
B) position
The most important difference between integer and floating-point numbers lies in the fact that:
A) they are stored differently in the computer memory
B) They cannot be used simultaneously
C) integers cannot be literals, while floats can
A) they are stored differently in the computer memory
The 0x prefix means that the number after it is denoted as:
A) a hexadecimal
B) an octal
C) a decimal
A) a hexadecimal
The // operator:
A) performs integer division
B) performs regular division
C) does not exist
A) performs integer division