
Java CH4 - Control Statements EXIT

Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Wayground 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
8 questions
Unit #4- Loops and Nested Loops

Flashcard
•
9th - 12th Grade
12 questions
CSP-A114 Flashcard

Flashcard
•
9th - 12th Grade
5 questions
Arrays

Flashcard
•
11th Grade
7 questions
Java Data Types Practice

Flashcard
•
12th Grade
9 questions
PYTHON -- Lists (short)

Flashcard
•
9th - 12th Grade
7 questions
[862] Esp_Unity M1L2

Flashcard
•
KG
11 questions
2832 and 6861 Programming Flashcard

Flashcard
•
9th - 12th Grade
9 questions
CSA Semester 2 Final

Flashcard
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade