Errors
About the language
Formatting
User input
100

Find the error:

system.out.println("Hello world!");

System needs to be capitalised

100

What kind of programming language is java?

High-level, object oriented

100

What is it called between curly braces in code? 

  public static void main(String[] args) {

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

 }

Block of code

100

What is the Scanner import statement

import java.util.Scanner

200

Find the error:

String sum, totalGrade;

Variable types int or double are made for these kinds of data, not String

200
The variable String covers this kind of data

Text (strings of text that can include letters, numbers, and symbols)

200
What ends a line of code in java?

Semicolon (;)

200

How do you recognise user input is needed on an assignment?

Green text in the example code

300

Find the error:

class Main {

  public static void main(String[] args) {

Int birthYear, age;

  }

}

int should not have a capital

300
All java source code is stored in this file extension

.java

300

Where do imports go?

Top of code, above the main method
300

How would you declare this variable:

 age

int age;

400

Find the error:

Scanner keyboard = Scanner(System.in);

Missing "new" after =

400

An IDE is

Integrated Development Environment

400

What is the entry point of code?

Main method

400
How do you close the Scanner

keyboard.close();

500

Fine the error:

class Main {

  public static void main(String[] args) {

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

  }

Need one more bracket to close out block from "class Main { "

500

A class file is produced even with a sentax error (true/false)

false

500

What concatenates pieces of code?

+


500

What do we name the Scanner as in this class?

keyboard

M
e
n
u