Langsung ke konten utama

Section 2 Oracle Java Programming

Section 2
(Answer all questions in this section)
1.            Why is it helpful for new programmers to read pre-written code?              Mark for Review
(Choose all correct answers)      
                Learn new programming techniques. (*)
                Meet new programmers.
                Understand code written by other programmers.
                It is not helpful to read code written by other programmers.

2.            Reading great code is just as important for a programmer as reading great books is for a writer. True or false?
                True (*)
                False

3.            When an object is able to pass on its state and behaviors to its children, this is called:       Mark for Review
                Isolation
                Encapsulation
                Polymorphism
                Inheritance (*)

4.            In the relationship between two objects, the class that is being inherited from is called the maxi-class. True or false?    Mark for Review
                True
                False (*)

5.            The main purpose of unit testing is to verify that an individual unit (a class, in Java) is working correctly before it is combined with other components in the system. True or false?          Mark for Review
                True (*)
                False

6.            When all unit tests succeed, you can have high confidence your code is solid. True or false?           Mark for Review
                True (*)
                False

7.            Which of the following statements is false?          Mark for Review
                An ArrayList has a fixed length. (*)
                An ArrayList can grow and shrink dynamically as required.
                An ArrayList can store multiple object types.
                In an Array you need to know the length and the current number of elements stored.

8.            What do Arrays and ArrayLists have in common?
I. They both store data.
II. They can both be traversed in loops.
III. They both can be dynamically re-sized during execution of a program.
 Mark for Review
                I only
                II only
                I and II only (*)
                I, II and III only

                None of the above

Komentar

Postingan populer dari blog ini

Section 6 Quiz Oracle Database Programming with SQL

Section 6 Quiz             (Answer all questions in this section)                                                             1.         Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee ï¾’ s possible minimum and maximum salaries based on their job title? EMPLOYEES Table: Name   Null?    Type EMPLOYEE_ID          NOT NULL     NUMBER (6) FIRST_NAME             VARCHAR2 (20) ...

Section 10 Quiz Database Programming With SQL

Section 10 Quiz             (Answer all questions in this section) 1.         A multiple-row operator expects how many values?   Mark for Review (1) Points             One or more (*)             Only one             Two or more             None 2.         The salary column of the f_staffs table contains the following values: 4000 5050 6000 11000 23000 Which of the following statements will return the last_name and first_name of those employees who earn more than 5000?  Mark for Review (1) Points             SELECT last_name, first_name ...

Section 6 Quiz Database Design Oracle

Section 6 Quiz             (Answer all questions in this section) 1.         Examine the following Entity and decide which rule of Normal Form is being violated: ENTITY: CLIENT ATTRIBUTES:     # CLIENT ID     FIRST NAME     LAST NAME     STREET     CITY     ZIP CODE  Mark for Review (1) Points             1st Normal Form.             2nd Normal Form.             3rd Normal Form.             None of the above, the entity is fully normalised. (*) 2.         A transitive dependency exists when any attribute in an entity...