0

web technology Online Quiz - 118

Description: web technology Online Quiz - 118
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

In the UML notation a class can be represented by

  1. A rectangular box with the name of the class in the box

  2. A rectangular box with the name of the object, a : and the class name that the object belongs to

  3. A rectangular box with the class name prefixed by the word "class"

  4. A thin vertical line with key method calls shown as outward arrows

  5. A rectangular box with an inserted dashed box on the top right corner.


Correct Option: A

In the UML notation, an object can be represented by

  1. A comment or explanatory note associated with a class

  2. A rectangular box with the object name and the constraint "{object}" immediatly following it

  3. A rectangular box with the name of the object in the box.

  4. A rectangular box with the name of the object, a : and the class name that the object belongs to.

  5. A thin vertical line with key method calls shown as outward arrows .


Correct Option: D

Inheritance relationships are represented in the UML notation by:

  1. nesting of classes

  2. lines with a solid diamond at one end

  3. lines with a hollow diamond at one end

  4. lines with a triangular arrow at one end

  5. lines with a triangular arrow at both ends


Correct Option: D

AI Explanation

To answer this question, you need to understand how inheritance relationships are represented in UML (Unified Modeling Language) notation.

Option A) Nesting of classes - This option is incorrect because nesting of classes represents a composition relationship, not an inheritance relationship.

Option B) Lines with a solid diamond at one end - This option is incorrect because lines with a solid diamond at one end represent an aggregation relationship, not an inheritance relationship.

Option C) Lines with a hollow diamond at one end - This option is incorrect because lines with a hollow diamond at one end represent a composition relationship, not an inheritance relationship.

Option D) Lines with a triangular arrow at one end - This option is correct. Lines with a triangular arrow at one end represent an inheritance relationship in UML notation. The arrow points from the subclass (the class that inherits) to the superclass (the class being inherited from).

Option E) Lines with a triangular arrow at both ends - This option is incorrect. Lines with a triangular arrow at both ends represent an association relationship, not an inheritance relationship.

The correct answer is Option D. This option is correct because lines with a triangular arrow at one end represent an inheritance relationship in UML notation.

Mandatory Method(s) to be defined in servlets

  1. getSessionBehaviour()

  2. getApplicationId()

  3. getSecurityLevel()

  4. getServletName()


Correct Option: B

Which one of the following folder is mandatory to be defined to use the ps: custom tags

  1. TLDs

  2. DDLs

  3. Web-inf

  4. Meta-Inf


Correct Option: A

Which one is correct?

  1. Write name here

  2. Write name here

  3. Write name here

  4. Write name here


Correct Option: A

The file where the context root of the application is specified

  1. Web.xml

  2. application.xml

  3. ps.xml

  4. Actionconfig.xml


Correct Option: B

An sequence diagram is

  1. a time-line illustrating a typical sequence of calls between object function members

  2. a call tree illustrating all possible sequences of calls between class function members

  3. a time-line illustrating the changes in inheritance and instantiation relationships between classes and objects over time

  4. a tree illustrating inheritance and relationships between classes

  5. a directed acyclic graph illustrating inheritance and instantiation relationships between classes and objects


Correct Option: A

AI Explanation

To answer this question, you need to understand what a sequence diagram is and what it represents.

Option A) A time-line illustrating a typical sequence of calls between object function members - This option is correct. A sequence diagram is a visual representation of the interactions between objects in a system. It shows the sequence of messages exchanged between objects, typically illustrating the flow of control and communication between object function members.

Option B) A call tree illustrating all possible sequences of calls between class function members - This option is incorrect. A call tree represents all possible call paths in a program, but it is not specific to class function members. It does not capture the sequence of calls between objects.

Option C) A time-line illustrating the changes in inheritance and instantiation relationships between classes and objects over time - This option is incorrect. While a sequence diagram may show the interactions between classes and objects, it does not explicitly illustrate changes in inheritance and instantiation relationships over time.

Option D) A tree illustrating inheritance and relationships between classes - This option is incorrect. A tree diagram can represent inheritance and relationships between classes, but it does not capture the sequence of calls between object function members.

Option E) A directed acyclic graph illustrating inheritance and instantiation relationships between classes and objects - This option is incorrect. A directed acyclic graph can represent inheritance and instantiation relationships, but it does not capture the sequence of calls between object function members.

The correct answer is A) a time-line illustrating a typical sequence of calls between object function members. This option is correct because a sequence diagram visually represents the order of messages exchanged between objects, showing the sequence of calls between object function members.

In the UML notation, inside each class in a class diagram are printed

  1. its name, attributes, operations, and derived classes.

  2. its name, attributes and operations.

  3. its name, and attributes.

  4. its name, and operations.

  5. just its name.


Correct Option: B

Key elements of the use-case diagram are:

  1. people, computers

  2. actors, use-cases

  3. people, classes, and objects

  4. uses, cases

  5. scenarios in point form


Correct Option: B

Aggregation (encapsulation) relationships are represented in the UML notation by

  1. nesting of classes

  2. lines with a solid diamond at one end

  3. lines with a hollow diamond at one end

  4. lines with an arrow at one end

  5. lines without an arrow at either end


Correct Option: C

In which file will the servlets and the security roles of the application will be defined

  1. Web.xml

  2. application.xml

  3. ps.xml

  4. Actionconfig.xml


Correct Option: A

The file where the task flows and the page flows of the application is specified

  1. Map.xml

  2. Web.xml

  3. ps.xml

  4. DynamicContentAliases.xml


Correct Option: C

Where does the application been first taken in to, when an URL is hit in the browser

  1. Servlet of the appilcation

  2. Deployment descriptor of the appln

  3. Context root of the application

  4. ps.xml file of the application


Correct Option: B

In the UML notation, parameterized (generic) classes are represented by

  1. the normal class representation with a dotted arrow pointing at the template parameter classes

  2. the normal class representation but shaded grey.

  3. the normal class representation with a dotted outline and the names of its parameter classes listed on the top right-hand corner.

  4. the normal class representation with a rectangular box in its top left-hand corner.

  5. Its a trick question - parameterized classes can't be specified in the UML notation.


Correct Option: C
- Hide questions