Create Software Components 

Using Java Level 2

 

 

Course Info

Scheme

Resources

Tutorials

Java Demos

Utilities

Links


 

    Quiz 6 - Answers

Program Flow Control

 

Question 1.   

(b) false

Question 2.         

(a) true

Question 3.         

(a) true

Question 4.   

(a) true

Question 5.         

(a) false

Question 6.         

(a) x = 6

Question 7.         

(c) expressions 3

Question 8.    

(a) Hello

Question 9.         

(b) Equal

Question 10.   

(c) Answer is 27

Question 11.   

(b) 11

Question 12.   

(d) The code doesn't compile since the scope of i is limited to the for loop.

The answer would have been   i + k = 8

if i had been declared outside the loop.

Question 13.   

(c)   for(int i=2; i==1; i++){do something...}

Question 14.   

(d) for(int i=2; i!=1; i++){

Question 15.   

(a)   for(int i=1; i<=10; i++){

 

        

 

  Site Home 

Java Home   

  Forum  

Course Info

Welcome

Overview

Assessment

Qualification

Scheme of Work

Assignments

Resources

Information

Blackboard

Learning Center

Web Materials

Reading

Java Demos

Utilities

Links

Lecture Materials

Tutorials & Notes

Exercises

Activities

Quizzes

 

Site Home

Top

Unit Home

ADR 2002