JFo 2-2 Flashcards

1
Q

A program is read line by line, one at a time. (True or false?)

A

True

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

Pauses code execution; check the current state of the program, also help debug

A

Breakpoints

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

Breakpoints affect code execution when?

A

When code is run with the debugger

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

Breakpoints can’t affect code execution when?

A

When code is run normally

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

How to set breakpoints

A

point cursor in a number, in the left margin, just click to set or remove breakpoint.

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

It is required to end a statement in a code line

A

Semi-colon (;)

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

It is a space between words, a blank line, an indentation before a line of code

A

Whitespace

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

What do you call a code within curly braces?

A

Block of code

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

Single-line comments in java start with/end with?

A

Start with two slashes (//), end when the line ends

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

Multi-line comments in java start with/end with?

A

start with /*, end with */

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