
Java Pop Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Jakobi Gorham
Used 7+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which is the correct way of writing main() function in Java?
public static void main(String args[ ])
public void main(String args[ ])
public static main(String args[ ])
public void static main(String args[ ])
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which is the correct way of writing println() function in Java?
System.out.println("Message = " + variable);
System.println("Message = " + variable);
System.output.println("Message = " + variable);
System.println.out("Message = " + variable);
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a valid variable declaration in Java?
int 1myInteger = 0;
int int = 0;
Int my Integer = 0;
int myInteger = 0;
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a class in object-oriented programming?
A class is a template with data and methods
A class is a package
A class is the declared object in memory
A class is a reference object in memory
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the problem with this code?
Line 1: String myName = "Mary Jacobson";
Line 2: System.out.println ("My name is " + myname);
Line 2: should be System.out.println ("My name is myName");
Line 2: should be System.out.println ("My name is "+ myName);
Line 2: should be System.out.display("My name is " + myname);
There is no problem with the code
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How is a single line comment created in Java?
Two backward slashes at the beginning indicate that the line is a comment
Two forward slashes at the beginning indicate that the line is a comment.
A forward slash followed by two asterisks at the beginning indicate that the line is a comment.
A forward slash followed by an asterisk at the beginning indicate that the line is a comment.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify types of error that exist in this method program:-
Logic error
runtime error
syntax error
Similar Resources on Wayground
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
10 questions
Network
Quiz
•
10th - 11th Grade
10 questions
1.8 Open Source & Closed Source TRUE or FALSE
Quiz
•
10th Grade
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
