
Java Programming Quiz

Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Aswana Lal
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Quiz sobre Programação Orientada a Objetos

Quiz
•
Professional Development
20 questions
Curso Básico de Programación Android en Java-Quizizz 01

Quiz
•
Professional Development
10 questions
Dsquad

Quiz
•
Professional Development
12 questions
Quiz sobre Sintaxe Básica em C#

Quiz
•
Professional Development
20 questions
HTML, CSS, Terminal & JavaScript

Quiz
•
Professional Development
20 questions
Quiz 1: Exception Handling

Quiz
•
Professional Development
20 questions
Fundamentos Python e Condicionais

Quiz
•
Professional Development
19 questions
Quiz on Lambda Expressions and Functional Interfaces

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade