16. When a multidimensional array is accessed, each array index is

A. separated by commas
B. surrounded by brackets and separated by commas
C. separated by commas and surrounded by brackets
D. surrounded by brackets


Correct Answer:  D. surrounded by brackets

17. To create a variable, you must assign _____ to it

A. a data type
B. a name
C. both a data type and a name
D. the word var


Correct Answer:  C. both a data type and a name

18. You indicate a variable is a pointer variable by placing a(n) _____ in front of the variable’s name

A. asterisk
B. ampersand
C. dollar sign
D. exclamation point


Correct Answer:  A. asterisk

19. A function can make_________

A. one throw
B. one throw of each scalar type
C. one throw of each programmer-defined type
D. as many throws of as many types as necessary


Correct Answer:  D. as many throws of as many types as necessary

20. A default exception block must be placed _____

A. first among the catch blocks
B. last among the catch blocks
C. globally, at the top of the file
D. at the end of all code in the program


Correct Answer:  B. last among the catch blocks

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × five =