Java Test 1 β Very Easy Level Welcome to your Java Test 1 β Very Easy Level1. What is the correct way to start a Java program? A) function main() B) void start() C) public static void main(String[] args) D) main() None 2. Which of the following is a valid Java variable declaration? A) int = number 5; B) int number = five; C) int number = 5; number int = 5; None 3. What does the following print?System.out.println(3 + 4); A) 34 B) 7 C) 3 + 4 D) Error None 4. Which data type is used to store text? A) char B) int C) String D) float None 5. Which symbol is used to end a statement in Java? A) : B) ; C) . D) , None 6. What does System.out.println("Hello"); do? A) Prints System.out.println("Hello"); B) Prints Hello without a newline C) Prints Hello and moves to the next line D) Throws an error None 7. Which keyword is used to create a class in Java? A) object B) new C) class D) def None 8. How do you write a single-line comment in Java? A) # comment B) C) // comment D) /* comment */ None 9. What does int x = 5 / 2; produce? A) 2.5 B) 2 C) Error D) 3 None 10. Which keyword is used to create a new object in Java? A) class B) object C) new D) this None Time's upDid you like it? Donβt keep it to yourself β share it like juicy gossip! π