Programming Fundamentals Flashcards

1
Q

Variable

A

Named item used to hold a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Assignment Statement

A

Assigns a variable with a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Variable Declaration

A

Declares a new variable

Specifies variable’s name and type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Expression

A

Combination of items (variables, literal, operators, parentheses) that evaluates to a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Identifier

A

Name created by a programmer for an item (variable or function)
Must be be a sequence of letters, underscores, and digits
Must start with a letter or underscore
Case sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Reserved Word

A

aka Keyword

Part of the language and cannot be used as an identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Camel Case

A

Capitalize each word (except the first)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Underscore Separated

A

Lowercase words separated by underscore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Literal

A

Specific value in code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Operator

A

Symbol that performs a built-in calculation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Precedence Rules

A
Order of standard mathematics used in expressions
() items within parentheses 
Logical not
unary - negation
*/
\+-
Relational
Equality
Logical AND
Logical OR
left-to-right
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Unary Minus

A

Minus (-) used as negative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Incremental Development

A

Process of writing, compiling, and testing a small amount of code. Then doing another small amount.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Function

A

List of statements invoked with function’s name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Pseudo-Random

A

Random number generators have an equation based off a seed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Integer Division

A

If two integers are used in division the result will be an integer. If at least one operand is floating-point then the answer will be floating-point

17
Q

Type Conversion

A

Conversion of one data type to another
Integer to float (25 = 25.0)
Float to integer (4.9 = 4)

18
Q

Implicit Conversion

A

Automatic data type conversion
If either operand with arithmetic operator is a float, the other is converted
During assignments, the right side is converted to left side type

19
Q

Type Cast

A

Converts a value of one type to another

An integer can be converted to float by multiplying by 1.0

20
Q

Constant

A

Named value that should not change during the program’s execution

21
Q

[]

A

Brackets

22
Q

{}

A

Braces

23
Q

()

A

Parentheses

24
Q

\n

A

New Line