Question: Question{04}: Which statement is true about if and switch statements? A. they can be used to control the flow of your code B. they can

Question{04}: Which statement is true about "if" and "switch" statements?

A. they can be used to control the flow of your code

B. they can use combinations of logicals in their expression

C. in some situations, they can be used interchangeably

D. they can be used to selectively run lines of code based on a condition

or expression

E. all of the above

Answer{04}='';

Reason{04}='';

Question{05}: Which statement is true about the "else" and "otherwise"

A. an "else" is not required

B. they can be used to "handle" unexpected situations

C. an "otherwise" is not required

D. they both imply false (or that none of the previous expressions have

evaluated to true

E. all of the above

Answer{05}='';

Reason{05}='';

Question{06}: Which statement is true about a "for" loop?

A. its values are limited to only integer values

B. it can not be used to iterate (or loop) through characters/strings

C. it is best used when the number of loops is unknown (at design time)

D. it may be "nested" to allow for looping through multi dimensional

arrays

E. none of the above

Answer{06}='';

Reason{06}='';

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!