Which two statements are true?

Given the for loop construct: Which two statements are true?

Given the for loop construct: Which two statements are true?

A.
The expression expr1 is optional. it initializes the loop and is evaluated once, as the loop
begin.

B.
When expr2 evaluates to false, the loop terminates. It is evaluated only after each
iteration through the loop.

C.
The expression expr3 must be present. It is evaluated after each iteration through the
loop.

D.
This is not the only valid for loop construct; there exits another form of for loop
constructor.



Leave a Reply 12

Your email address will not be published. Required fields are marked *


imyrta

imyrta

Answer: A, D

Explanation:

B is partially true because the expression is evaluated even at the beginning of the loop.
C i wrong because expr3 is optional.

D is correct because we have other forms of writing for loops:

int array[] = {1, 2, 3};
for(int i : array){
}

Venk Hatta

Venk Hatta

Completed 1Z0-803 exam few days ago! Scored 90% (the passing score is 63% now)!!

Had 70 questions in my actual 1Z0-803 test.

1. Most of the questions are on Giving Code … tell the result, insert CODE, choose the best option …etc.

2. Only few questions on Java: advantages of the Java exception mechanism, benefits of using ArrayList over array, valid types for switch, Java Exception classes, two-dimensional array, improve the encapsulation of a class, java class declaration … and so on.

Used valid 1Z0-803 dumps from PassLeader (http://www.passleader.com/1z0-803.html) (272q VCE and PDF), almost all questions were same as my 1Z0-803 exam, valid enough for passing until now!