NAME
CSE 214: Mid Term Exam
Tu, Nov 4, 3:30—4:48
Open Notes, Open Books
The exam consists of seven problems
Answers not appearing in designated spaces WILL NOT be graded
| Decimal | Binary | Octal | Hexadecimal |
| 17 | |||
| 10101 | |||
| 11 | |||
| A3 | |||
ASCII octal codes:
|
|
ASCII hexadecimal codes:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 2 | sp | ! | " | # | $ | % | & | ’ | ( | ) | * | + | , | - | . | / |
| 3 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
| 4 | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
| 5 | P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ | _ |
| 6 | ‘ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o |
| 7 | p | q | r | s | t | u | v | w | x | y | z | { | | | } | ~ | |
| Field Summary
| ||
| static int | one | holds the digit 1 |
| int | two | holds the digit 2 |
| Constructor Summary
| ||
Exam() | ||
| Method Summary
| ||
| static int | getThree() | produces the digit 3 |
| int | getFour() | produces the digit 4 |
The incomplete program
produces the following output.
Add the missing code fragments to the given program. (It is not allowed to remove code from the program.)
The program uses a class named Hidden. Show the details of the fields, constructors, and methods of the Hidden class that are used in the program.
| Field Summary
| |
| Constructor Summary
| |
| Method Summary
| |