variables, expressions & statements chapter 2 Flashcards

1
Q

Order of operations:

A

Parenthesis()
power
multiplication
division
addition
subtraction
left/right(if multi or divi are together and the same for add/sub)

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

what is the modulus operator?

A

The modulus operator works on integers and yields the remainder when the first operand is divided by the second.

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

what is debugging?

A

Debugging means the complete control over the program execution. Developers use debugging to overcome program from any bad issues.

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

What is mnemonic?

A

The word mnemonic2 means “memory aid”. We choose mnemonic variable names to help us remember why we created the variable in the first place.

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

what is an assignment?

A

assignment
A statement that assigns a value to a variable.

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

what is concatenation?

A

concatenate
To join two operands end to end.

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

what is a comment in python?

A

comment
Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.

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

what is evaluate in python?

A

evaluate
To simplify an expression by performing the operations in order to yield a single value.

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

what is an expression?

A

expression
A combination of variables, operators, and values that represents a single result value.

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

what is a floating point>

A

floating point
A type that represents numbers with fractional parts.

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

what is an integer?

A

integer
A type that represents whole numbers.

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

what is a keyword?

A

keyword
A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as

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

what is a modulus operator?

A

modulus operator
An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.

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

what is an operand?

A

operand
One of the values on which an operator operates.

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

what is an operator?

A

operator
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
16
Q

what is the rules of precedence?

A

rules of precedence
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.

17
Q

what is an statement?

A

statement
A section of code that represents a command or action. So far, the statements we have seen are assignments and print expression statement.

18
Q

what is an string?

A

string
A type that represents sequences of characters.

19
Q

what is the type of a data?

A

type
A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).

20
Q

what is a value?

A

value
One of the basic units of data, like a number or string, that a program manipulates.