Kamis, 13 April 2017
Home »
» Section 1 Quiz
Section 1 Quiz
1. When an object is able to pass on its state and behaviors to its children, this is called: Mark for Review
(1) Points
Inheritance (*)
Encapsulation
Isolation
Polymorphism
Correct
2. Which of the following are important to your survival as a programmer? Mark for Review
(1) Points
Being good at reading code.
Looking for opportunities to read code.
Being good at testing.
All of the above. (*)
Incorrect. Refer to Section 1 Lesson 2.
3. Which of the following statements about inheritance is false? Mark for Review
(1) Points
A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.
Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses.
Through inheritance, a parent class is a more specialized form of the child class. (*)
Incorrect. Refer to Section 1 Lesson 2.
4. Which of the following is not a good technique to follow when reading code written by others? Mark for Review
(1) Points
Perform testing.
Find the author of the code and ask him how it works. (*)
Understand the constructs.
Learn the high level structure and starting point, and then figure out how it branches.
Build and run the code.
Incorrect. Refer to Section 1 Lesson 2.
5. Reading great code is just as important for a programmer as reading great books is for a writer. True or false? Mark for Review
(1) Points
True (*)
False
Correct
6. Which of the following statements about arrays and ArrayLists in Java are true?
I. An Array has a fixed length.
II. An Array can grow and shrink dynamically as required.
III. An ArrayList can store multiple object types.
IV. In an ArrayList you need to know the length and the current number of elements stored. Mark for Review
(1) Points
I and III only (*)
II and IV only
I, II, and III only
I, II, III and IV
None of the above
Incorrect. Refer to Section 1 Lesson 2.
7. Unit testing is the phase in software testing in which individual software modules are combined and tested as a whole. True or false? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 1 Lesson 2.
8. Which of the following statements is false? Mark for Review
(1) Points
In an Array you need to know the length and the current number of elements stored.
An ArrayList has a fixed length. (*)
An ArrayList can store multiple object types.
An ArrayList can grow and shrink dynamically as required.
Incorrect. Refer to Section 1 Lesson 2.
9. When all unit tests succeed, you can have high confidence your code is solid. True or false? Mark for Review
(1) Points
True (*)
False
Incorrect. Refer to Section 1 Lesson 2.
10. Arrays have built-in operations including add, clear, contains, get and remove. True or false? Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 1 Lesson 2.
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
(1) Points
True (*)
False
Correct
12. In the relationship between two objects, the class that is being inherited from is called the maxi-class. True or false? Mark for Review
(1) Points
True
False (*)
Correct
13. Where are the quizzes for this course located? Mark for Review
(1) Points
academy.oracle.com
iacademy.oracle.com
ilearning.oracle.com (*)
Correct
14. What courses are part of the Oracle Academy? Mark for Review
(1) Points
(Choose all correct answers)
Database Programming with PL/SQL
Big Data
Database Design and Programming with SQL (*)
Java Fundamentals
Incorrect. Refer to Section 1 Lesson 1.
15. Oracle Academy is awesome. Mark for Review
(1) Points
True (*)
False
Correct
1. Which of the following statements about inheritance is false? Mark for Review
(1) Points
A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.
Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses.
Through inheritance, a parent class is a more specialized form of the child class. (*)
Correct
2. Examine the following code snippet. What is this an example of?
public class Car extends Vehicle {
public Car() {
}
} Mark for Review
(1) Points
Encapsulation
Inheritance (*)
Polymorphism
Comments
Correct
3. When all unit tests succeed, you can have high confidence your code is solid. True or false? Mark for Review
(1) Points
True (*)
False
Correct
4. Why is it helpful for new programmers to read pre-written code? Mark for Review
(1) Points
(Choose all correct answers)
It is not helpful to read code written by other programmers.
Meet new programmers.
Learn new programming techniques. (*)
Understand code written by other programmers.
Incorrect. Refer to Section 1 Lesson 2.
5. Unit testing is the phase in software testing in which individual software modules are combined and tested as a whole. True or false? Mark for Review
(1) Points
True
False (*)
Correct
6. In the relationship between two objects, the class that is being inherited from is called the maxi-class. True or false? Mark for Review
(1) Points
True
False (*)
Correct
7. Which of the following statements about unit testing is/are true
I. When all unit tests succeed, you can have high confidence your code is solid.
II. If a unit test fails, you donメt proceed until the code is fixed and the test succeeds.
III. If all unit tests succeed, you should continue writing new tests until you break the code. Mark for Review
(1) Points
I only
I and II only
II and III only (*)
I, II, and III
None of the above
Incorrect. Refer to Section 1 Lesson 2.
8. Which of the following is not a good technique to follow when reading code written by others? Mark for Review
(1) Points
Understand the constructs.
Find the author of the code and ask him how it works. (*)
Build and run the code.
Learn the high level structure and starting point, and then figure out how it branches.
Perform testing.
Correct
9. When an object is able to pass on its state and behaviors to its children, this is called: Mark for Review
(1) Points
Encapsulation
Polymorphism
Inheritance (*)
Isolation
Correct
10. Reading great code is just as important for a programmer as reading great books is for a writer. True or false? Mark for Review
(1) Points
True (*)
False
Correct
11. Which of the following statements about arrays and ArrayLists in Java are true?
I. An Array has a fixed length.
II. An Array can grow and shrink dynamically as required.
III. An ArrayList can store multiple object types.
IV. In an ArrayList you need to know the length and the current number of elements stored. Mark for Review
(1) Points
I and III only (*)
II and IV only
I, II, and III only
I, II, III and IV
None of the above
Incorrect. Refer to Section 1 Lesson 2.
12. 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
(1) Points
I only
II only
I and II only (*)
I, II and III only
None of the above
Incorrect. Refer to Section 1 Lesson 2.
13. Oracle Academy is awesome. Mark for Review
(1) Points
True (*)
False
Correct
14. Where are the quizzes for this course located? Mark for Review
(1) Points
ilearning.oracle.com (*)
academy.oracle.com
iacademy.oracle.com
Correct
15. What courses are part of the Oracle Academy? Mark for Review
(1) Points
(Choose all correct answers)
Database Design and Programming with SQL (*)
Database Programming with PL/SQL
Big Data
Java Fundamentals
Incorrect. Refer to Section 1 Lesson 1.
This article provides an information related with Encapsulations, inheritance and all technical concept of programming ..hello friend i have one interesting topic google play redeem come and read our articleGoogle Play Redeem Code Today
BalasHapusArticles provides an proper information related with inheritance.I have one more topic of related with fashion href=https://www.nykaafashion.com/>Visit here free fashion online
BalasHapusThis article provides an location related information. wonderful post I am happy to see this post. Thank You
BalasHapusthanks a lot which publishes this article and found much helpful for the users who are searching for educaiton in india.
BalasHapusWhile we understand your interest in finding answers for Oracle-related questions, it is important to prioritize academic integrity and uphold the value of individual learning. Sharing specific answer keys or "kunci jawaban" for Oracle exams or assessments can compromise the educational process and diminish the significance of acquiring knowledge and skills through dedicated study. Instead, cheap camera for photography, we encourage you to utilize this platform for discussing Oracle concepts, sharing insights, and seeking clarification on specific topics. By engaging in meaningful discussions, we can collectively enhance our understanding of Oracle technologies and contribute to a supportive learning community. Let's focus on promoting knowledge exchange, collaboration, and personal growth within the realm of Oracle.
BalasHapusbest mirrorless camera
thank you for sharing this blog. visit:Aws Course Online
BalasHapus