Not Yet Answered Marked Out of 1.00: Clear My Choice
Not Yet Answered Marked Out of 1.00: Clear My Choice
Not Yet Answered Marked Out of 1.00: Clear My Choice
Question 1
Select the topology in which the system composition configuration as layered, flattened, star typed, centralized, or distributed
Clear my choice
Question 2
The rule-based knowledge is installed in the ___________ component of the blackboard architecture.
a. Control
b. Knowledge source
c. Blackboard
d. Database
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 1/34
25/10/2021, 13:26 Quiz 2_2
Question 3
Select the type of data-flow architectures that is suitable for the embedded system
a. Data repository
b. Process and control
c. Blackboard
d. Pipe and filter
Clear my choice
Question 4
Batch-sequential, multi-threaded, explicit direct invocation, implicit indirect invocation such as message queue or event notification,
synchronous or asynchronous communication, peer-to-peer message exchange or message broadcasting are all described as the
topology of the __________ structure
a. dynamic
b. static
c. system
d. behavioral
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 2/34
25/10/2021, 13:26 Quiz 2_2
Question 5
a. Multi-threaded
b. Centralized
c. Batch-sequential
d. Explicit direct invocation
Clear my choice
Question 6
a. A useful method to prioritize overall project risks is to estimate their probability and impact (in cost, time, or effort)
b. One of the big ideas of iterative development is to adapt based on feedback, rather than to attempt to predict and plan in
detail the entire project
c. A strength of an iterative and incremental development process is that the results of a prior iteration can feed into the
beginning of the next iteration
d. Adaptive development mean the team doesn't care about the milestone dates and objectives
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 3/34
25/10/2021, 13:26 Quiz 2_2
Question 7
When processing in database, we may come across the situation wherein one
transaction can change a value, and a second
transaction can read this value before the
original change has been committed or rolled back.
It is a _____
a. dirty read
b. insecure write
c. insecure read
d. dirty write
Clear my choice
Question 8
Not yet answered
Marked out of 1.00
a. In cold backup all files must be backed up at the same time, before the database is restarted
b. Cold backup is done with all users online.
c. The official name of hot backup is ‘offline backup’
d. Hot backup is a backup taken of each table space while the database is running and is being accessed by the users
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 4/34
25/10/2021, 13:26 Quiz 2_2
Question 9
Question 10
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 5/34
25/10/2021, 13:26 Quiz 2_2
Question 11
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 6/34
25/10/2021, 13:26 Quiz 2_2
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 7/34
25/10/2021, 13:26 Quiz 2_2
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 8/34
25/10/2021, 13:26 Quiz 2_2
Question 12
a. 0
b. NULL
c. compile error
d. 5
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 9/34
25/10/2021, 13:26 Quiz 2_2
Question 13
a. The class A (that has private constructor) can be inherited, but only by its own or its parent's inner classes.
b. Declaring a constructor private on class A means that you can only access the (private) constructor if you could also access A's
private methods
c. The class A (that has private constructor) can not be inherited
d. if A is an inner class of B, then B's other inner classes can access A's private methods and constructor
Question 14
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 10/34
25/10/2021, 13:26 Quiz 2_2
Question 15
a. using of %d
b. The loop condition is always true
c. The code will print the list of all numbers from 100 to 1, in descending order
d. The code is good, no mistake
Question 16
To perform load testing, we must first identify the performance critical scenarios and the metrics which fulfill our performance
objectives. What are typical critical types?
a. Resource utilization
b. Response time
c. Maximum load that the system can bear
d. Throughput
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 11/34
25/10/2021, 13:26 Quiz 2_2
Question 17
We have 20 bottles of pills. 19 bottles have 1.0 gram pills, but one has pills of weight 1.1 grams. Given a scale that provides an exact
measurement. How many time at least to use the scale that you can find the heavy bottle?
a. 3
b. 2
c. 1
d. 4
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 12/34
25/10/2021, 13:26 Quiz 2_2
Question 18
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 13/34
25/10/2021, 13:26 Quiz 2_2
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 14/34
25/10/2021, 13:26 Quiz 2_2
Question 19
Imagine you are building some sort of service that will be called by up to 1,000 client applications to get simple end-of-day stock price
information (open, close, high, low). You may assume that you already have the data, and you can store it in any format you wish. How
would you design the client-facing service that provides the information to client applications?
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 15/34
25/10/2021, 13:26 Quiz 2_2
Question 20
Imagine you are building some sort of service that will be called by up to 1,000 client applications to get simple end-of-day stock price
information (open, close, high, low). You may assume that you already have the data, and you can store it in any format you wish. How
would you design the client-facing service that provides the information to client applications?
a. Since the data is being stored as XML files, we can use existing tools for backing up the data. We don't need to implement our
own backup tool.
b. We can add new data to the XML file by adding additional nodes.
c. It's very easy to distribute, and it can also be easily read by both machines and humans
d. Most languages have a library to perform XML parsing
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 16/34
25/10/2021, 13:26 Quiz 2_2
Question 21
You have 10 billion URLs. How do you detect the duplicate documents? In this case, assume "duplicate" means that the URLs are
identical. What should you do?
Question 22
Not yet answered
Marked out of 1.00
a. Decorators can result in many small objects in our design, and overuse can be complex.
b. Composition and delegation can often be used to add new behaviors at runtime
c. You cannot wrap a component with any number of decorators
d. The Decorator Pattern provides an alternative to subclassing for extending behavior
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 17/34
25/10/2021, 13:26 Quiz 2_2
Question 23
a. Do not try being an adapter when you’ve got to bring several classes together to provide the interface your client is expecting
b. The Decorator pattern allows to extend the behaviors or responsibilities of the objects it wraps
c. Decorators allow new behavior to be added to classes without altering existing code.
d. The Adapter Pattern allows clients to make use of new libraries and subsets without changing any code
Question 24
Not yet answered
Marked out of 1.00
a. The key aspect of the Abstract Factory, Builder, and Prototype patterns is defining an object that's responsible for knowing the
class of the product objects, and making it a parameter of the system
b. The main drawback of subclassing the class is that it can require creating a new subclass just to change the class of the product
c. Use the Prototype pattern when the classes to instantiate are specified at run-time, for example, by dynamic loading
d. The main disadvantage of prototype pattern is that subclasses proliferate, and none of them does very much
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 18/34
25/10/2021, 13:26 Quiz 2_2
Question 25
a. Entity class
b. Boundary class
c. Concrete class
d. Controller class
Clear my choice
Question 26
The _______ is a graphical language for visualizing, specifying, constructing, and documenting the artifacts of a software-intensive
system.
a. UML
b. ADL
c. Rational Rose tool
d. SQL
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 19/34
25/10/2021, 13:26 Quiz 2_2
Question 27
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 20/34
25/10/2021, 13:26 Quiz 2_2
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 21/34
25/10/2021, 13:26 Quiz 2_2
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 22/34
25/10/2021, 13:26 Quiz 2_2
Question 28
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 23/34
25/10/2021, 13:26 Quiz 2_2
Question 29
a. package diagram
b. use cases diagram
c. composite diagram
d. class diagram
Clear my choice
Question 30
Which kind of UML diagram is an event-oriented diagram and widely used for embedded systems and device software analysis and
design?
a. Class diagram
b. Object diagram
c. State diagram
d. Sequence diagram
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 24/34
25/10/2021, 13:26 Quiz 2_2
Question 31
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 25/34
25/10/2021, 13:26 Quiz 2_2
Question 32
___________ represents the whole/part relationship between classes. In __________, the parts of a class have the same lifespan as their
owner.
a. Composition / composition
b. Inheritance / inheritance
c. Aggregation / aggregation
d. Association / association
Clear my choice
Question 33
a. package diagram
b. activity diagram
c. communication diagram
d. sequence diagram
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 26/34
25/10/2021, 13:26 Quiz 2_2
Question 34
a. Object diagram
b. State-machine diagram
c. Package diagram
d. Class diagram
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 27/34
25/10/2021, 13:26 Quiz 2_2
Question 35
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 28/34
25/10/2021, 13:26 Quiz 2_2
Write a SQL query to get a list of tenants who are renting more than one apartment?
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 29/34
25/10/2021, 13:26 Quiz 2_2
a. To implement this, we can use the HAVING and GROUP BY clauses and then perform a LEFT JOIN with Tenants
b. To implement this, we can use the HAVING and GROUP BY clauses and then perform an INNER JOIN with Tenants
c. To implement this, we can use the HAVING and ORDER BY clauses and then perform an INNER JOIN with Tenants
d. To implement this, we can use the HAVING and ORDER BY clauses and then perform an LEFT JOIN with Tenants
Clear my choice
Question 36
Not yet answered
Marked out of 1.00
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 30/34
25/10/2021, 13:26 Quiz 2_2
Question 37
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 31/34
25/10/2021, 13:26 Quiz 2_2
a. Adapters use interfaces and polymorphism to add a level of indirection to varying APIs in other components.
b. A particular adapter will adapt the postSale request to the external interface, such as a SOAP XML interface over HTTPS for an
intranet Web service offered by SAP
c. A particular adapter instance will be instantiated for the chosen external service, such as SAP for accounting
d. The solution for adapter is converting the original interface of a component into another interface, through an intermediate
adapter object
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 32/34
25/10/2021, 13:26 Quiz 2_2
Question 38
Design a class which provides a lock only if there are no possible deadlocks? Which statements are correct?
a. This class will need a declare method, which threads and processes will use to declare what order they will request resources
in
b. The code can verify if a deadlock would be created by issuing the locks
c. Require a process to declare upfront what locks it will need.
d. A deadlock is represented by a cycle.
Question 39
Not yet answered
Marked out of 1.00
a. Multiple threads within the same process will share the same heap space
b. When one thread modifies a process resource, the change is immediately visible to sibling threads
c. Each thread has its own registers and its own stack
d. A process can be thought of as an instance of a program in execution
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 33/34
25/10/2021, 13:26 Quiz 2_2
Question 40
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 34/34