Unit 4 Flashcard 2

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz 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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
AP CSP Unit 5 Review: Lists, Loops and Traversals

Flashcard
•
9th - 12th Grade
15 questions
CodeHS 3.1 Boolean Expressions-4.2 For Loops Review

Flashcard
•
9th - 12th Grade
13 questions
Loops in JavaScript

Flashcard
•
9th - 12th Grade
15 questions
PCS Typing Questions MC

Flashcard
•
9th - 12th Grade
13 questions
java variables 1

Flashcard
•
9th - 12th Grade
15 questions
Arduino Lesson 3: IF and IF-ELSE

Flashcard
•
9th - 12th Grade
15 questions
Video Game Design: 2nd 9 Weeks Test Review

Flashcard
•
9th - 12th Grade
15 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
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
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade