Docsity

Python Programming Terminology Exam with Answers, Exams of Computer Science

Toggle sidebar
bg1
Python EXAM WITH CORRECT
ANSWERS | LATEST UPDATE
algorithm - โœ”โœ”โœ” A set of specific steps for solving a category of problems
bug - โœ”โœ”โœ” an error in a program
comment - โœ”โœ”โœ” in a program that is meant for other programmers (or anyone reading
the source code) and has no effect on the execution of the program
token - โœ”โœ”โœ” basic elements of a language(letters, numbers, symbols)
high-level language - โœ”โœ”โœ” A programming language like Python that is designed to be
easy for humans to read and write.
low-level langauge - โœ”โœ”โœ” A programming language that is designed to be easy for a
computer to execute; also called machine language or assembly language
print - โœ”โœ”โœ” A function used in a program or script that causes the Python interpreter
to display a value on its output device.
runtime error - โœ”โœ”โœ” An error that does not occur until the program has started to
execute but that prevents the program from continuing.
semantic error - โœ”โœ”โœ” An error in a program that makes it do something other than
what the programmer intended.
semantic - โœ”โœ”โœ” the meaning of a program
syntax - โœ”โœ”โœ” The structure of a program
syntax error - โœ”โœ”โœ” An error in a program that makes it impossible to parse โ€” and
therefore impossible to interpret.
string - โœ”โœ”โœ” contains a string of letters
variable - โœ”โœ”โœ” name that refers to a value
assignment statement - โœ”โœ”โœ” gives value to a variable
1
pf3
pf4
pf5

Partial preview of the text

Download Python Programming Terminology Exam with Answers and more Exams Computer Science in PDF only on Docsity!

Python EXAM WITH CORRECT

ANSWERS | LATEST UPDATE

algorithm - โœ”โœ”โœ” A set of specific steps for solving a category of problems bug - โœ”โœ”โœ” an error in a program comment - โœ”โœ”โœ” in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program token - โœ”โœ”โœ” basic elements of a language(letters, numbers, symbols) high-level language - โœ”โœ”โœ” A programming language like Python that is designed to be easy for humans to read and write. low-level langauge - โœ”โœ”โœ” A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language print - โœ”โœ”โœ” A function used in a program or script that causes the Python interpreter to display a value on its output device. runtime error - โœ”โœ”โœ” An error that does not occur until the program has started to execute but that prevents the program from continuing. semantic error - โœ”โœ”โœ” An error in a program that makes it do something other than what the programmer intended. semantic - โœ”โœ”โœ” the meaning of a program syntax - โœ”โœ”โœ” The structure of a program syntax error - โœ”โœ”โœ” An error in a program that makes it impossible to parse โ€” and therefore impossible to interpret. string - โœ”โœ”โœ” contains a string of letters variable - โœ”โœ”โœ” name that refers to a value assignment statement - โœ”โœ”โœ” gives value to a variable

keyword - โœ”โœ”โœ” define the language's syntax rules and structure, and they cannot be used as variable names statement - โœ”โœ”โœ” instruction that the Python interpreter can execute operators - โœ”โœ”โœ” special tokens that represent computations like addition, multiplication and division modulus operator - โœ”โœ”โœ” %, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second evaluate - โœ”โœ”โœ” To simplify an expression by performing the operations in order to yield a single value. int - โœ”โœ”โœ” A Python data type that holds positive and negative whole numbers float - โœ”โœ”โœ” A Python data type which stores floating-point numbers. Floating-point numbers are stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers flow of execution - โœ”โœ”โœ” The order in which statements are executed during a program run. function - โœ”โœ”โœ” A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result fruitful function - โœ”โœ”โœ” A function that returns a value when it is called. local variable - โœ”โœ”โœ” A variable defined inside a function. A local variable can only be used inside its function. Parameters of a function are also a special kind of local variable. parameter - โœ”โœ”โœ” A name used inside a function to refer to the value which was passed to it as an argument. boolean function - โœ”โœ”โœ” A function that returns a Boolean value. The only possible values of the bool type are False and True. None - โœ”โœ”โœ” A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument. block - โœ”โœ”โœ” A group of consecutive statements with the same indentation.

format operator - โœ”โœ”โœ” The % operator takes a format string and a tuple of values and generates a string by inserting the data values into the format string at the appropriate locations. global variable - โœ”โœ”โœ” Can be seen through a program module, even inside of functions. immutable type - โœ”โœ”โœ” A compound data type whose elements can NOT be assigned new values. iteration - โœ”โœ”โœ” To repeat a section of code. mutable type - โœ”โœ”โœ” A compound data type whose elements can be assigned new values. nested list - โœ”โœ”โœ” A list that is itself contained within a list. operator - โœ”โœ”โœ” A special symbol that represents a simple computation like addition, multiplication, or string concatenation. pixel - โœ”โœ”โœ” Smallest addressable element of a picture. proprioception - โœ”โœ”โœ” on a robot, internal sensing mechanisms. On a human, a sense of the relative positions of different parts of ones own body. recursion - โœ”โœ”โœ” The process of calling the currently executing function. robot - โœ”โœ”โœ” mechanism or an artificial entity that can be guided by automatic controls. sequence - โœ”โœ”โœ” A data type that is made up of elements organized linearly, with each element accessed by an integer index. short circuit evaluation - โœ”โœ”โœ” When a boolean expression is evaluated the evaluation starts at the left hand expression and proceeds to the right, stopping when it is no longer necessary to evaluate any further to determine the final outcome. slice - โœ”โœ”โœ” A copy of part of a sequence specified by a series of indices. str - โœ”โœ”โœ” converts to a string traverse - โœ”โœ”โœ” To repeat an operation on all members of a set from the start to the end.

argument - โœ”โœ”โœ” a value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function. integer division - โœ”โœ”โœ” An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder. element - โœ”โœ”โœ” One of the values in a list (or other sequence). The bracket operator selects elements of a list. lambda - โœ”โœ”โœ” A piece of code which can be executed as if it were a function but without a name. (It is also a keyword used to create such an anonymous function.) module - โœ”โœ”โœ” A file containing definitions and statements intended to be imported by other programs.