
Unit 4 Flashcard 2 Reduced 25%
Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

13 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Why do we use for loops in Java?
Back
To repeat something for a fixed number of times
2.
FLASHCARD QUESTION
Front
Which general while loop definition is written correctly? Options: while(x is true) { // code } , if(i<5) { // code } , while(int i = 0; i < count; i++) { // code } , while(condition) { // code }
Back
while(condition) { // code }
3.
FLASHCARD QUESTION
Front
What is NOT a reason a programmer should indent their code? Options: Helps show the structure of the code, Easier for other people to understand, Indenting is a key part of good programming style, Helps shorten the code
Back
Helps shorten the code
4.
FLASHCARD QUESTION
Front
To maintain good style, where should brackets go in Java programming? Options: Before defining the run method, Always on their own line, Right after defining a method, Two brackets per line
Back
Always on their own line
5.
FLASHCARD QUESTION
Front
Why do we use if statements in Java?
Back
To do something only if a condition is true
6.
FLASHCARD QUESTION
Front
What does an if/else statement look like in Java? Options: if(condition) { // code } else { //code }
Back
if(condition) { // code } else { //code }
7.
FLASHCARD QUESTION
Front
If statements, if/else statements, for loops, and while loops are examples of _______ structures.
Back
control
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
7 questions
CSS Rules Flashcard-unit 4 CodeHS
Flashcard
•
7th Grade - University
10 questions
ReactJS Flashcards
Flashcard
•
KG
4 questions
Seasons
Flashcard
•
KG
10 questions
DNA Flashcards
Flashcard
•
9th - 12th Grade
9 questions
Patrik test
Flashcard
•
KG
7 questions
2025 S3/S4 CCKS Nutri in Humans Pt 2 Hormones
Flashcard
•
8th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade