Which of the following statements is true?
Segment A
int q = 5;
switch(q) {
case 1:
System.out.println(1);
case 2:
System.out.println(2);
case 3:
System.out.println(3);
case 4:
System.out.println(4);
case 5:
System.out.println(5);
default:
System.out.println("default");
}
Segment B
q = 4;
switch(q) {
case 1:
System.out.println(1);
case 2:
System.out.println(2);
case 3:
System.out.println(3);
case 4:
System.out.println(4);
case 5:
System.out.println(5);
default:
System.out.println("default");
a. The output for Segment A is:
default
b. The output for Segment B is:
4
c. The output for Segment B is:
45default
d. The output for Segment A is:
5
default
d. The output for Segment A is:
5
default
You might also like to view...
Which of the following choices is responsible for performing the routine procedural testing for each release?
A. The operator B. The developer C. The CCB D. The CIO
What is a spectrum analyzer?
What will be an ideal response?
Which of the following is NOT true in regard to calculating physical volume?
A) The basic formula for calculating volume is length*width*depth. B) If the item is not a perfect rectangle, take the average width and length. For example, if the object is 6 inches at its widest point and 2 inches at its narrowest point, use 4 inches for the width. C) If you are wrapping the item in bubble wrap, take your measurements before it is wrapped. D) If you take your measurements in inches, your final calculation will be in cubic inches. If you take them in centimeters, your final calculation will be in cubic centimeters, and so on.
For secure communication across the Internet, which protocol is used to access or post web server information?
a. HTTPS b. SHTTP c. Telnet d. STelnet