Java Chapter 4 Review Questions

Quiz
•
Computers
•
Professional Development
•
Medium
Alejandro Hidalgo
Used 4+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the println statement in the following program segment display?
int x = 5;
System.out.println(x++);
5
6
0
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the println statement in the following program segment display?
int x = 5;
System.out.println(++x);
5
6
0
None of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the expression number++, the ++ operator is in what mode?
prefix
pretest
postfix
posttest
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is each repetition of a loop known as?
cycle
revolution
orbit
iteration
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is a variable that controls the number of iterations performed by a loop.
loop control variable
accumulator
iteration register variable
repetition meter
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The while loop is this type of loop
pretest
posttest
prefix
postfix
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
the do-while loop is this type of loop.
pretest
posttest
prefix
postfix
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
Linux Editing Files

Quiz
•
Professional Development
30 questions
microcontroller

Quiz
•
Professional Development
23 questions
Post Produzione-Foto

Quiz
•
University - Professi...
24 questions
CIW IBA Lesson 3 Vocabulary

Quiz
•
8th Grade - Professio...
28 questions
Linux Creating Scripts

Quiz
•
Professional Development
28 questions
Linux Review 3

Quiz
•
8th Grade - Professio...
24 questions
Unit4_Servlets_Exam1

Quiz
•
Professional Development
30 questions
Elements of Art and Principles of Design - Quiz 1

Quiz
•
10th Grade - Professi...
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