Components of a Computer
Memory & Storage
Anatomy of a Java program
Errors
100

Mouse, keyboard, touchscreen,...

Input devices

100

Computers store information in a sequence of ____.

Bits

100

True or False:

Java is case-sensitive.

True

100

These are the three types of programming errors.

Syntax errors, Runtime errors, and Logic errors.

200

This is the subsystem that interconnects the components of a computer.

Bus

200

Number of bits in a byte.

8

200

This is a conventional Java class name.

a) myProgram

b) MyProgram

c) myprogram

d) My Program

b) MyProgram

200

public class Errors {

  public static void main(String[] args) {

    System.out.println(13 / 0);

  }

}

Runtime error

Exception in thread "main" java.lang.ArithmeticException: / by zero

300

These are the three categories of programming languages.

Machine language, Assembly language, High-level language.

300

USB flash drives, floppy disks, hard drives,...

Storage devices

300

Every statement in Java ends with one of these.

;

300

public class Errors {

  public static main(String[] args) {

    System.out.println("Hello World!");

}

Syntax error

Main.java:2: error: invalid method declaration; return type required

    public static main(String[] args) {

^


400

This is the difference between resolution and dot pitch.

Resolution: The number of pixels of the display device (monitor).

Dot pitch: The space between the pixels in millimeters.

400

This type of memory is said to be volatile.

Random Access Memory (RAM)

400

Not a Java keyword:

a) public 

b) static

c)  end

d) void

c)  end

400

public class Errors {

  public static void main(String[] args) {

    System.out.print("100 degrees Celsius in Fahrenheit is: ");

    System.out.println((9 / 5) * 100 + 32);

  }

}

Logic error

Output will be "100 degrees Celsius in Fahrenheit is: 132"

500

These are a computer's six hardware components.

Storage Devices, Memory, CPU, Communication Devices, Input Devices, and Output Devices.

500

The minimum memory unit.

Byte

500

Describe the difference between print and println

println prints a line and then returns to a new line. 

print does the same but doesn't go to a new line.

500

public class errors {

  public static void main(string[] args) {

        System.out.print("Here are examples of some common errors: ");

        System.out.println(21 / 0);

        System.out.print("75% of 100 is ");

        System.out.println(100 * (3 / 4));

  }

}

1. public static void main(string[] args) { - Syntax

2. System.out.println(21 / 0); - Runtime

3. System.out.println(100 * (3 / 4)); - Logic

M
e
n
u