You are on page 1of 4

Course: Easy-to-follow Java programming

The quiz questions


Answer the questions below to review what you have learned in Video 3. You will
find the right answers after the questions in the solution section.

1. Write the code templates in front of the appropriate structures.

switch (var) {
case val: ... break;
default:
}

while (...) {...}

if (...) { ... } else { ... }

break

for(int i = 0; i < 10; i++) {...}

public static void main(String[] args) {...}

continue

System.out.println(””);

if (...) {...}

do {...} while (...);

2. Fill in the missing cells of the following table.

Keys pressed Operation done

Save the file

Cut to clipboard
CTRL+V

Duckademy IT courses – www.duckademy.com


Complete name

Copy to clipboard
CTRL+S

Hotfix (if NetBeans has an idea)


SHIFT+KEY

ALT+SHIFT+F

Undo

Run
CTRL+SHIFT+UP/DOWN

3. Connect the special comments (thin border) with the appropriate meaning
(thick border).

TODO
For future
enhancement
DOIT
A known bug

FIXIT

FIXME

TOFIX

Duckademy IT courses – www.duckademy.com


----------------------------------------------------------------------------------------------------------------

The answers

1. Write the code templates in front of the appropriate structures.

sw switch (var) {
case val: ... break;
default:
}

wh while (...) {...}

ife if (...) { ... } else { ... }

br break

for for(int i = 0; i < 10; i++) {...}

psvm public static void main(String[] args) {...}

cn continue

sout System.out.println(””);

if if (...) {...}

do do {...} while (...);

2. Fill in the missing cells of the following table.

Keys pressed Operation done

CTRL+S Save the file


CTRL+X Cut to clipboard

CTRL+V Paste from clipboard

CTRL+SPACE Complete name


CTRL+C Copy to clipboard

CTRL+S Save the file

ALT+ENTER Hotfix (if NetBeans has an idea)

SHIFT+KEY Selecting area


ALT+SHIFT+F Format the file

CTRL+Z Undo
F6 Run

CTRL+SHIFT+UP/DOWN Duplicate line

Duckademy IT courses – www.duckademy.com


3. Connect the special comments (thin border) with the appropriate meaning
(thick border).

TODO
For future
enhancement
DOIT
A known bug

FIXIT

FIXME

TOFIX

Duckademy IT courses – www.duckademy.com

You might also like