
Java Unit 4 Iteration

Flashcard
•
Computers
•
11th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is considered a pre-test loop? do while, if-while, while, if-else
Back
while
2.
FLASHCARD QUESTION
Front
What is the output of the code above?
Back
1 2 4 8 16 32
3.
FLASHCARD QUESTION
Front
What will be the output of the code? Options: ERROR, 5 4 3 2 1 Blast off, 5 Blast off 4 Blast off 3 Blast off 2 Blast off 1 Blast off, Blast off
Back
5 4 3 2 1 Blast off
4.
FLASHCARD QUESTION
Front
How many times will the inner for loop iterate?
Back
6, six
5.
FLASHCARD QUESTION
Front
How many stars are printed? Options: 7, 3, 4, 5, Infinite Loop
Back
4
6.
FLASHCARD QUESTION
Front
What will the following program segment display?
for(int a = 2; a <= 10; a += 3)
System.out.print(a+"");
Options: 2 5 8, 2 5, 2 5 8 11, 2
Back
2 5
7.
FLASHCARD QUESTION
Front
What does the following loop print?
for(int i = 1; i<3; i++)
{ System.out.print(i); }
Back
12
8.
FLASHCARD QUESTION
Front
What will this code display?
int i = 0;
while (i < 5) {
System.out.print (i + ", ");
i ++;
} ;
Back
0, 1, 2, 3, 4,
9.
FLASHCARD QUESTION
Front
What will be the output of the following program?
class ForSample
{
public static void main(String s[])
{
for(int i = 10; i <= 5; i-- )
{
System.out.println("i = " + i );
}
}
}
Back
No output
Similar Resources on Wayground
6 questions
C Programming - Control Flow

Flashcard
•
KG
11 questions
Deklaracja dwuwymiarowej tablicy C++

Flashcard
•
10th Grade
11 questions
Java Loops

Flashcard
•
11th Grade
5 questions
User Inputs JavaScript

Flashcard
•
10th Grade
7 questions
Instructiuni Repetitive C++

Flashcard
•
10th Grade
9 questions
Loops - code.org

Flashcard
•
12th Grade
8 questions
Warm Up- EduBlocks- Terms and Concepts

Flashcard
•
9th - 12th Grade
10 questions
CODEHS Looping Unit 5 Review

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade