
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
Similar Resources on Wayground
13 questions
Loops in JavaScript

Flashcard
•
9th - 12th Grade
10 questions
Java Programming Basics

Flashcard
•
9th - 12th Grade
9 questions
Reading and Writing Files with Python Intro

Flashcard
•
9th - 12th Grade
10 questions
Vocabulary Flashcard 4

Flashcard
•
9th Grade - University
13 questions
IST_Final Review Machine Language

Flashcard
•
11th Grade
12 questions
java while loop

Flashcard
•
9th - 12th Grade
8 questions
Java CH4 - Control Statements EXIT

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

Flashcard
•
9th - 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
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th 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