Case 8-2
Another colleague shares the following code with you:
 Dim strEmployees(50) As String
' Later in the code
ReDim strEmployees(65).
Which of the following lines could replace the line at the bottom of the code in the sample and retain the data in the elements 0 through 50?

A. ReDim Retain strEmployees(65)
B. ReDim Reserve strEmployees(65)
C. ReDim Restore strEmployees(65)
D. ReDim Preserve strEmployees(65)


Answer: D

Computer Science & Information Technology

You might also like to view...

________ are often used for animated images

A) JPEGs B) PNGs C) GIFs D) JPGs

Computer Science & Information Technology

(Write Your Own String Copy and Concatenation Functions) Write two versions of each string-copy and string-concatenation function in Fig 22.21. The first version should use array sub- scripting, and the second should use pointers and pointer arithmetic.

What will be an ideal response?

Computer Science & Information Technology

The ____ window is the large area under the Common toolbar where you do most of your design work.

A. editing B. coding C. saving D. helping

Computer Science & Information Technology

In order to create and manage KVM or Qemu virtual machines, a Linux system must have which of the following installed?

A. libvm B. virsh C. vmlib D. libvert

Computer Science & Information Technology