Which operation will retrieve the item at position i in anArray?

A. anArray[i] = val;
B. val[i] = anArray[i];
C. val = anArray[i];
D. i[val] = anArray;


Answer: C

Computer Science & Information Technology

You might also like to view...

We have a file that has a name in it, but the name is written one character per line. We need to write this name to the screen. What is wrong with the following code?

ifstream fileIn; fileIn.open("file.txt"); char ch; fileIn.get(ch) while(!fileIn.eof()) { cout.put(ch); fileIn.get(ch); } a. can not use put with cout. b. our output has new lines in it. c. nothing is wrong d. eof is not a member of an ifstream object

Computer Science & Information Technology

A constructor __________.

a. always accepts two arguments b. has the return type of void c. has the same name as the class d. always has a private access specifier

Computer Science & Information Technology

The static method ________ of class String returns a formatted String.

a. printf. b. format. c. formatString. d. toFormatedString.

Computer Science & Information Technology

The minimal allowable margin settings depend on your _______.

A. printer B. columns C. sections D. orientation

Computer Science & Information Technology