Vocab (Malik ch 2) | Order of Operations | Escape Sequences | Computer History | Data Types |
---|---|---|---|---|
What is a function?
A collection of statements, when executed, they accomplish something
|
What is 5?
x +=2 if x = 3
|
What is \n?
newline
|
What is an abacus?
This is a system of sliding beads in a rack, used to help with addition and subtraction.
|
What is a bool?
This is the smallest data type, and only holds 1 bit of information.
|
What is syntax?
These rules tell you what statements are legal. Breaking them results in a compiler error.
|
What is 48?
x *= 3+5 if x = 6
|
What is \t?
tab
|
What is the Pascaline?
Invented in 1642, this had eight movable dials on wheels and could calculate sums up to eight figures long.
|
What is a char?
This small data type is used to represent letters, digits and special symbols
|
What are keywords?
These reserved words are special and cannot be used as variable names. Examples include int, void and return.
|
What is 10?
x*=y=z=5 if x = 2, y = 3, z = 5
|
What is \b?
backspace
|
Who is Charles Babbage?
This important mathematician designed the difference engine and the analytical engine.
|
What is an int?
This data type can hold negative and positive whole numbers, but cannot hold decimals.
|
What is an identifier?
The name of a variable or function
|
What is 192?
x = (x + ( y + 1 ) * ++x ) if x = 15 and y = 10
|
What is \\"?
backslash
|
What is ENIAC?
Built in 1946, this machine is often regarded as the first computer. It was built at the University of Pennsylvania, contained 18,000 vacuum tubes, and weighed over 30 tons.
|
What is a float?
This data type can hold decimals. It can hold up to four bytes of information.
|
What is precision?
The maximum number of significant digits, or places after a decimal point.
|
What is 0
x = z == y for z = 11 and y = 10
|
What is \"?
double quote
|
Who is Steve Wozniak?
Along with Steve Jobs, this guy founded Apple computer in his garage in 1977.
|
What is a double?
This data type can hold decimals. It can hold up to eight bytes of information.
|