Docsity

Python Programming Terms and Definitions, Exams of Nursing

Toggle sidebar
bg1
Python Questions and answers
algorithm - CORRECT ANSWERS✅ A set of specific steps for solving a category of
problems
bug - CORRECT ANSWERS✅ an error in a program
comment - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ basic elements of a language (letters, numbers,
symbols)
high-level language - CORRECT ANSWERS✅ A programming language like Python
that is designed to be easy for humans to read and write.
low-level langauge - CORRECT ANSWERS✅ A programming language that is
designed to be easy for a computer to execute; also called machine language or
assembly language
print - CORRECT ANSWERS✅ A function used in a program or script that causes the
Python interpreter to display a value on its output device.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Python Programming Terms and Definitions and more Exams Nursing in PDF only on Docsity!

algorithm - CORRECT ANSWERS✅ A set of specific steps for solving a category of problems bug - CORRECT ANSWERS✅ an error in a program comment - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ basic elements of a language (letters, numbers, symbols) high-level language - CORRECT ANSWERS✅ A programming language like Python that is designed to be easy for humans to read and write. low-level langauge - CORRECT ANSWERS✅ A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language print - CORRECT ANSWERS✅ A function used in a program or script that causes the Python interpreter to display a value on its output device.

runtime error - CORRECT ANSWERS✅ An error that does not occur until the program has started to execute but that prevents the program from continuing. semantic error - CORRECT ANSWERS✅ An error in a program that makes it do something other than what the programmer intended. semantic - CORRECT ANSWERS✅ the meaning of a program syntax - CORRECT ANSWERS✅ The structure of a program syntax error - CORRECT ANSWERS✅ An error in a program that makes it impossible to parse — and therefore impossible to interpret. string - CORRECT ANSWERS✅ contains a string of letters variable - CORRECT ANSWERS✅ name that refers to a value assignment statement - CORRECT ANSWERS✅ gives value to a variable

float - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ The order in which statements are executed during a program run. function - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ A function that returns a value when it is called. local variable - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ A name used inside a function to refer to the value which was passed to it as an argument.

boolean function - CORRECT ANSWERS✅ A function that returns a Boolean value. The only possible values of the bool type are False and True. None - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ A group of consecutive statements with the same indentation. boolean expression - CORRECT ANSWERS✅ An expression that is either true or false. conditional statement - CORRECT ANSWERS✅ A statement that controls the flow of execution depending on some condition. In Python the keywords if, elif, and else are used for conditional statements. conditional statement - CORRECT ANSWERS✅ One program structure within another, such as a conditional statement inside a branch of another conditional statement

clone - CORRECT ANSWERS✅ To create a new object that has the same value as an existing object. Copying a reference to an object creates an alias but doesn't clone the object. compound data type - CORRECT ANSWERS✅ A data type that is itself made up of elements that are themselves values. decrement - CORRECT ANSWERS✅ To subtract one from a variable. dictionary - CORRECT ANSWERS✅ A collection of key/value pairs that maps from keys to values. exception - CORRECT ANSWERS✅ Raised by the runtime system if something goes wrong while the program is running. file - CORRECT ANSWERS✅ A named entity, usually stored on a hard drive, floppy disk, or CD-ROM, that contains a stream of characters. format operator - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ Can be seen through a program module, even inside of functions. immutable type - CORRECT ANSWERS✅ A compound data type whose elements can NOT be assigned new values. iteration - CORRECT ANSWERS✅ To repeat a section of code. mutable type - CORRECT ANSWERS✅ A compound data type whose elements can be assigned new values. nested list - CORRECT ANSWERS✅ A list that is itself contained within a list. operator - CORRECT ANSWERS✅ A special symbol that represents a simple computation like addition, multiplication, or string concatenation. pixel - CORRECT ANSWERS✅ Smallest addressable element of a picture.

traverse - CORRECT ANSWERS✅ To repeat an operation on all members of a set from the start to the end. argument - CORRECT ANSWERS✅ a value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function. integer division - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ One of the values in a list (or other sequence). The bracket operator selects elements of a list. lambda - CORRECT ANSWERS✅ 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 - CORRECT ANSWERS✅ A file containing definitions and statements

intended to be imported by other programs.