
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
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
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 Wayground
15 questions
Round 4 - Harvest

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
15 questions
II CSM A & B

Quiz
•
University
11 questions
SAINS KOMPUTER 1.3

Quiz
•
University
10 questions
Latihan1

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
QUIZ ON OPERATORS & CONTROL STATEMENTS

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade