Part 1 Flashcards

(14 cards)

1
Q

A program is often referred to as “_____” “_____”

A

“source code”

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

What is a code, or “source code”?

A

Special instructions to tell the computer what tasks to perform

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

What is syntax?

A

Syntax often refers to the rules for valid format

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

a = b * 2;

A

This is a statement

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

What are variables?

A

Symbolic placeholders for the values themselves

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

What are literal values?

A

Values that are itself stand alone without being stored in a variable

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

What are operators?

A

Operators are characters that perform actions with the values and variables

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

What is an example of an operator?

A

Mathematic multiplication

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

Statements are made up of one or more “_____”

A

“expressions”

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

What is an expression?

A

Any reference to a variable or value or to a set of a combination of variable(s, value(s) and operators.

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

What is an expression statement?

A

A general expression that stands alone

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

What is an interpreter or a compiler used to do?

A

To translate the code you write into commands a computer can understand

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

What is interpreting code?

A

When translation of commands is typically done from top to bottom, line by line, every time the program is run

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

What is compiling the code?

A

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

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