Final Exam Flashcards
(29 cards)
What does ASDIDM stand for?
Analyze, Specify, Design, Integrate, Debug, and Maintain
By default computers display information to the computer screen, when talking about output, the screen is often referred to as…
Standard output
What are a variable’s 3 components?
identifier, value, data type
A variable is a memory location with an associated…
Identifier
What must be included in an input statement if you want to be able to perform calculations on the input value?
Float
What are operators?
Symbols that can be evaluated by the computer
What are operands?
Values that can be evaluated by the computer
A Boolean Expression means…
True/False
What operators allow us to make comparisons?
Relational Operators
What is a boolean expression that involves the answer to more than one question?
Compound Conditional Statement
What is the name of the statement that allows for the repetition of an instruction or group of instructions?
Loop
4 parts of the loop
Initialization, Loop Control, Body, Update
What is the reserved word that indicates a loop?
While
What is a string?
Made up of a sequence of characters
What is the plan for solving a problem called?
Algorithm
Match the arithmetic operator to the correct function: A. +, B. -, C. *, D. /, E. **, F. %, G. //
1. Multiplication
2. Exponents
3. Subtraction
4. Addition
5. Floor Division (Rounds the result down)
6. Remainders
7. Division
C, E, B, A, G, F, D
What is it called when the decimal is ignored in a problem?
Truncation
Name the function call, return value, and argument(s) of this statement:
numberOfChar = len(stringIdentifier)
Function call - len
Argument - stringIdentifier
Return Value - numberofChar
What is the general syntax for a function call that does not return a value?
nameOfFunction(Argument(s))
What is the idea that you can use something without understanding it called?
Abstraction
What is a linear collection of like-typed items called?
A list
What does the append function do?
Adds an item onto the end of a list
What does the insert function do?
Adds a value to a specified position in the list
What is the general syntax of the append function?
listIdentifier.append(newValue)