Q6 Review

Spiral model is a type of:

Options

1.

Linear model.

2.

Iterative model.

3.

Prototype model.

4.

Incremental model.

Correct Answer:-> 2

The complexities of the five classes in a class diagram are 2, 3, 4, 5, and 6. What is the WMC metrics for the given class diagram?

Options

1.

15

2.

10

3.

20

4.

25

Correct Answer:-> 3

How can sequence diagrams depict the change in focus of control of an object?

Options

1.

In the form of a rectangular bar

2.

In the form of a rectangle

3.

In the form of a dotted line

4.

In the form of a cross

Correct Answer:-> 1

Consider the statements: Statement A: Recursive aggregation is an association relationship between two objects of the same class. Statement B. Qualified association is an association relationship that relates an object of a class to a particular object or a set of objects of another class. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 2

Project manager of StarMoon Technologies Inc. has planned to start the development process with 5000 process component in five month. However, the actual productivity after five month is 3500 process components. Identify adjustment factor to modify the schedule plan:

Options

1.

1500

2.

0.7

3.

1.4

4.

7

Correct Answer:-> 2

Which structural pattern type provides the interface for simplifying software development?

Options

1.

Composite

2.

Proxy

3.

Decorator

4.

Facade

Correct Answer:-> 4

Which element of the activity diagram enables you to model loops to specify the input values?

Options

1.

Expansion regions

2.

Flow final

3.

Fork

4.

Join

Correct Answer:-> 1

Various characteristics of a well-structured component diagram are: Depicts components that are a realization of well-defined set of interfaces. Consists of components that have most dependency on other components. Depicts only the essential components required for an accurate representation of the physical system. Depicts sufficient information about the physical system for a clear understanding of the system. Identify the correct option.

Options

1.

a, c, and d

2.

a, b, and d

3.

a, b, and c

4.

b, c, and d

Correct Answer:-> 1

Consider the following statements: Statement A: Different data types need to be checked in parameterized classes. Statement B: Parameterized classes enable you to reduce the source code by eliminating the need of method overloading. Which of the following is true, with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 4

A private airlines company issues tickets for various destinations. The tickets issued may be of Business category or Economy category. If you identify Tickets, Business and Economy as classes, what relationship does the Tickets class share with the Economy and Business classes?

Options

1.

Association

2.

Generalization

3.

Realization

4.

Multiplicity

Correct Answer:-> 2

Consider the following statements: Statement A. A type class represents the abstract behavior of a group of objects and the operations associated with these objects. Statement B. The operations and associations modeled through type classes are not declared. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 3

Which of the following is the true about refactoring design?

Options

1.

Refactoring design alters the class model without altering the architecture of a system.

2.

Refactoring design is a technique for restructuring internal structure of the existing code by changing its external behavior.

3.

Refactoring alters the class model by altering the architecture of a system.

4.

Refactoring design is a technique for restructuring internal structure of the existing code without changing its internal behaviour.

Correct Answer:-> 1

Which option represents the static relationship shared among objects of two classes?

Options

1.

Association

2.

Dependency

3.

Generalization

4.

Realization

Correct Answer:-> 1

UML is a language for visualizing artifacts. Which option describes the above statement correctly?

Options

1.

UML provides notations for classes, objects, and interfaces, which enable the development team to define the scope and content of a software system.

2.

UML allows code generation from a UML model.

3.

UML allows you to create diagrams to visualize a software system.

4.

UML allows using the diagrams as input documents for the subsequent phases of SDLC.

Correct Answer:-> 3

Which option identifies the executable file technique for modeling the components of a software system?

Options

1.

Models the .exe, library, and database that constitute the system

2.

Models database components by using component diagrams

3.

Models database table components by using component diagram

4.

Models source code files into packages and depicts them in a package diagram

Correct Answer:-> 1

Consider the following statements: Statement A: The interaction diagram contains two components, Collaboration and Association. Statement B: Collaboration depicts the static aspect of an iteration diagram and Association depicts the dynamic aspect of an iteration diagram. Which of the following is true, with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 1

