Language Basics: Expressions, Statements, Blocks Flashcards

1
Q

What happens if you don’t explicitly indicate the order for the operations to be performed in an expression?

A

Order is determined by the precedence assigned to the operators in use within the expression. Operators that have a higher precedence get evaluated first.

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

What is a control flow statement?

A

control flow statements regulate the order in which statements get executed.

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

What is a block?

A

A block is a group of zero or more statements between balanced braces and can be used anywhere a single statement is allowed

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