Unit 4 Flashcard 2

Flashcard
•
Computers
•
9th - 12th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Loops Flashcard

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

Flashcard
•
9th - 12th Grade
12 questions
AP CSP Loops Practice

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

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

Flashcard
•
9th - 12th Grade
15 questions
Finch/micro:bit Knowledge Check

Flashcard
•
9th - 12th Grade
15 questions
1st Semester Final Review

Flashcard
•
9th - 12th Grade
14 questions
Javascript Control Structures Practice

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th 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
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade