Java Quiz 1

Quiz
•
Computers
•
University
•
Medium
Asaithambi Jay
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which statement is true about Java
Java is a sequence-dependent programming language
Java is a code dependent programming language
Java is a platform-dependent programming language
Java is a platform-independent programming language
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which component is used to compile, debug and execute the java programs?
JDK
JRE
JVM
JIT
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these cannot be used for a variable name in Java?
identifier & keyword
identifier
keyword
none
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java code?
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
32
24
25
33
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
Compiler error
Runtime error
6 6
5 6
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the error in the following Java code?
byte b = 50;
b = b * 50;
b cannot contain value 50
b cannot contain value 100, limited by its range
No error in this code
* operator has converted b 50 into int, which can not be converted to byte without casting
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
0 256
0 64
256 0
64 0
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
OOP

Quiz
•
University
25 questions
Understanding Loops in Programming

Quiz
•
University
19 questions
Java Basic 1 - Quiz

Quiz
•
8th Grade - University
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
20 questions
C-QUEST QUIZ BEE

Quiz
•
University
20 questions
Code Junction 4

Quiz
•
University
20 questions
Algoritma Pemrograman

Quiz
•
University
20 questions
Review JavaScript

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University