
Java Programming Quiz 2
Quiz
•
Engineering
•
Professional Development
•
Practice Problem
•
Hard
Zohaib Hasan
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for a Java source file?
.class
.java
.exe
.jar
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about writing Java code?
Java is case-insensitive
Class names must match the filename
Java allows multiple public classes in a single file
A Java program must have a function named run()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct naming convention for Java class names?
camelCase
UPPERCASE
PascalCase
snake_case
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct main method declaration in Java?
public static void Main(String args[])
static public void main(String[] args)
public void static main(String args)
public static void main()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid identifier in Java?
_myVariable
$myVar
123abc
myVar123
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement about Java identifiers is correct?
Identifiers can start with a digit
Identifiers can use special symbols like @ and #
Identifiers are case-sensitive
Java has a predefined list of identifiers
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the size of int in Java?
2 bytes
4 bytes
8 bytes
Depends on the system
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
RME Review - DOL Motor Starting
Quiz
•
Professional Development
20 questions
Prueba Analista de Tecnología
Quiz
•
Professional Development
16 questions
CISCO PLACEMENT PREPARATION TEST 5 @ 29/3/25 St.JOSEPH'S
Quiz
•
Professional Development
15 questions
MCQ on Innovation & Creativity
Quiz
•
Professional Development
17 questions
3003 LO4 13 RCDs Resistor Values and Test Currents
Quiz
•
Professional Development
20 questions
Egzamin zawodowy styczeń 2024 - PART 6
Quiz
•
Professional Development
20 questions
Quiz sobre Manufatura Tradicional x Avançada
Quiz
•
Professional Development
17 questions
Safework quizizz
Quiz
•
Professional Development
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
Disney Characters
Quiz
•
Professional Development
20 questions
Customer Service
Quiz
•
Professional Development
10 questions
Food Idioms
Quiz
•
Professional Development
20 questions
NCCER Power Tools Quiz
Quiz
•
Professional Development
