
Java CH4 - Control Statements EXIT

Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

8 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Boolean values are: True / False, Yes / No, Right / Wrong
Back
True / False
2.
FLASHCARD QUESTION
Front
If you are checking the equality of two values, you should use:
Back
==
3.
FLASHCARD QUESTION
Front
How would you check for inequality? Options: =!, !=
Back
!=
4.
FLASHCARD QUESTION
Front
Java supports six relational operators that are used to make comparisons: ==, <, >, <=, >=, !=. True or False?
Back
True
5.
FLASHCARD QUESTION
Front
Is this code segment correct?
if(quizScore == 10);
System.out.println("Perfect score");
Back
No
6.
FLASHCARD QUESTION
Front
You should use the "if, else" when you want to do one thing or nothing.
Back
False
7.
FLASHCARD QUESTION
Front
In a for loop, the change is stated in the for loop. The loop variable is then updated at the beginning (top) of the loop before any statements are executed.
Back
False
8.
FLASHCARD QUESTION
Front
Which for loop would print out (exactly):
1 2 3 4 5 6 7 8 9
Options:
int n = 10;
for(int i; i < n; i=i+1)
{
System.out.print(i + " ");
}
,
int n = 11;
for(int i=1; i < n; i=i+1)
{
System.out.print(i + " ");
}
,
int n = 10;
for(int i=1; i < n; i=i+1)
{
System.out.print(i + " ");
}
,
int n = 11;
for(int i = 1; i < n; i=i+1)
{
System.out.print("i");
}
Back
int n = 10;
for(int i=1; i < n; i=i+1)
{
System.out.print(i + " ");
}
Similar Resources on Wayground
7 questions
Python - Flow control

Flashcard
•
11th Grade
10 questions
Ôn tập chủ đề F

Flashcard
•
KG
7 questions
[862] Esp_Unity M1L2

Flashcard
•
KG
8 questions
Python Casting & Data Types

Flashcard
•
9th - 12th Grade
11 questions
for and while loops level 2

Flashcard
•
9th - 12th Grade
9 questions
STRING MANIPULATION (PYTHON)

Flashcard
•
11th - 12th Grade
10 questions
CS Python Fundamentals Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
10 questions
CMP128 Java Ch. 04 Loops Pt. 2

Flashcard
•
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