To indicate the passing of an array in a prototype or header function you must have:

A. data type variable name [ ].
B. variable name data type [ ].
C. *Parentheses ( ).
D. No indication is necessary. The program intuitively knows what you are doing.


A

Computer Science & Information Technology

You might also like to view...

________ is s method reference for a static method of a class. It creates a one-parameter lambda in which the lambda’s argument is passed to the specified a static method and the lambda returns the method’s result.

a. Math::sqrt b. System.out::println c. TreeMap::new d. String::toUpperCase

Computer Science & Information Technology

A program that executes whenever a computer starts up, ensuring that the virus will be loaded into memory immediately, even before some virus protection programs can load is called a ________

A) boot-sector virus B) time bomb C) logic bomb D) multipartite virus

Computer Science & Information Technology

Create a class TicTacToe that will enable you to write a complete program to play the game of tic-tac-toe. The class contains a 3-by-3 double-subscripted list of letters. The constructor should initialize the empty board to all zeros. Allow two human players. Wherever the first player moves, place an "X" in the specified square; place an "O" wherever the second player moves. Each move must be to

an empty square. After each move, determine whether the game has been won and whether the game is a draw. [Note: If you feel ambitious, modify your program so that the computer makes the moves for one of the players automatically. Also, allow the player to choose whether to go first or second.] What will be an ideal response?

Computer Science & Information Technology

____ is the process of acquiring the traits of one's predecessors.

A. Heritage B. Legacy C. Inheritance D. Encapsulation

Computer Science & Information Technology