Question: Question 1: (15 Marks) - Multiple Choice Questions This part consists of 10 multiple choice questions. For each question, encircle the label A, B, C,

 Question 1: (15 Marks) - Multiple Choice Questions This part consistsof 10 multiple choice questions. For each question, encircle the label A,

Question 1: (15 Marks) - Multiple Choice Questions This part consists of 10 multiple choice questions. For each question, encircle the label A, B, C, or D as your most appropriate answer. Each question carries 1.5 points. 1. Which of the following is a high-level computer programming language? a. Machine language b. Assembly language c. Japan language d. none of the above 2. Which of the following primitive types could be promoted to another type? a. long b. double c. int d. none of the above 3. The keyword a. int c. static is used at method declaration to specify that the method returns nothing. b. boolean d. void 4. Any field declared with keyword a. constant is constant. b. static d. final c. const 5. Consider the following array declaration: What is the value of the expression: int[] array = {7,2,12,9,3,10,11,8,3}; System.out.println(array(array[2]-array[3]]*2); a. 18 b. 3 c. 5 d. 12 6. To check if two strings str1 and str2 have the same value we use the command a. s1=s2 b. s1==s2 C. str1.equals(str2) d. None of the above 7. The parameter list in the method header and the method call arguments must agree in: a. number c. order d. All the above b. type 8. When evaluating an expression without parentheses, operands of the same precedency are evaluated a. randomly b. right to left c. at the same time d. left to right 9. The Java primitive type that holds numbers with the largest integer value is: a. byte b. int c. short d. long 10. An overloaded method is one that a. has the same name and arguments, but a different return type as another method. b. has a different name as another method, but the same arguments as another method. c. has the same name and arguments as another method defined in another program. d. None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!