• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Python Test 1

Document preview thumbnail
Preview 2 out of 5 pages

PYTHON TEST 1 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 keyword - CORRECT ANSWERS-define the language's syntax rules and structure, and they cannot be used as variable names statement - CORRECT ANSWERS-instruction that the Python interpreter can execute operators - CORRECT ANSWERS-special tokens that represent computations like addition, multiplication and division modulus operator - CORRECT ANSWERS-%, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second evaluate - CORRECT ANSWERS-To simplify an expression by performing the operations in order to yield a single value. int - CORRECT ANSWERS-A Python data type that holds positive and negative whole numbers 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 type conversion - CORRECT ANSWERS-An explicit function call that takes a value of one type and computes a corresponding value of another type. definite iteration - CORRECT ANSWERS-A loop where we have an upper bound on the number of times the body will be executed. Definite iteration is usually best coded as a for loop increment - CORRECT ANSWERS-Both as a noun and as a verb, increment means to increase by 1. iteration - CORRECT ANSWERS-Repeated execution of a set of programming statements. nested loop - CORRECT ANSWERS-A loop inside the body of another loop. trace - CORRECT ANSWERS-To follow the flow of execution of a program by hand, recording the change of state of the variables and any output produced. aliases - CORRECT ANSWERS-Multiple variables that contain references to the same object. 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


Document information

Uploaded on
November 20, 2023
Number of pages
5
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$9.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Bestcontents
4.5
(8)
Sold
34
Followers
13
Items
2030
Last sold
10 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.