AQA A Level · Computer Science 7517

程式設計典範與物件導向程式設計:練習題

5 條多項選擇題即時批改,另有 5 條文字題附完整解題步驟,全部圍繞「程式設計典範與物件導向程式設計」。

10 條題目25 免費,無需登記
第 1 題
1

In Unified Modelling Language (UML) class diagrams, which symbol is used to represent composition?

第 2 題
1

In a procedural-oriented approach to program design, what tool is primarily used to show the relationship between a main module and its sub-modules?

第 3 題
1

Consider the relationship between a University class and a Department class. If the Department cannot exist without the University, and the destruction of the University results in the destruction of all its Departments, how is this relationship represented in a UML class diagram?

第 4 題
1

What does a white diamond line represent in a Unified Modelling Language (UML) class diagram?

第 5 題
1

In the context of Object-Oriented Programming (OOP) design principles, which of the following best describes the concept of "programming to an interface, not an implementation"?

第 6 題
2

In a Unified Modelling Language (UML) class diagram, how are composition and aggregation visually distinguished?

先自己寫一次答案,再對照解題步驟。

第 7 題
3

Explain the fundamental difference between composition and aggregation when modeling relationships between objects in OOP.

先自己寫一次答案,再對照解題步驟。

第 8 題
5

Explain the design principle "favour composition over inheritance" and why it is often recommended in OOP.

先自己寫一次答案,再對照解題步驟。

第 9 題
6

A software developer is comparing different programming paradigms for a new project.

(a) State the three basic combining principles that are fundamental to all imperative programming languages.

(b) In the context of Object-Oriented Programming (OOP), explain the difference between aggregation and composition with reference to the lifecycle of the objects involved.

(c) In a UML class diagram, identify the specific symbol used to represent a composition relationship.

先自己寫一次答案,再對照解題步驟。

第 10 題
4

Object-oriented programming (OOP) uses several key concepts to manage complexity.

(a) Explain the relationship between a class and an object.
(b) Define encapsulation and explain how it is implemented in a class using access specifiers.

先自己寫一次答案,再對照解題步驟。

* thinka提供的內容由AI生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。

你已看過標準答案,接下來輪到批改你的答案。

這一頁可以告訴你好答案的樣子,卻無法指出你的答案欠缺什麼。thinka 按真實評分準則批改你的文字答案,約 15 秒完成。

想多做幾條同類題目?立即開始練習呢個課題,即做即批改。

立即練習