
Java Programming Quiz
Authored by Aswana Lal
Information Technology (IT)
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which component is responsible to optimize reusable byte code conversion to machine code?
Class Loader
Interpreter
JIT Compiler
Byte Code Verifier
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output: public static void main(String args[]) { int age; System.out.println(age); }
0
garbage value
compilation error : variable needs to be initialized before use
2147483647
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of these values can a boolean variable contain?
true
false
0
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
identifiers cannot start with __________
character
digit
_
$
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output: public class Demo{ public static void main (string args[]){ int a =10,b=9; System.out.println(a
true
false
10
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public static void main(String args[]){ int i=10; if(i) System.out.println("Hello"); else System.out.println("Bye"); }
Hello
Compilation error: incompatible types: int cannot be converted to boolean
Bye
runtime error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If an arithmetic expression contains variables of int , byte , and short data types , what will be the data type of its result?
int
byte
float
short
Access all questions and much more by creating a free account
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
JavaScript Quizz
Quiz
•
Professional Development
10 questions
GO2 & FE21! Javascript Fundamental
Quiz
•
Professional Development
14 questions
Quiz Penggunaan Bootstrap untuk Layout Web
Quiz
•
Professional Development
17 questions
Data Science Quiz 1
Quiz
•
Professional Development
20 questions
Frontend - CTO Cup
Quiz
•
Professional Development
10 questions
Тест по языку Python
Quiz
•
Professional Development
10 questions
[FE] Ice Breaking - Object-Oriented Programming (OOP) with Class
Quiz
•
Professional Development
10 questions
Workshop Fake data with Postman
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...