Not Yet Answered Marked Out of 1.00: Clear My Choice

Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

25/10/2021, 13:26 Quiz 2_2

Question 1

Not yet answered


Marked out of 1.00

Select the topology in which the system composition configuration as layered, flattened, star typed, centralized, or distributed

a. The topology of the dynamic structure


b. The topology of the static structure
c. The topology of the behavioral structure
d. None of the others

Clear my choice

Question 2

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

Select the system composition configuration which is described as static structure

a. Multi-threaded
b. Centralized
c. Batch-sequential
d. Explicit direct invocation

Clear my choice

Question 6

Not yet answered


Marked out of 1.00

Which statements are incorrect?

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

Not yet answered


Marked out of 1.00

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

Which statements are correct?

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

Not yet answered


Marked out of 1.00

Which statements are correct?

a. A method can be declared final


b. Static variables and methods are instantiated only once per class.
c. Empty.java file is a invalid source file
d. String is a primitive data type in Java

Question 10

Not yet answered


Marked out of 1.00

The common usage of serialization is (are) ....

a. if we do have to implement methods of Serializable interface


b. if the state of an object is to be saved
c. whenever an object is to be sent over the network
d. if we have to implement the run() method

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

Not yet answered


Marked out of 1.00

The algorithm in below code to determine if .....

https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 6/34
25/10/2021, 13:26 Quiz 2_2

a. a string has all unique characters

https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 7/34
25/10/2021, 13:26 Quiz 2_2

b. a string length is not equal to 128


c. a string length is 128
d. a string has not all unique characters

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

Not yet answered


Marked out of 1.00

What will we get if we call the below function?

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

Not yet answered


Marked out of 1.00

In term of inheritance, what is the effect of keeping a constructor private?

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

Not yet answered


Marked out of 1.00

Which statements are not correct (java)?

a. HashMap offers 0(1) lookup and insertion.


b. TreeMap offers O(log N) lookup and insertion.
c. LinkedHashMap offers 0 lookup and insertion
d. HashMap offers 0 lookup and insertion.

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

Not yet answered


Marked out of 1.00

What are mistakes of the below code?


unsigned int i;
for (i = 100; i >= 0; --i) printf("%d\n", i);

a. using of %d
b. The loop condi­tion 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

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

Which statements are correct?

https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 13/34
25/10/2021, 13:26 Quiz 2_2

a. Companies can hire many Professionals


b. People who work for Companies are Professionals

c. A Professional works for many companies at a time


d. A Person can have multiple phone numbers

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

Not yet answered


Marked out of 1.00

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?  

The advantages of using SQL database for above system are

a. Reasonably easy for the clients to integrate into existing applications


b. Client might perform expensive and inefficient queries
c. It's easy for humans to be able to read it
d. Facilitates an easy way for the clients to do query processing over the data

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

Not yet answered


Marked out of 1.00

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?  

The advantages of using XML for above system are

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

Not yet answered


Marked out of 1.00

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?

a. load each file into memory, and look for duplicates


b. load each file into memory, create a hash table of the URLs, and look for duplicates
c. split the list of URLs into 4000 chunks (store in files)
d. split the list of URLs into several chunks (store in files)

Question 22
Not yet answered
Marked out of 1.00

Which statements are not correct?

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

Not yet answered


Marked out of 1.00

Which statements are not correct?

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

Which statements are correct?

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

Not yet answered


Marked out of 1.00

Which kind of class is not used in an analysis class diagram?

a. Entity class
b. Boundary class
c. Concrete class
d. Controller class

Clear my choice

Question 26

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 20/34
25/10/2021, 13:26 Quiz 2_2

Which statements are incorrect for below class diagram?

a. It is correct to add find as a method to the ProductSpecification class.


b. The find method is not part of the ProductSpecification class

https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 21/34
25/10/2021, 13:26 Quiz 2_2

c. The find method is part of the multi-object's interface


d. The find message is to the container object

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

Not yet answered


Marked out of 1.00

Which statements are incorrect for below diagram?

a. The Sale instance creates an instance of a Payment


b. This is a sequence diagram
c. This is a collaboration diagram
d. The message makePayment is sent to an instance of a Register. The sender is not identified.

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

Not yet answered


Marked out of 1.00

The multiplicity is described in ___________

a. package diagram
b. use cases diagram
c. composite diagram
d. class diagram

Clear my choice

Question 30

Not yet answered


Marked out of 1.00

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

Not yet answered


Marked out of 1.00

Which statements are correct for below diagram?

a. ServiceContract should be an association class


b. An association class's attributes are related to the association and its lifetime is dependent on the association
c. Should add dashed line from the association to the
association class

d. Should remove sells and purchases 

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

Not yet answered


Marked out of 1.00

___________ 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

Not yet answered


Marked out of 1.00

Concurrency is described in _______________

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

Not yet answered


Marked out of 1.00

Which is the most suitable diagram to describe the lifecycle of objects ?

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

Not yet answered


Marked out of 1.00

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

What are advantages of Denormalization?

a. Retrieving data is faster since we do fewer joins

b. Updates and inserts are cheaper

c. Data may be inconsistent.


d. Data redundancy necessitates more storage

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

Not yet answered


Marked out of 1.00

Which statements are correct?

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

Not yet answered


Marked out of 1.00

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

Which statements are correct?

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

Not yet answered


Marked out of 1.00

Which statements are correct?

a. A context switch is the time spent switching between two processes


b. Extreme case validation is to ensure that the program doesn't crash on bad input
c. By applying the word synchronized to a method, we ensure that two threads cannot execute synchro­nized methods on the
same object instance at the same time
d. The brute force approach is a way to find the correct solution by listing all the possible candidate solutions for the problem

 

https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=84701&cmid=8957 34/34

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy