
Loops and operators java

Quiz
•
English
•
University
•
Hard
Abdul Rahman
Used 2+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to get 'char' input from the user?
next();
nextLine();
next(0);
next.charAt(0);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the encoding system used in 'char' datatype in java
Unicode
ASCII
Jcode
JavaEncoding
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for(int i=0;i++ < 5;i++){
System.out.print(i);
}
135
error
12345
1234
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for(int i=0;i< 5 || i++< 7;){
System.out.print(i);
}
135
1234567
01234567
infinite loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a=5;
System.out.println(a++ + ++a - a-- - --a);
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if(1){
System.out.println("hello");
}
error
hello
no output
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a=5;
if(a==5){
System.out.println("five");
}
a=6;
else{
System.out.println("fivefive");
}
error
five
fivefive
5
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Inuit

Quiz
•
4th Grade - University
15 questions
Part of Body

Quiz
•
University
10 questions
Anatomy and Physiology Vocabulary

Quiz
•
University
15 questions
Ancient India Caste System

Quiz
•
6th Grade - University
15 questions
Views of the Solar System

Quiz
•
5th Grade - University
14 questions
Hero's Journey

Quiz
•
KG - University
10 questions
Vocabulary Review: Digital Learning & 1.L2

Quiz
•
University
15 questions
Prodigy

Quiz
•
2nd 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