How can you derive a collaboration diagram from a sequence diagram?

Options

1.

By using the messages of the sequence diagram.

2.

By using the objects and messages of the sequence diagram.

3.

By using the objects of the sequence diagram.

4.

By using the relations of the sequence diagram.

Correct Answer:-> 2

Which class provides the definitions of each operation specified in the type class?

Options

1.

Type class

2.

Implementation class

3.

Abstract class

4.

Parameterized class

Correct Answer:-> 2

Which relationship represents the semantic relationship between two classes such that a change in the attributes and operations of one class affects the attributes and operations of the other class?

Options

1.

Dependency

2.

Multiplicity

3.

Realization

4.

Association

Correct Answer:-> 1

Consider the statements: Statement A: When an object enters a submachine state, an entry action is performed after which the object acquires the initial state. Statement B: When the object exits the final state of the submachine, the exit event is fired and the associated exit action is performed. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 2

Consider the following statements: Statement A: Test cases form the foundation on which the test procedures are designed and developed. Statement B: The accuracy of testing is inversely proportional to the number of test cases. Identify the correct option.

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 3

Consider the statements: Changes in a class do not affect the dependent classes. Classes cannot be reused. Classes are simple to understand in isolation. Identify the statements that are the benefits of low coupling.

Options

1.

a and b

2.

a and c

3.

b and c

4.

a, b, and c

Correct Answer:-> 2

The various objectives of creating storyboards are: a. Understanding data visualization b. Demonstrating systems c. Defining and understanding business rules d. Modeling algorithms and other mathematical constructs Identify the correct option.

Options

1.

a, b, and c

2.

a, b, and d

3.

a, c, and d

4.

b, c, and d

Correct Answer:-> 3

UML is used for:

Options

1.

Generating code of software systems.

2.

Designing the components of a software system.

3.

Modeling of software systems.

4.

Requirement analysis.

Correct Answer:-> 3

Which quality check ensures that the series of activities and tasks performed to develop software products are correct?

Options

1.

Data quality check

2.

Code quality check

3.

Process quality check

4.

Management quality check

Correct Answer:-> 0

Consider the following statements: Statement A: A use case diagram depicts the various operations that a system performs. Statement B: Use cases are the sequence of actions that form different units of work for an actor. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 3

Consider the following statements:Statement A: Two actors are said to have a generalization relationship when the characteristics of one actor can be derived from another actor. Statement B: The generalization relationship exists among actors that have different behavior and different properties. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True

Correct Answer:-> 1

Which phase of SDLC includes translation of requirements specified in the SRS into a logical structure that can be implemented in a programming language?

Options

1.

Feasibility analysis 

2.

Requirement analysis and specification

3.

Design

4.

Testing

Correct Answer:-> 3

Which option defines the module viewtype of software architecture?

Options

1.

Module viewtype depicts the module that implement a particular function.

2.

Module viewtype depicts the collection of components in execution unit.

3.

Module viewtype depicts the relationship among the components of a software system with the development environment.

4.

Module viewtype depicts the resource allocated for the development of modules of the software system.

Correct Answer:-> 1

Which feature of state machine enables you to define actions that an object has to perform in a particular state?

Options

1.

Activities

2.

Entry and exit actions

3.

Deferred events

4.

Internal transitions

Correct Answer:-> 2

Which class enables you to use operations and classes to work with different data types?

Options

1.

Type class

2.

Abstract class

3.

Implementation class

4.

Parameterized class

Correct Answer:-> 4

Consider the following statements:Statement A: The generalization relationship exists among actors that have similar behavior and similar properties. Statement B: Association relationship is represented using an arrow or a simple line. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 2

Which of the following is documented by a use case?

Options

1.

Behavior of a system

2.

Requirements of the system

3.

Definition of the system

4.

Non functional requirements of the system

Correct Answer:-> 1

