
Java Programming Quiz
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Aswana Lal
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
2. Valores Variáveis
Quiz
•
Professional Development
15 questions
Web Development Fundamentals
Quiz
•
Professional Development
10 questions
Pemrograman C++ Dasar
Quiz
•
Professional Development
10 questions
Java Collections
Quiz
•
Professional Development
15 questions
Mastering HTML5 and CSS
Quiz
•
Professional Development
15 questions
Quiz z zapytań SQL
Quiz
•
Professional Development
20 questions
IT ERA Internet and web
Quiz
•
Professional Development
20 questions
Networking Basics and Administration
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
