Complete the following questions. Use of the textbook is permitted. Submit your
ID: 2249272 • Letter: C
Question
Complete the following questions. Use of the textbook is permitted. Submit your work in an electronic format using the template at the end of this document 1. Which statement is false? a. If a method does not return a value, the return-value-type in the method declaration can be omitted. b. Placing a semicolon after the right parenthesis enclosing the parameter list of a method declaration is a syntax error. c. Redeclaring a method parameter as a local variable in the method's body is a compilation crror d. Forgetting to return a value from a method that should return a value is a compilation error 2. Stacks are known as a. FIFO. b. FILO c. LIFO d. LILO. data structures. 3. Which of the following promotions of primitive types is not allowed to occur? a. char to int. b. int to double. c. short to long. d. double to float. 4. Which statement is not true. a. The Java API consists of packages. b. The Java API h cThe Java API consists of 1 mport declarations. d. The class avax.swing.JApplet is part of the Java API elps programmers avoid "reinventing the wheel. 5. Arrays are: a. variable-length entities. b. fixed-length entities c. data structures that contain up to 10 related data items d. used to draw a sequence of lines, or rays." 6. Which of the following statements about creating arrays and initializing their elements is false? The new keyword should be used to create an array b. When an array is created, the number of elements must be placed in square brackets following the type of element being stored. c·The elements of an array of integers have a value of null before they are initialized.Explanation / Answer
1. (b)
2. (c) LIFO
3. (d) double to float
4. (b)
5 (b) Fixed length array
6. (c)