IU Bloomington Evaluation Services and Testing

Indiana University
Bloomington Evaluation Services and Testing

QuizSite  Students
Quizzes · Tests · Evaluations · Surveys
Activity: Practice_Six
Student: dgerman (Adrian German)
Instructor: dgerman
Course: J201 Section: 4285
Question 1.
This an example of an infinite loop.
int count = 0;
while (count > 0) {
  System.out.println(count);
  count = count + 1;
}
Don't rush, think carefully.


Question 2.
This an example of an infinite loop.
int count = 0;
for (count = count + 1; ! (count > 0); count = count + 1) {
  System.out.println(count);
} 
Don't rush, think carefully.


Question 3.
This an example of an infinite loop.
int count = 0;
for (count = count - 1; ! (count > 0); count = count + 1) {
  System.out.println(count);
  count = count - 2;
} 
Don't rush, think carefully.


Question 4.
This an example of an infinite loop.
int count = 0;
for (count = count - 1; count <= 0; count = count - 1) {
  System.out.println(count);
  count = count + 2;
} 
Don't rush, think carefully.


Question 5.
This an example of an infinite loop.
int count = 0;
for (count = 0; count >= 0; count = count - 1) {
  System.out.println(count);
  count = count + 2;
} 
Don't rush, think carefully.


Question 6.
This an example of an infinite loop.
for (int i = 0; i < 10; i--) {
  System.out.println(i);
} 
Don't rush, think carefully.


Question 7.
This an example of an infinite loop.
for (int i = 0; i < 10; i--) {
  System.out.println(i);
  i += 3;
} 
Don't rush, think carefully.


Question 8.
This an example of an infinite loop.
for (int i = 0; i != 10; i--) {
  System.out.println(i);
  i += 3;
} 
Don't rush, think carefully.


Question 9.
This an example of an infinite loop.
for (int i = 0; i != 10; i = i + 3) {
  System.out.println(i);
} 
Don't rush, think carefully.


Question 10.
This an example of an infinite loop.
int x = 0;
if (x >= 0) {
  System.out.println(x);
  x++;
}
Don't rush, think carefully.


Click to submit your answers.   Help


This activity is available between these dates and times: 07.08.10:00-08.11.19:15
It can be submitted a total of 30 times.
If it is a scored activity, the highest non-zero score will be counted.


Screen: TAKE_QUIZ
Last updated: Thu Mar 8 13:40:07 2001
URL: https://www.indiana.edu/~best/cgi-bin/quizsite/students.pl
Comments: best@indiana.edu
Copyright 2000, BEST & The Trustees of Indiana University