
B4 - The Single Branch if Statement
Authored by Ahmetcan türk
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
14 questions
Nervous system Quiz 1
Quiz
•
12th Grade - University
14 questions
OS MINT 22
Quiz
•
University
10 questions
quiz-1 corp gov
Quiz
•
University
12 questions
ロジックテスト (Đề kiểm tra năng lực IT)
Quiz
•
University
15 questions
ADB Quiz #1
Quiz
•
University
15 questions
Steering Gear Testing Quiz
Quiz
•
University
15 questions
NAV LEC QUIZ 8 SAILING DIRECTION
Quiz
•
University
10 questions
AUTOMOBILE TEST
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University