Bài kiểm tra HFOOAD Chapter 5

Bài kiểm tra HFOOAD Chapter 5

12th Grade

16 Qs

quiz-placeholder

Similar activities

System Development Life Cycle

System Development Life Cycle

11th - 12th Grade

21 Qs

Introduction to Robotics Quiz

Introduction to Robotics Quiz

10th Grade - University

20 Qs

ITF Databases

ITF Databases

9th - 12th Grade

20 Qs

Testout ITF Databases

Testout ITF Databases

9th - 12th Grade

20 Qs

Computational Thinking Recap

Computational Thinking Recap

12th Grade

16 Qs

Microsoft Word 2016 Tables

Microsoft Word 2016 Tables

8th - 12th Grade

13 Qs

Web Tech - Web Design

Web Tech - Web Design

10th - 12th Grade

20 Qs

Adobe Visual Design Obj. 1.03

Adobe Visual Design Obj. 1.03

9th - 12th Grade

21 Qs

Bài kiểm tra HFOOAD Chapter 5

Bài kiểm tra HFOOAD Chapter 5

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Cường Nguyễn Mạnh

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The current search code is implemented for which classes?

Instrument

Mandolin

Abstract class

Guitar

Answer explanation

The current search code is implemented for the 'Guitar' class, as indicated in the correct answer choice. This class is the one being searched within the code.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What design pattern is mentioned in the text?

Singletons

Strategy

Iterator

Abstract Factory

Answer explanation

The correct design pattern mentioned in the text is Strategy. It is the pattern that allows a family of algorithms to be defined, encapsulated, and made interchangeable.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the matches method in the text?

To add new properties

To compare two instrument specifications

To handle exceptions

To generate random numbers

Answer explanation

The purpose of the matches method in the text is to compare two instrument specifications.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main focus of the Strategy design pattern?

Behavioral delegation

Inheritance

Polymorphism

Encapsulation

Answer explanation

The main focus of the Strategy design pattern is Behavioral delegation, where behavior is delegated to different classes to achieve flexibility and reusability.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the key principle mentioned for good software design?

High cohesion

Static typing

Tight coupling

Code duplication

Answer explanation

The key principle mentioned for good software design is high cohesion, which refers to the degree to which the elements inside a module belong together.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using use cases in requirements analysis?

To slow down the process

To ensure completeness

To confuse developers

To hide information

Answer explanation

Use cases are used in requirements analysis to ensure completeness by detailing all possible scenarios and interactions, helping to capture all necessary functionalities.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the recommended approach when facing a design that lacks flexibility?

Fix it

Ignore it

Blame others

Accept it as is

Answer explanation

The recommended approach when facing a design that lacks flexibility is to fix it, as it allows for improvements and adjustments to be made for better usability and adaptability.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?