As an analyst, you are given the responsibility to draw a design pattern for creating and managing objects and you need to create only one instance of the object itself representing a real life object. Which design pattern enables you to perform the specified task?

Options

1.

Factory Pattern

2.

Builder Pattern

3.

Singleton Pattern

4.

Proxy Pattern

Correct Answer:-> 3

Consider the following statements: Statement A. The prototype is a sample implementation that shows the output of the proposed system. Statement B. The prototype helps the customer to determine how the final software functions. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True

Correct Answer:-> 1

An activity diagram is used for:

Options

1.

Modeling flow of control from one activity the other.

2.

Static modeling.

3.

Architectural modeling.

4.

Modeling the change of state of a class.

Correct Answer:-> 1

Consider the statements: Statement A: Packaging enables you to visualize the functional groups and the relationship among these. Statement B: Packaging facilitates easy management of large software systems. Which of the following is correct with respect to the above statements?

Options

1.

Both, Statement A and Statement B, are False.

2.

Both, Statement A and Statement B, are True.

3.

Statement A is True and Statement B is False.

4.

Statement A is False and Statement B is True.

Correct Answer:-> 2

You have created two objects named xmlDoc and xslStyles. You have loaded an XML document and an XSLT style sheet in these two objects. Which of the following code segments will you use to apply the XSLT style sheet to the XML document?

Options

1.

var xslt = new ActiveXObject(“Msxml2.XSLTemplate.4.0”)"

var xslProc = xslt.createProcessor()"

xslProc.input = xmlDoc"

xslProc.transform()"

2.

var xslProc = xmlDoc.createProcessor()"

xslProc.input =xslStyles"

xslProc.transform()"

3.

var xslt = new ActiveXObject(“Msxml2.XSLTemplate.4.0”)"

xslt.stylesheet = xslStyles"

var xslProc = new IXSLProcessor()"

xslProc.input = xmlDoc"

xslProc.transform()"

4.

var xslt = new ActiveXObject(“Msxml2.XSLTemplate.4.0”)"

xslt.stylesheet = xslStyles"

var xslProc = new IXSLProcessor()"

xslProc.transform()"

Correct Answer:-> 1

Which of the following is the correct way of creating an instance of the DOMDocument object?

Options

1.

