Which statement is true about Java
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
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 Quizizz
20 questions
Programming Concepts in C

Quiz
•
University
20 questions
Web Development and Programming

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
21 questions
quiz 2nd/3rd year

Quiz
•
University
15 questions
CODE ZENITH

Quiz
•
University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I

Quiz
•
University
23 questions
OCA Unit 1

Quiz
•
11th Grade - Professi...
17 questions
Java Programming Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade