
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
7 questions
Instructiuni Repetitive C++

Flashcard
•
10th Grade
3 questions
Math Test A(B)(C)(D)

Flashcard
•
9th - 12th Grade
10 questions
CODEHS Looping Unit 5 Review

Flashcard
•
9th - 12th Grade
9 questions
Java Unit 4 Iteration

Flashcard
•
11th - 12th Grade
8 questions
Warm Up- EduBlocks- Terms and Concepts

Flashcard
•
9th - 12th Grade
11 questions
Deklaracja dwuwymiarowej tablicy C++

Flashcard
•
10th Grade
5 questions
User Inputs JavaScript

Flashcard
•
10th Grade
9 questions
Python Review 5/23

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade