LESSON 3 Flashcards

1
Q

Makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something

A

JOPTIONPANE

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

What are the JAVA OPERATOR TYPES?

A
  • Arithmetic operators
  • Relational operators
  • Logical operators
  • Conditional operators
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the same subexpressions and at the same operator precedence level are evaluated from right to left

A

Unary operators

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

the same subexpressions and at the same operator precedence level are evaluated from left to right

A

Binary operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Statements that allows us to select and execute specific blocks of code while skipping other sections
    If statement
    If-else statement
    If-else-if statement
    Switch statement
A

DECISION CONTROL STRUCTURES

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

Specifies that a statement/block of code will be executed if and only if a certain boolean statement is true

A

IF STATEMENT

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

Used when we want to execute a certain statement if a condition is true, and a different statement if the condition is false

A

IF-ELSE STATEMENT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • The statement in the else-clause of an if-else block can be another if-else structure
  • This cascading of structures allows us to make more complex selections
A

IF-ELSE-IF STATEMENT

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

An integer or character expression

A

switch_expression

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

Unique integer or character constants

A

case_selector1, case_selector2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • If none of the cases are satisfied, this block is executed-
  • An optional part
A

DEFAULT BLOCK

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

To prevent the program from executing statements in the subsequent cases,

A

BREAK STATEMENT

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