Unit 4 Flashcard 2
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

17 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which general for loop definition is written correctly? Options: for(true) { // code }, if(i<5) { // code }, for(int i = 0; i < count; i++) { // code }, while(condition) { // code }
Back
for(int i = 0; i < count; i++) { // code }
2.
FLASHCARD QUESTION
Front
Why do we use for loops in Java?
Back
To repeat something for a fixed number of times
3.
FLASHCARD QUESTION
Front
Why do we use while loops in Java?
Back
To repeat some code while a condition is true
4.
FLASHCARD QUESTION
Front
Which general while loop definition is written correctly? while(x is true) { // code } , if(i<5) { // code } , while(int i = 0; i < count; i++) { // code } , while(condition) { // code }
Back
while(condition) { // code }
5.
FLASHCARD QUESTION
Front
What is NOT a reason a programmer should indent their code?
Helps show the structure of the code,
Easier for other people to understand,
Indenting is a key part of good programming style,
Back
Helps shorten the code
6.
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
7.
FLASHCARD QUESTION
Front
Why do we use if statements in Java?
Back
To do something only if a condition is true
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
15 questions
Parts of speech: general review
Flashcard
•
11th - 12th Grade
10 questions
Chapter 2 What The Fact Vocabulary
Flashcard
•
11th Grade
11 questions
Unit 1 | Topic 2 | Key Terms - Flashcards
Flashcard
•
9th - 12th Grade
10 questions
EURES and European Job Mobility
Flashcard
•
KG - University
16 questions
Từ vựng cơ bản (g9)
Flashcard
•
9th - 12th Grade
15 questions
Unit 4 Test Review
Flashcard
•
10th Grade - University
15 questions
Units 1 - 5 Review
Flashcard
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade