Chapter Two - Variables, Expressions, Statements Flashcards

1
Q

Value

A

One of the basic units of data (ex: number, string) that a program manipulates

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

Type

A

A category of values (ex: integers - int, floating-point numbers- float, string- str)

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

Integer

A

A type that represents whole numbers

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

Floating-point

A

A type that represents numbers with fractional parts

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

String

A

A type that represents sequences of characters

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

Variable

A

A name that refers to a value

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

Statement

A

A section of code that represents a command or action. (ex: assignments/print statements)

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

Assignment

A

A statement that assigns value to a variable

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

State Diagram

A

A graphical representation of a set of variables and the values they refer to

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

Keyword

A

A reserved word that is used by the compiler to parse a program you cannot use these names as variables

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

Operator

A

A special symbol that represents a simple computation like addition, multiplication, or string concatenation

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

Operand

A

One of the values on which an operator operates

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

Floor Division

A

The operation that divides two numbers and chops off the fraction part

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

Expression

A

A combination of variables, operators, and values that represent a single result value

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

Concatenate

A

To join two operands end-to-end

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

Comment

A

Information in a program that is meant for other programmers and has no effect on the execution of the program