Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
java-control structures-vlits

Quiz
•
Computers
•
1st Grade
•
Hard
kolla vivek
Used 44+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
do-while
while
for
none of the mentioned
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the data type that can be used with case statement in switch control structure?
The double data type.
The float data type.
The char data type.
The String data type.
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following will be the output of the above program?
public class Compute {
public static void main (string args [ ]){
int result, x ;
x = 1 ;
result = 0;
while (x < = 10) {
if (x%2 == 0)
result + = x ;
+ + x ;
}
System.out.println(result) ;
}
}
55
30
25
35
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
class Test {
public static void main(String[] args){
int i = 0, j = 9;
do {
i++;
if (j-- < i++) {
break;
}
} while (i < 5);
System.out.println(i + "" + j);
}
}
44
55
66
77
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
public class Test{
public static void main(String args[]){
int i = 0, j = 5 ;
for( ; (i < 3) && (j++ < 10) ; i++ ){
System.out.print(" " + i + " " + j );
}
System.out.print(" " + i + " " + j );
}
}
0 6 1 7 2 8 3 8
0 6 1 7 2 8 3 9
0 6 1 5 2 5 3 5
Compilation Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
class Test{
public static void main(String args[]){
int x=7;
if(x==2); // Note the semicolon
System.out.println("NumberSeven");
System.out.println("NotSeven");
}
}
NumberSeven NotSeven
NumberSeven
NotSeven
Error
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
public class Test{
public static void main(String args[]){
int i, j;
for(i=1, j=0;i<10;i++) j += i;
System.out.println(i);
}
}
10
11
9
20
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
elmelet_1-4

Quiz
•
1st Grade
8 questions
Interrupt for PIC18F

Quiz
•
1st - 5th Grade
7 questions
progC1

Quiz
•
1st - 3rd Grade
10 questions
repaso java

Quiz
•
1st - 5th Grade
10 questions
ECA quiz exam

Quiz
•
1st - 5th Grade
12 questions
AppsLab_Q3

Quiz
•
1st Grade - Professio...
15 questions
Тест №1

Quiz
•
1st Grade
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
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
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade