
B4 - The Single Branch if Statement
Quiz
•
Other
•
University
•
Easy

Ahmetcan türk
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
valuate the following expression:
1 + 2 == 3
true
false
unpredictable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following expression:
25 < 5 * 5
true
false
unpredictable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following expression:
8 + 1 >= 3 * 3
true
false
unpredictable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code fragment write to the monitor?
int height = 10;
if ( height <= 12 )
System.out.print("Low bridge: ");
System.out.println("proceed with caution.");
Nothing is written.
Low bridge:
proceed with caution.
Low bridge: proceed with caution.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code fragment write to the monitor?
int height = 13;
if ( height <= 12 )
System.out.print("Low bridge: ");
System.out.println("proceed with caution.");
Nothing is written.
Low bridge:
proceed with caution.
Low bridge: proceed with caution.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code fragment write to the monitor?
int depth = 8 ;
if ( depth >= 8 )
{
System.out.print("Danger: ");
System.out.print("deep water. ");
}
System.out.println("No swimming allowed.");
Danger:
Danger: deep water.
Danger: deep water. No swimming allowed.
deep water. No swimming allowed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following expression:
10.0 + 0.10 < 11.0
true
false
unpredictable
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
TARIFF MANAGEMENT 7 QUIZ 2
Quiz
•
University
10 questions
QUIZ KOMBEL KHD GEYER
Quiz
•
University
10 questions
Soal Geo-Politik Dan Geo-Ekonomi
Quiz
•
7th Grade - Professio...
15 questions
Introduction to System Administration
Quiz
•
University
10 questions
ecommerce quiz midterm
Quiz
•
University
10 questions
QUIZ NO. 7
Quiz
•
University
10 questions
Object Oriented Programming Quiz 2
Quiz
•
University
15 questions
KUIS ASC
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
