2.2.1 Programming fundamentals Flashcards
What is a variable?
Part of a program that can be assigned a specific value
What are the characteristics of a variable?
Consists of a descriptive identifier and the value assigned to it.
Can be changed within a program as it runs and is not fixed
What is a constant?
Value that cannot be changed or edited within a running program
What does the input command require?
The user to type in a response to a question that can be processed in some way
What is an output?
Displaying a message or returning a response to the user
What is the print command used for?
Display an output, using quotation marks
What is a sequence?
The act of carrying out a step-by-step process in a logical order
What is iteration?
The act of repeating any process until a specified result is reached
What can be used to repeat a question until a specific answer is provided?
While loop
What is selection?
Allows decisions to be made within the program using if and else statements.
What are all the arithmetic operators?
*
/
MOD
DIV
What does MOD stand for?
Modulus
What does DIV stand for?
Quotient
What is the function of +?
Addition of two or more values
What is the function of -?
Subtraction of one value from another