Part 1 Flashcards
(14 cards)
A program is often referred to as “_____” “_____”
“source code”
What is a code, or “source code”?
Special instructions to tell the computer what tasks to perform
What is syntax?
Syntax often refers to the rules for valid format
a = b * 2;
This is a statement
What are variables?
Symbolic placeholders for the values themselves
What are literal values?
Values that are itself stand alone without being stored in a variable
What are operators?
Operators are characters that perform actions with the values and variables
What is an example of an operator?
Mathematic multiplication
Statements are made up of one or more “_____”
“expressions”
What is an expression?
Any reference to a variable or value or to a set of a combination of variable(s, value(s) and operators.
What is an expression statement?
A general expression that stands alone
What is an interpreter or a compiler used to do?
To translate the code you write into commands a computer can understand
What is interpreting code?
When translation of commands is typically done from top to bottom, line by line, every time the program is run
What is compiling the code?
When translation is done ahead of time so when the program runs later, what’s running is actually the already compiled computer instructions ready to go