You are on page 1of 7

12.06.

2015
ANSWERS
1. What is the result in New String after the following code has executed?

a) hello world!

b) hELLO wORLD!

c) HELLO WORLD!

d) hello world1

2. Which of the methods illustrated below will terminate the While Loop
when an error occurs?
a) I
b) II
c) III
d) IV
e) I & II
f) III & IV
3. What is the value in Feedback Answer after the following code has
executed?

a) 6
b) 8
c) 16
d) 32
4. What is the result in New Array after the following code has executed?

a) a 1-D Array of {4, 7, -3, 3, -2, 0, 0}


b) a 1-D Array of {4, 7, -3, 3, -2}
c) a 1-D Array of {4, 7, -3, 3, -2, 4, 7}
d) None of the above
5. What is the result in Output Array after the following code has executed?

a) a 1-D Array of {4, 3, 0}


b) a 1-D Array of {2, 4}
c) a 1-D Array of {2, 5, 1}
d) a 1-D Array of {5, 3}
6. If Number equals -49, then what is the result in Square Root Value after the
following code has executed?

a) -7
b) An error will occur and the code will not execute because Number is
negative.
c) -99999, and a dialog box with an error message will display
d) 7

7. What is the value in Result after the following code has executed?
a) VOLTS DC +2
b) 50
c) 250
d) VOLTS DC +2.

8. Which of the following statements is not true regarding the figure below?

a) It is not necessary to wire the count (N) terminal because auto-


indexing is enabled.
b) Elements of Input Array enter the loop one at a time.
c) Output Array is the same size as Input Array.
d) If you disable auto-indexing on the right side of the For Loop, the
output is still a 1-D Array.
e) All of the above statements are true

9. What is the result in Array after the following code has executed?
a) a 1-D array of {1, 2, 1, 0, 8, 6, 2}
b) a 1-D array of {1, 4, 3, 2, 1, 0, 8, 6, 2}
c) a 1-D array of {1, 3, 2, 1, 8, 6, 2}
d) a 1-D Array of {1, 8, 6, 2}

10. Which of the following could generate the following Waveform Graph?

a)
b)

c)

d)
ANS: A

You might also like