var myxmldoc = new ActiveXObject("Msxml2.DOMDocument.4.0)"

2.

var myxmldoc = new DomDocumentObject “(Msxml2.0.DOMDocument.4.0)”"

3.

var myxmldoc = new DomDocument(‘Msxml2.DOMDocument.4.0’)"

4.

var myxmldoc = new DomObject(Msxml2.DOMDocument.4.0)"

Correct Answer:-> 1

Which element enables the grouping of attributes that can be reused with different elements?

Options

1.

sequence

2.

attributeGroup

3.

choice

4.

all

Correct Answer:-> 2

What will the following XPath expression return?

starts-with(“Hello World”, “world”)

Options

1.

0

2.

True

3.

False

4.

7

Correct Answer:-> 3

How many occurrences can the include element have in an XSD document?

Options

1.

Single

2.

Double

3.

Triple

4.

Multiple

Correct Answer:-> 4

You want to create a simple type named PHONENO in an XML schema. You want to ensure that any element or attribute that uses the simple type must contain a value in the format XXX-XXX-XXXX, where ‘X’ represents a single digit. Which of the following code snippets will you use to create the simple type?

Options

1.

<xsd:simpleType name=”PHONENO”>

<xsd:length value=”12”>

<xsd:pattern value=”\d{3}-\d{3}-\d{4}”>

<xsd:simpleType>

2.

<xsd:simpleType name=”PHONENO”>

<xsd:restriction base=”xsd:string”>

<xsd:length value=”12”>

<xsd:pattern value=”\d{3}-\d{3}-\d{4}”>

</xsd:restriction>

</xsd:simpleType>

3.

<xsd:SimpleType name=”PHONENO”>

<xsd:restriction base=&quot;xsd:string&quot>

<xsd:length value=&quot;12&quot;/&gt;

<xsd:pattern value=”\d{3}-\d{3}-\d{4}”/>

</xsd:restriction>

</xsd:SimpleType>

4.

<xsd:simpleType name=”PHONENO” base= “xsd:string” patternvalue=”\d{3}-\d{3}-\d{4}” />

Correct Answer:-> 2

Which one of the following XLink attributes allows you to specify the target of a link?

Options

1.

role

2.

href

3.

title

4.

actuate

Correct Answer:-> 2

Which of the following statements is true about global attributes?

Options

1.

Global attributes are declared within the content model of an element.

2.

While declaring a global attribute, you must specify whether the attribute is optional or mandatory by using the use attribute.

3.

The xsd:complexType element is the parent element for global attributes.

4.

After declaring a global attribute, you can reuse it anywhere within the schema.

Correct Answer:-> 4

Which of the following properties of the IXMLDOMParseError object will you use to retrieve the string containing the line that caused an error while parsing an XML document?

Options

1.

srcText

2.

reason

3.

line

4.

linePos

Correct Answer:-> 0

Which of the following code snippets can be considered well-formed?

Options

1.

<EMPLOYEE empid=e001>

<EMPNAME> Alice Peterson</EMPNAME>

<BASICPAY> $2000 </BASICPAY>

</EMPLOYEE>

2.

<EMPLOYEE empid=“e001”>

<EMPNAME> Alice Peterson<BASICPAY> $2000

</EMPNAME>

</BASICPAY>

</EMPLOYEE>

3.

<EMPLOYEE empid=“e001”>

<EMPNAME> Alice Peterson<BASICPAY> $2000 </BASICPAY></EMPNAME>

</EMPLOYEE>

4.

<EMPLOYEE empid=“e001”>

<EMPNAME> Alice Peterson<BASICPAY> $2000

</BASICPAY></EMPNAME>

</employee>

Correct Answer:-> 3

Consider the following statements:

Statement A: A CSS file can be used for rendering any number of XML documents.

Statement B: An XML document can use any number of CSS files for rendering.

Which of the following is correct about the above statements?

Options

1.

Statement A is True and Statement B is False.

2.

Statement B is True and Statement A is False.

3.

Both, Statement A and Statement B, are True.

4.

Both, Statement A and Statement B, are False.

Correct Answer:-> 3

Which of the following statements will you use to declare a default namespace with the URI http://www.w3.org/2001/XMLSchema in an XML schema?

Options

1.

<xmlns=“http://www.w3.org/2001/XMLSchema”>

2.

<xsd:schema xmlns=“http://www.w3.org/2001/XMLSchema”>

3.

<xsd:schema xmlns:default=http://www.w3.org/2001/XMLSchema type=”xsd:integer”>

4.

<xsd:schema =“http://www.w3.org/2001/XMLSchema”>

Correct Answer:-> 2

Which one of the following objects enables you to iterate through a collection of nodes?

Options

1.

DOMDocument

2.

IXMLDOMNode

3.

IXMLDOMParseError

4.

IXMLDOMNodeList

Correct Answer:-> 4

What is the level of the Envelope element in a SOAP message?

Options

1.

Middle-level

2.

Second-level

3.

Last-level

4.

Top-level

Correct Answer:-> 4

An element named PRODUCT that contains a single NAME element and one or more COLOR elements needs to be declared in a DTD. Which of the following statements will you use in a DTD to declare the PRODUCT element?

Options

1.

<!ELEMENT PRODUCT>

2.

<!ELEMENT PRODUCT (NAME,COLOR?)>

3.

<!ELEMENT PRODUCT (NAME,COLOR+)>

4.

<!ELEMENT PRODUCT (NAME,COLOR)>

Correct Answer:-> 3

What is the status of the BODY element in the SOAP Envelope element if the Header element is not present?

Options

1.

First parent element

2.

Second child element

3.

First child element

4.

Second parent element

Correct Answer:-> 3

What type of method does SAX use to process XML documents?

Options

1.

Event Based

2.

Document Handler

3.

Tree Based

4.

Document

Correct Answer:-> 1

You have written a script to load an XML document and validate it against a schema. Which of the following properties of the DOMDocument object will you use to ensure that the script waits till the XML document is loaded before continuing with the rest of the code?

Options

1.

async

2.

readyState

3.

documentElement

4.

xml

Correct Answer:-> 1

Which of the following attributes of the “xsl:sort” element will you use to specify that the uppercase letters will come before the lowercase letters?

Options

1.

case-order

2.

order

3.

select

4.

data-type

Correct Answer:-> 1

You want to create an attribute named “baseprice” with a default value of 200, for the product element. The attribute should accept integer values. Which of the following statements will you use to declare the attribute?

Options

1.

<xsd:attribute name=“baseprice” default= 200 type=“xsd:integer”>

2.

<xsd:attribute name=“baseprice”; type=“xsd:integer”; use= “default” value=“200”>

3.

<xsd:attribute name=“baseprice” default= “200” type= “xsd:integer”>

4.

<xsd:attribute element= “product” name= “baseprice” default= “200” type= “xsd:integer”>

Correct Answer:-> 3

Consider the following code snippet:

<EMPLOYEEREC empid= “e001”>

This is a record for an employee.

<EMPNAME> Alice Peterson

<BASICPAY> $2000 </BASICPAY>

</EMPNAME>

</EMPLOYEEREC>

In the given code, the content of the EMPLOYEEREC element is of which type?

Options

1.

Mixed

2.

Element

3.

Character

4.

Empty

Correct Answer:-> 1

Which of the following types is used to set the attribute in a DTD to optional?

Options

1.

OPTIONAL

2.

REQUIRED

3.

IMPLIED

4.

FIXED

Correct Answer:-> 3

What is the full form of SAX?

Options

1.

Simple Applications for XML

2.

Simplified Applications for XML

3.

Simple Application Interface for SAX

4.

Simple API for SAX

Correct Answer:-> 4

If the readyState property holds a numeric value of 2, then the document is in which of the following states:

Options

1.

Loaded

2.

Completed

3.

Loading

4.

Interactive

Correct Answer:-> 1

Which one of the following XSLT elements allows you to iterate through a list of nodes in an XML document?

Options

1.

for-each

2.

If

3.

Choose

4.

When

Correct Answer:-> 1

Which attribute of the group element specifies the least number of times a group can occur in an XML document?

Options

1.

maxOccurs

2.

MinOccurs

3.

Name

4.

Ref

Correct Answer:-> 2

Which of the following is an additional capability provided by XML that supports information modeling?

Options

1.

Heterogeneity

2.

Self-documenting

3.

Rigidity

4.

Homogeneity

Correct Answer:-> 1

What are the types of errors handled defined by the SAX ErrorHandler interface?

Options

1.

parse , warning, fatal

2.

warning, error, fatal

3.

Warning, error, fatal-error

4.

parse, warning, fatal-error

Correct Answer:-> 3

You need to display the details of all employees whose salary is equal to $1200. The salary of an employee is represented using the SALARY element in an XML document. Which of the following statements will you use to filter the employee data based on the specified criterion?

Options

1.

<xsl:if test=“SALARY[. = 1200]”>

2.

<xsl:if test=“SALARY[. = ‘1200’] />

3.

<xsl:if select=“SALARY[. = ‘1200’]”>

4.

<xsl:if match=“SALARY[. = 1200]”>

Correct Answer:-> 1

A large XML document is to be processed. Which of the following methods may be the most appropriate for this situation if there are memory and speed constraints?

Options

1.

Use DOM

2.

Use SAX

3.

Extract the necessary information and process using XSLT

4.

Use a schema based approach

Correct Answer:-> 2

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: