Which statement is true about Java?

Swarnandhra Java- Quiz-1

Quiz
•
Computers
•
University
•
Hard
Pravin fernando
Used 2+ times
FREE Resource
12 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
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
33
24
25
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Modulus operator, %, can be applied to which of these?
Integers
Floating – point numbers
Both Integers and floating – point numbers
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these statements are incorrect?
Assignment operators are more efficiently implemented by Java run-time system than their equivalent long forms
Assignment operators run faster than their equivalent long forms
Assignment operators can be used only with numeric and character data type
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
class increment{
public static void main(String args[]){
double var1 = 1 + 5;
double var2 = var1 / 4;
int var3 = 1 + 5;
int var4 = var3 / 4;
System.out.print(var2 + " " + var4);}}
1 1
0 1
1.5 1
1.5 1.0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these selection statements test only for equality?
if
switch
if and switch
None of the mentioned
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
do..while
while
for
all the mentioned
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
002_Java Methods

Quiz
•
12th Grade - University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
JAVA operators

Quiz
•
University
10 questions
Java Static

Quiz
•
University
8 questions
Java operators

Quiz
•
University
10 questions
Inheritance

Quiz
•
University
10 questions
exception

Quiz
•
University
9 questions
Java Programming Structures

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