When using an array in a GUI program, if array values will change based on user input, where must the array be stored?

A. It must be stored inside the method that processes the user's events.
B. It must be stored inside an event handler.
C. It must be stored outside the method that processes the user's events.
D. It must be stored outside of the main program.


Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following function calls would not return the value that is its first argument?

a. std::min(3, 23) b. std::min('N'; 'P') c. std::max(17, 16) d. std::max('d', 'k')

Computer Science & Information Technology

When using a compound Boolean expression joined by an && (AND) in an if statement:

(a) Both expressions must evaluate to true for the statement to execute. (b) The first expression must evaluate to true and the second expression must evaluate to false for the statement to execute. (c) The first expression must evaluate to false and the second expression must evaluate to true for the statement to execute. (d) Both expressions must evaluate to false for the statement to execute.

Computer Science & Information Technology

The High Pass filter in the accompanying figure can be used to do which of the following?

A. feather the edges of an image B. find and isolate edges C. change the color of a selection D. remove unwanted flare

Computer Science & Information Technology

A(n) ________ element contains no content

Fill in the blank(s) with correct word

Computer Science & Information Technology