1) What is Java primarily used for? a) Web Development b) Mobile Applications c) Game Development d) All of the above 2) Which keyword is used to define a class in Java? a) function b) class c) method d) object 3) What symbol is used to end a statement in Java? a) . (dot) b) : (colon) c) ; (semicolon) d) , (comma) 4) Which of the following is a valid Java data type? a) word b) text c) number d) int 5) What is the correct syntax to print "Hello, World!" in Java? a) echo "Hello, World!"; b) System.out.println("Hello, World!"); c) print("Hello, World!"); d) console.log("Hello, World!");

Leaderboard

Visual style

Options

Switch template

Continue editing: ?