Given the following array declaration, what is the value stored in the scores[1][1] element?
?
int scores[3][3] = { {1, 2, 3} };
?

A. 0
B. 1
C. 2
D. 3


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following is not included in an exception’s stack trace?

a) A descriptive message for the exception. b) The method-call stack at the time the exception occurred. c) The name of the exception. d) Instructions on handling the exception.

Computer Science & Information Technology

For each of the following activities, name the step of the user-centered development methodology where it occurs.

a. The development team decides that a user should be able to reach any page on the site in three clicks. b. A team member asks users what they like about the current web site and solicits suggestions for further improvement. c. A team member watches users as they complete tasks using a prototype of the new site. d. The team discusses possibilities for the appearance of subsidiary web pages. e. The team comes to consensus on navigation aids.

Computer Science & Information Technology

Which key is used to step into a function?

A. F5 B. F10 C. F11 D. Ctrl-F10

Computer Science & Information Technology

Analyze the following code:

``` public class Test extends A { public static void main(String[] args) { Test t = new Test(); t.print(); } } class A { String s; A(String s) { this.s = s; } public void print() { System.out.println(s); } } ``` a. The program does not compile because Test does not have a default constructor Test(). b. The program has an implicit default constructor Test(), but it cannot be compiled, because its super class does not have a default constructor. The program would compile if the constructor in the class A were removed. c. The program would compile if a default constructor A(){ } is added to class A explicitly. d. The program compiles, but it has a runtime error due to the conflict on the method name print.

Computer Science & Information Technology