
Java Programming Quiz 2

Quiz
•
Engineering
•
Professional Development
•
Hard
Zohaib Hasan
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
RME Review - DOL Motor Starting

Quiz
•
Professional Development
25 questions
Quiz on 8051 Microcontroller

Quiz
•
Professional Development
20 questions
Java Programming Quiz 1

Quiz
•
Professional Development
20 questions
C02 : INDUSTRIAL AUTOMATION SYSTEMS INTEGRATION

Quiz
•
Professional Development
15 questions
PA Prerequisites

Quiz
•
Professional Development
15 questions
r lab

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
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Engineering
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
11 questions
complex sentences

Quiz
•
Professional Development
8 questions
Ötzi the Iceman: A 5,000-Year-Old True Crime Murder Mystery | Full Documentary | NOVA | PBS

Interactive video
•
Professional Development
1 questions
Savings Questionnaire

Quiz
•
6th Grade - Professio...
6 questions
Basics of Budgeting 7

Quiz
•
6th Grade - Professio...
20 questions
Movies

Quiz
•
Professional Development