You are on page 1of 42

# Which object represents the top level of the XML source?

| DOMDocument
# XML generated by a servlet or JSP CANNOT be displayed by a browser in which one
of the following ways? | By passing it from a browser to another servlet or JSP for
reformatting
# Which of the following is the purpose of a schema? | To describe and constrain
both the structure and data within the XML document
# What is a correct way of referring to a style sheet called "mystyle.xsl"? | <?
xml-stylesheet type="text/xsl" href="mystyle.xsl"?>
# What statement is true when processing XML in a servlet or JSP? | A DTD or Schema
must be provided for validation.
# Which of the following snippet deletes an attribute of an Element node | ...
root.removeAttributeNode(attr);
# Which of the following types of parsers is used for object-based parsing? | DOM
# You can create the <child> element by using a Document object's ______________
method. | createElement
# Which of the following statement about SAX is false? | Data parsing can be
controlled through SAX
# Which of the following types of parsers is used for object-based parsing? | DOM
# A Complex Type element can be defined using | <xsd:complexType name= />
# Which of these is the correct syntax to link a CSS file to an XML document? | <?
xml-stylesheet type="text/css" href="url"?>
# To prevent a type from being derived for defining new types you can specify |
<complexType name=Address final=restriction />
# The property 'nextSibling' in DOMDocument Object contains the next node of the
previous nodes in the parent's child list. | T
# What is NOT true about StAX? | it is a "push" parser
# Which of the following statement about Attribute Node in DOM is true? | This node
represents the property of an element
# Which of the following statements related to the TranformerFactoty class and its
methods are false? | The getFeature(String name) method permits the user to set
values for specific attributes
# You create a SAX parser by using the ________________object. | SAXParserFactory
# The DocumentBuilder object's parse method to parse an XML document and create a
Java _____________ object | Document
# The StAX cursor API represents _______________. | a cursor with which you can
walk an XML document from beginning to end.
# Which of the following is the purpose of a schema? | To describe and constrain
both the structure and data within the XML document
# Which of the following statement explain the characteristics of the methods used
to modify nodes in a DOM tree? | The getChildNodes() returns a list of nodes
containing all the child nodes of specific node
# Which of the following methods creates a node for inserting textual content in to
it? | createTextNode()
# Which of the following are disadvantages of using SAX parsers? | SAX is read-only
# Which of the following statement about Attribute Node in DOM is true? | This node
represents the property of an element
# Which of the following options describing the feature of XML transformations? |
XSLT stylesheets use XPath to navigate between XML as SAX and DOM
# Which of the following statements related to the TranformerFactoty class and its
methods are false? | The getFeature(String name) method permits the user to set
values for specific attributes
# XSLT is: | Extensible Stylesheet Language Transformation
# Which of the following statement explains about the object relational mapping? |
The object relational mapping uses the XML document as a tree of objects
# Declaring an attribute as 'optional, -, -' means | Attribute may occur once and
have any value
# Schemas can be documented in human readable format by using | Comments
# To compose a schema with the same target namespace you can use | <include
schemaLocation= />
# Which of the following statement about SAX is false? | Data parsing can be
controlled through SAX
# SGML stand for | Standard Generalization Markup Language
# In XSL, an attributes can be accessed in the way similar to the elements. Notice
____ in front of the attribute name | @
# The entities that are used only in DTDs are referred to as | General entities
# For the XML parser to ignore a certain section of your XML document, which syntax
is correct? | <![CDATA[ Text to be ignored ]]>
# An XML document, which conforms to its DTD, is called a: | Well formed Document
# XML DOM is: | XML Document Object Model
# In XSL, an _____ instruction do contains the template, which is been applied to
each node selected with the select attribute | xsl:for-each
# If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE
definition with the following syntax: | <!DOCTYPE root-element [element-
declarations]>
# What does the keyword SYSTEM indicate in the following code? <!DOCTYPE Book
SYSTEM book.dtd> | Book.dtd is an internal DTD
# The DOM treats the XML document as | tree-structure
# Which of the following statements are true in the case of XML? | XML describes
its data along with its presentation
# XML is a _______ Recommendation | W3C
# Which of these is the correct syntax to link a CSS file to an XML document? | <?
xml-stylesheet type="text/css" href="url"?>
# #REQUIRED attributes value means: | The attribute value must be included in the
element
# What is the significance of the + sign in the code given below? <!ELEMENT BOOK
(AUTHOR+)> | Indicates that AUTHOR tag must occur at least once inside the BOOK
element
# In a DTD, Attributes are declared with an _______ declaration | ATTLIST
# Which of the following is/are optional in the creation of an XML file? | The <?
xml version="1.0"?> statement
# Which of the following are valid tags? | <fpt_university>
# Parameter entities use ampersand (&) and semicolon (;) as delimiters? | false
# An attribute without a prefix is in default namespace? | true
# Which of the following is not an extension of XML? | SGML.
# Which of the following XML attribute names is invalid? | I am not valid
# A descendant having a new namespace cannot override the namespace defined by the
parrent element? | false
# Which of the following defines what is meant by a valid document? | A document
which conforms to the rules of a DTD
# Which of the following is/are optional in the creation of an XML file? | Entities
# XML parser checks for validity and well formed ness? | true
# Namespaces are defined using | xmlns:[prefix] attribute
# Ability to create one's own tags is XML's greatest disadvantage? | false
# External DTDs use the keyword URL to specify the location of the DTD? | false
# An XML document, which conforms to its DTD, is called a: | Valid Document
# What does the keyword SYSTEM indicate in the following code? <?xml version
=1.0?> <!DOCTYPE Book SYSTEM book.dtd> | Book.dtd is an external DTD
# Which of the following things is unspecified in the following line of code? <!
DOCTYPE letter SYSTEM "letter.dtd"> | The type of browser you are using.
# The xsl:template is used to | define a template that can be applied to a node to
produce desired output
# See the snipset below and choose one answer: <xsl:value-of select=floor(-2.3)/>
| -3
# XSLT allows any kind of data to be tranformed into | Boolean
# Document Object Model is platform-dependent? | false
# Which DOMDocument method is used to create a new attribute? | createAttribute
# Builds the document as a in-memory data structures? | DOM
# Represents a collection of attribute nodes | XMLDOMNamedNodeMap
# The ContentHandler class provides implementations for the core interface of SAX |
true
# The StAX cursor API represents | a cursor with which you can walk an XML document
from beginning to end.
# SAX makes sequence of call to a handler function? | true
# Consider the following script. What is wrong with the following code? 1 <SCRIPT
LANGUAGE = "JavaScript"> 2 var firstNumber, 3 secondNumber; 4 thirdNumber; 5 6
thirdNumber = 7 parseInt( window.prompt( "Enter an integer", 0 ) ); 8
document.write( thirdNumber ); 9 </SCRIPT> | The word var must be placed before
thirdNumber in line 4.
# A procedure for solving a problem in terms of the actions to be executed and the
order in which these actions are to be executed is called ________. | an algorithm
# Each object has ________ or data and ________ or behavior. | attributes, methods
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> var total = 0; nextLoop: for ( var i = 0; i < 5; ++i )
{ for ( var j = 0; j < 2 ; ++j ) { if ( i < 2 ) continue nextLoop; total++; }
total++; } total++; document.writeln( total ); </SCRIPT> | 10
# The word top in the term top-down stepwise refinement refers to which of the
following? | he single statement that completely represents the program
# Function definitions often contain ________ which are considered to be local
variables and correspond with the arguments in the function call. | parameters
# What is the value of i after the following statements? i = 2; i++; | 3
# Which of the following is not a JavaScript keyword? | sub
# What does the value string contain after the following code is executed? var
string = "Good luck on the test"; string = string.split( " " ); | Good luck on the
test
# What would the browser display if this script was executed? <SCRIPT LANGUAGE =
"JavaScript"> var c = new Array(8); for( var i = 0; i < 8; i++ ) c[i] = i;
document.write(c[8]); </SCRIPT> | undefined
# Functions are invoked by writing the name of the function, followed by the
function's ________ in closed parenthesis. | arguments
# Call-by- ________ is the method of passing a copy of the argument's value to a
function | value
# In JavaScript, all objects and Arrays are passed to functions by ________. |
reference
# Which of the following methods does the JavaScript Boolean object not possess? |
toInt
# Which of the following is not required for counter-controlled repetition? |
sentinel
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> var total = 0; stop: { // labeled compound statement for
( var i = 0; i < 5; ++i ) { for ( var j = 0; j < 2 ; ++j ) { if ( i == 2 ) break
stop; total++; } total++; } total++; } total++; document.writeln( total );
</SCRIPT> | 7
# Which of the following is the proper method to apply the fliph filter to the
following H1 element? <H1 ID = "test">This is a test</H1> | The filter cannot be
applied to this element.
# ________ is an artificial and informal language that helps programmers develop
algorithms. | Pseudocode
# Which of the following is an illegal array initialization statement? | var n =
new Array( 5 ); n = [ 10, 20, 30, 40, 50 ];
# What will the browser display if the following script is executed? < SCRIPT
LANGUAGE = "JavaScript" > var theArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ];
modifyArray( theArray[ 3 ] ); document.write( theArray.join( " " ) ); function
modifyArray( i ) { i = 11; } </SCRIPT> | 1 2 3 4 5 6 7 8 9
# Consider the following HTML code. <HTML> <SCRIPT LANGUAGE = "JavaScript"> <!--
document.writeln("Hello World"); // --> </SCRIPT> </HTML> What would a browser
capable of scripting display when executing this code? | Hello World
# What is the value of i after the following statements? i = 2; i- -; i- -; | 0
# The best way to develop and maintain a large program is to construct it from
small, simple pieces called ________. | modules
# What is the significance of the second function argument in the following line?
window.setInterval( "run()", 100 ); | The value sets how often to run the function.
# Which of the following flowchart symbols indicates that a decision is to be made?
| diamond
# A descendant having a new namespace cannot override the namespace defined by the
parrent element? | false
# ________ is a markup language for describing how content is rendered and ________
is a markup language for describing structured datacontent is separated from
presentation. | HTML, XML.
# Characters like ">" and "&" can be used in PCDATA sections? | false
# Parameter entities use ampersand (&) and semicolon (;) as delimiters? | false
# Which of the following XML code snippets is/are correct? | <BOOK> <AUTHOR>
abc</AUTHOR> </BOOK>
# Which statements are true? | The DTD specifies ... + The DTD contains the list
of tags allowed within the XML document, and their types and attributes.
# The question mark (?) operator indicates | either zero or one occurrence
# Each XML document can be represented as a tree structure? | true
# Which of the following statements is not true? | Entities that appear anywhere
in an XML document are referred to as Parameter entities
# Restricts string types using regular expressions? | pattern
# Allow to validate documents that use markup from multiple namespaces? |
Namespace support
# Match the xml data againts its corresponding data type in Schema?
<start>05:30:10.5</start> | time
# In schema, the ALL element requires that | each element in the group must occur
at most once
# Which one of the following is the root element of all XML Schema documents? |
Schema
# Most DOM objects such as XMLDOMAttribute, XMLDOMElement, XMLDOMEntity,
XMLDOMComment etc have several common methods and properties since they are
inherited from a common object. Which object is it? | XMLDOMNode
# With reference to the snippet of code given below, choose the correct syntax to
complete the second line in order to create a XML Document Object var sample
sample = ________________________ | new ActiveXObject("microsoft.XMLDOM")
# DOM considers all items present in XML document as node? | true
# The item() method of XMLDOMNodeList and XMLDOMNamedNodeMap return the node
present at specified index | true
# Which DOMDocument method is used to create a new attribute? | createAttribute
# What is the result of the statement 17 % 5? | 2
# What is the effect of the join statement in the following code? var theArray1 =
[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], theArray2 = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
var value = theArray1.join( " " ); | The join method will create a string from the
values in theArray1.
# Where on the browser will the command window.status( "text" ) display output? |
on the status bar
# In a switch structure, the ________ case clause is used to process exceptional
conditions and is usually listed last. | default
# Which of the following is the proper method to dynamically allocate memory to an
array of 100 elements? | var c = new Array( 100 );
# Call-by- ________ is the method of passing a copy of the argument's value to a
function. | value
# MC: How many comparisons will a linear search function makes before finding a
match if the search key has a value of 3 and the array x has the values: x[ 0 ] = 0
x[ 1 ] = 2 x[ 2 ] = 1 x[ 3 ] = 4 x[ 4 ] = 3 x[ 5 ] = 3 | 5
# Consider the following HTML code. <HTML> <SCRIPT LANGUAGE = "JavaScript"> <!--
document.writeln("Hello World"); // --> </SCRIPT> </HTML> What would a
browser capable of scripting display when executing this code? | Hello World
# Which of the following selections does not follow the rules of operator
precedence. Assume that the operators on the left are evaluated first. |
parentheses, subtraction, modulus
# The \n,\t, \r escape sequences do not affect HTML rendering unless they are used
between which tags? | <PRE></PRE>
# Identifiers which have static duration ________. | are globally accessible to
the script
# What would the browser display if this script was executed? <SCRIPT LANGUAGE =
"JavaScript"> var c = new Array(8); for( var i = 0; i < 10; i++ )
c[i] = i; document.write(c[9]) </SCRIPT> | 9
# What will value contain after the following code is executed? var value = new
Date(); value = value.valueOf(); | a large integer representing the number of
milliseconds between midnight January 1, 1970 and the current date
# What would the browser display if the following script was executed? <SCRIPT
LANGUAGE = "JavaScript"> for( int i = 0; i < 5; i++ )
document.write("X"); </SCRIPT> | Nothing, the script would generate an error
# With the ________, scripts can respond to a user moving the mouse, scrolling up
or down the screen or entering keystrokes. | event model.
# What is the evaluation of the following expression? ((3+ ( 5 + 4 ) * 7 ) + 4 ) /
5 | 14
# The chroma filter is used to ________. | apply transparency effects dynamically
# Which of the following statements regarding filters and transitions is false? |
They are applied on a client computer at run time by the server.
# Function definitions often contain ________ which are considered to be local
variables and correspond with the arguments in the function call. | parameters
# What would the browser display if the following code is executed in a script? var
grade = 59 if ( grade >= 60 ) document.writeln( "Passed." ); else
document.write( "Failed. " ); document.writeln( "You must take this course
again." ); | Failed
# Script-level variables have ________ duration. | static
# Which of the following is not a valid equality or relational operator? | =
# Which of the following is not a JavaScript keyword? | sub
# Which of the following is not a property of the glow filter? | direction
# Which of the following is false? | In any flowchart, control structure
(sequence, if, if/else, switch, while, do/while or for) can be replaced by 2
rectangle (actions) in sequence.
# The ________ attribute of the ________ element specifies another element that is
identified by its ________ attribute. | FOR, SCRIPT, ID.
# Microsoft's version of scripting that uses the Java syntax is called ________. |
JScript
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> var total = 0; nextLoop: for ( var i = 0; i < 5; ++i
) { for ( var j = 0; j < 2 ; ++j ) { if ( i < 2 )
continue nextLoop; total++; } total+
+; } total++; document.writeln( total ); </SCRIPT> | 10
# Which of the following is the proper method to access the length of the array
arr[]? | arr.length
# The value a in the following statement is called the ________ and the value b is
called the ________. face = Math.floor( a + Math.random() * b ); | shifting
value, scaling factor
# Which of these characters can be included within the text in an XML document in
literal form? | ; : -
# XML parser checks for validity and well formed ness? | True
# Which of the following is/are optional in the creation of an XML file? |
Entities
# Which of the following XML attribute names is invalid? | I am not valid
# A descendant having a new namespace cannot override the namespace defined by the
parrent element? | false
# Parameter entities use ampersand (&) and semicolon (;) as delimiters? | false
# XML developer has to ensure the uniqueness of the element names and attributes in
a document? | true
# XML is transformed only via XSLT? | false
# Browser has the ability distinguish duplicate element names in an XML document?
| false
# Which of these is a valid comment in XML? | <!- -This data should be hidden
<FIRSTNAME>Joe</FIRSTNAME> <LASTNAME>Johnson</LASTNAME> - ->
# What does the keyword SYSTEM indicate in the following code? <?xml version
=1.0?> <!DOCTYPE Book SYSTEM book.dtd> | Book.dtd is an external DTD
# Which of the following statements is not true? | Entities that appear anywhere
in an XML document are referred to as Parameter entities
# Which of the following is not a keyword used for default settings in an! ATTLIST
element? | #DEFINE
# External DTDs use the keyword URL to specify the location of the DTD? | false
# The question mark (?) operator indicates | either zero or one occurrence.
# For each element type associated with a sequence element, there must be an
element in the XML instance in the same order? | true
# Specifies that the attribute cannot be used? | prohibited
# An XML Schema defines whether an element is empty or can include text. |
true
# In schema, the ALL element requires that | each element in the group must occur
at most once
# The default value for the minOccurs attribute in Schema is 0 | false
# See the snipset below and choose one answer: <xsl:value-of select=floor(-
2.3)/> | -3
# Which top level XSLT elements is used to define a variable in a stylesheet or
template and to assign it a value | xsl:variable
# Xpath can be thought of as a query language like SQL | true
# Which of these is the correct syntax to link an XSL file to an XML document? |
<?xml-stylesheet type="text/xsl" href="candidate.xsl"?>
# CSS positions can be either absolute or ________. | relative
# ________ are declared in each individual HTML element using the keyword STYLE. |
Inline styles
# XSLT takes two things as input: an XSLT stylesheet and an xml input document |
true
# What is the significance of the following CSS rule? LI, EM { color: red;cfont-
weight: bold } | It will apply the specified style to text enclosed by either LI
or EM tags.
# Which of the following selections is the proper way to apply this CSS rule: .blue
{ color: blue } | <P CLASS = "blue">
# In CSS, when a style is applied to an element containing other elements inside it
| The style is applied to the element and all the other elements contained in it
# In DOM, a node can have | More than one children nodes
# Tree model is applied to static documents? | false
# Method hasChildNodes of XMLDOMNode mean | Determine if a given node has child
nodes or not
# With reference to the snippet of code given below, choose the correct syntax to
complete the second line in order to create a XML Document Object var sample
sample = ________________________ | new ActiveXObject("microsoft.XMLDOM")
# Which object represents the top level of the XML source? | DOMDocument
# In SAX, to provide customized DTD handling, application need to implement |
DTDHandler
# SAX uses | Push parsing machenic for processing
# The StAX cursor API represents | a cursor with which you can walk an XML
document from beginning to end.
# SAX support random access | false
# Method characters() of ContentHandler interface receives events for | Character
data
# What is the value of num after the following statement is performed? num =
Math.round( 2.45 ); | 2
# What does the value string contain after the following code is executed? var
string = "Good luck on the test"; string = string.link("www.deitel.com") | a link
to www.deitel.com with the text "Good luck on the test"
# To divide the value of the seventh element of array a by 2 and assign the result
to the variable x, we would write ________. | x = a[ 6 ] / 2
# A procedure for solving a problem in terms of the actions to be executed and the
order in which these actions are to be executed is called ________. | an algorithm

# Which of the following is not required for counter-controlled repetition? |


sentinel
# What is wrong with the following line of code? <P><FONT SIZE='5'>This is a
test.</FONT></P> | Nothing
# Which of the following statements regarding filters and transitions is false? |
They are applied on a client computer at run time by the server.
# A program in which all statements are executed one after the other in the order
in which they are written exhibit ________. | sequential execution
# ________ and ________ run slower when they are applied to large arrays. | linear
search, bubble sort
# What is the value of s3 after the following code is executed? var s1 = one, s2
= two, s3 = three; s1.concat(s2) s3 = s1; | onetwo
# ________ is a markup language for describing how content is rendered and _______
is a markup language for describing structured datacontent is separated from
presentation. | d. HTML, XML.
# Which of the following is not an extension of XML? | c. SGML.
# Which of the following XML attribute names is invalid? | b. I am not valid
# Which of the following things is unspecified in the following line of code? <!
DOCTYPE letter SYSTEM "letter.dtd"> | b. The type of browser you are using.
# Which of the following are tags is used to define rules for an element? | c.
<!ELEMENT ... (#PCDATA)>
# Which of the following elements is not valid inside a group element in an XBRL
document? | c. value
# Which of the following XML based markup languages provides a protocol for
business transactions on the Internet? | b. cXML.
# The ________ attribute is added to a TABLE elements opening tag to bind a data
island to a table | d. DATASRC
# Which DOMDocument method is used to create a new attribute? | a.
createAttribute
# Which of the following is the correct processing instruction that specifies an
XSL document (myXSL.xsl) to be used to transform an XML document. | c. <?
xml:stylesheet type = "text/xsl" href="myXSL.xsl">
# The ________ element generates the markup for an element of the specified name in
the output HTML | c. xsl:element
# Which of the following is not a type of DTD? | a. Table based
# The ________ parses and translates all inbound and outbound messages going to and
from a business. | a. BizTalk Server.
# All Biztalk documents have the root element ________. | d. BizTalk
# SOAP stands for | a. Simple Object Access Protocol
# Microsoft's version of scripting that uses the Java syntax is called | b.
JScript
# ________ was originally created by ________. | d. JavaScript, Netscape
# The default scripting language for Netscape and Internet Explorer is ________ |
ECMAScript
# In the following line, the word document is a ________ which resides in the
computers memory and contains information used by the script.
document.writeln("Hello World"); | c. object
# In the following line, the word writeln is a ________ which performs a task or
action in the script. | d. method
# The line window.alert("Hello world") will display output in ________. | a.
a dialog box
# Consider the following script. What is wrong with the following code? 1
<SCRIPT LANGUAGE = "JavaScript"> 2 var firstNumber, 3 secondNumber; 4
thirdNumber; 5 6 thirdNumber = 7 parseInt( window.prompt( "Enter an
integer", 0 ) ); 8 document.write( thirdNumber ); 9 </SCRIPT> | d. The
word var must be placed before thirdNumber in line 4
# What would the browser display if the following script was executed and the user
entered 5 at both prompts? 1 <SCRIPT LANGUAGE = "JavaScript"> 2 var firstNumber =
window.prompt("Enter an integer", 0); 3 var secondNumber = window.prompt("Enter
an integer",0); 4 var thirdNumber; 5 thirdNumber = firstNumber +
secondNumber; 6 document.write( thirdNumber ); 7 </SCRIPT> | d. 55
# What is the result of the statement 17 % 5? | b. 2
# Which of the following selections does not follow the rules of operator
precedence? Assume that the operators on the left are evaluated first | b.
parentheses, subtraction, modulus
# What is the evaluation of the following expression? ((3+ (5 + 4) * 7) + 4) / 5
| b. 14
# Which of the following is not a valid equality or relational operator | =
# A procedure for solving a problem in terms of the actions to be executed and the
order in which these actions are to be executed is called ________. | d. an
algorithm
# ________ is an artificial and informal language that helps programmers develop
algorithms | c. Pseudocode
# A program in which all statements are executed one after the other in the order
in which they are written exhibit ________. |
# Which of the following contradicts the notion of structured programming? | c.
goto
# The word sequence in the term sequence structure refers to the sequence of
________ | b. JavaScript instructions in a script
# Which of the following is not one of Bohm and Jacopini's three control structures
| goto-less structure
# Which of the following flowchart symbols indicates that a decision is to be made?
| a. diamond
# Which of the following is not a JavaScript selection structure | b. for/in
# Which of the following is a JavaScript repetition structure | b. do/while
# Which of the following is not a JavaScript keyword | c. sub
# Which of the following statements is correct | c. if ( studentGrade >= 60 )
document.write( "Passed" );
# What would the browser display if the following code is executed in a script?
var x = 11, y = 14; if ( x > 13 ) if ( y > 13 ) document.writeln( "x and y are >
13" ); else document.writeln( "x is <= 13" ); | d. x is <= 13
# What would the browser display if the following code was executed in a script?
var product = 0; while ( product <= 25 ); product = 2 + product; | a.
nothing, the script would result in an error
# What would the browser display if the following script is executed? <SCRIPT
LANGUAGE = "JavaScript"> var count = 0, total = 0; while ( count <= 5 ) { total =
total + 10; count = count + 1; } document.write(total); </SCRIPT> | d. 60
# What would the browser display if the following script is executed? <SCRIPT
LANGUAGE = "JavaScript"> var count = 5, total = 0; while ( count > -1 ) { total =
total 10; count = count 1; } document.write(total); </SCRIPT> | d. -60
# If the string passed to parseInt contains a floating-point numeric value,
parseInt will ________. | d. truncate the floating-point part
# If the string passed to parseInt contains text characters, parseInt will
________. | a. return NaN
# What type of loop is shown in the script below? <SCRIPT LANGUAGE = "JavaScript">
var gradeValue = 0, total = 0, grade = 0; while ( gradeValue != - 1 ) { total =
total + gradeValue; grade = window.prompt("Enter Integer Grade, -1 to Quit:",
"0"); gradeValue = parseInt( grade ); } </SCRIPT> | b. sentinel controlled
# The word top in the term top-down stepwise refinement refers to which of the
following | c. the single statement that completely represents the program
# What is the value of i after the following statements? i = 2; i += 25 | b. 27
# What is the value of i after the following statements? i = 2; i++; | c. 3
# What is the value of i after the following statements? i = 2; i--; i--; | a.
0
# Which of the following is not required for counter-controlled repetition | c.
sentinel
# What would the browser display if the following script was executed? <SCRIPT
LANGUAGE = "JavaScript"> for( int i = 0; i < 5; i++ ) document.write("X");
</SCRIPT> | a. Nothing, the script would generate an error
# What would the browser display if the following script was executed? <SCRIPT
LANGUAGE = "JavaScript"> for( var i = 0; i < 5; i++ ) document.write("O");
</SCRIPT> | c. OOOOO
# Which of the following are declared correctly? | c. for (var i=0;i<100;++i )
{ statement; }
# Which of the following is declared correctly and will not result in an error
assuming x = 2 and y = 30? | c. for ( var j = x; j <= 80 * y; j += 5 / x )
# Which of the following is true? | d. for loops increment after the body
statement is performed and while loops increment in either condition or body
# What is the value of num after the following statement is performed? num = 2 *
Math.pow( 2, 3 ); | a. 16
# What is the value of num after the following statement is performed? num =
Math.round( 2.45 ); | b. 2
# The ________ multiple selection structure is used to handle multiple decisions
making and can be used to replace multiple if and if/else statements | d. switch

# Every switch structure must have ________ labels which are separated by the
keyword break. | c. case
# In a switch structure, the ________ case clause is used to process exceptional
conditions and is usually listed last. | b. default
# Consider the following code selections. Assume count is initialized to 7 and num
is initialized to 0 | c. 7, 0
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> for ( var count = 1; count <= 10; ++count ) { if ( count
== 5 ) break; } document.writeln( count ); </SCRIPT> | c. 5
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> for ( var count = 0; count < 10; ++count ) { if ( count
== 5 ) continue; } document.writeln( count ); </SCRIPT> | d. 10
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> var total = 0; stop: { // labeled compound statement for
( var i = 0; i < 5; ++i ) { for ( var j = 0; j < 2 ; ++j ) { if ( i == 2 ) break
stop; total++; } total++; } total++; } total++; document.writeln( total );
</SCRIPT> | a. 7
# What would the browser display if it executed the following script? <SCRIPT
LANGUAGE = "JavaScript"> var total = 0; nextLoop: for ( var i = 0; i < 5; ++i ) {
for ( var j = 0; j < 2 ; ++j ) { if ( i < 2 ) continue nextLoop; total++; } total+
+; } total++; document.writeln( total ); </SCRIPT> | d. 10
# Which of the following will not evaluate to true? | a. false || false
# Which of the following will evaluate to false | a. false && false
# Which of the following is false? | c. In any flowchart, control structure
(sequence, if, if/else, switch, while, do/while or for) can be replaced by 2
rectangle (actions) in sequence
# According to Bohm and Jacopini, which of the following does not follow structured
programming? | b. Nested building blocks
# The best way to develop and maintain a large program is to construct it from
small, simple pieces called ________. | b) modules
# The technique of developing and maintaining a large program by constructing it
from small, simple pieces is called ________. | a) divide and conquer
# Modules in JavaScript are called ________. | functions
# The prepackaged functions that belong to JavaScript objects such as Math.pow
and Math.round are often called ________. | c) methods
# All variables declared in function definitions are ________. | b) local
variables
# Functions are invoked by writing the name of the function, followed by the
function's ________ in closed parenthesis | c) arguments
# Function definitions often contain ________ which are considered to be local
variables and correspond with the arguments in the function call. | a)
parameters
# Which of the following is a legal function call for the function definition
provided below? function square( y ) { return y * y; } | a) square(7+2);
# What is the result of writing the keyword var in a function parameter list | he
result would be a JavaScript runtime error
# What would the function cube return, assuming it is called with the line cube(3).
function cube(y); { return y * y * y; } | a) JavaScript runtime error
# What does the following statement do? Math.floor( Math.random() * 12 ); | b)
This creates a random number from 0 up to but not including 12.
# The value a in the following statement is called the ________ and the value b is
called the ________. face = Math.floor( a + Math.random() * b ); | b)
shifting value, scaling factor
# Where on the browser will the command window.status( "text" ) display output? |
d) on the status bar
# The style of programming in which the user interacts with a GUI component is
called ________ programming | c) event-driven
# If the HTML form game has a text field named point in it, what is the proper way
to set the text associated with point to 10? | d) game.point.value = "10"
# The ________ of a variable is the period during which it exists in memory | c)
duration
# Identifiers that represent local variables in a function ________. | b) exist
while the function in which they are declared is still active
# Local variables have ________ duration | c) automatic
# Identifiers which have static duration ________. | a) are globally accessible
to the script
# Script-level variables have ________ duration. | static
# The _______ of an identifier for a variable or function is the portion of the
program in which the identifier can be referenced | scope
# Giving a local function variable the same name as a global variable will result
in which of the following | d) The local variable will "hide" the global
variable
# _________ are data structures consisting of related data items (sometimes called
collections of data items) | c) arrays
# To refer to a particular location or element in the array, we specify the name of
the array and the ________ of the particular element in the array | c) position
number
# Which of the following is the proper method to access the length of the array
arr[]? | c) arr.length
# To divide the value of the seventh element of array a by 2 and assign the result
to the variable x, we would write ________. | c) x = a[ 6 ] / 2
# Which of the following is the proper method to dynamically allocate memory to an
array of 100 elements | d) var c = new Array( 100 );
# The statement on line 1 ________ the array while the statement on line 2 ________
the array. 1 var c; 2 c = new Array( 12 ); | c) declares, allocates
# Initializing an array directly involves using the ________ control structure. |
a) for loop
# What would the browser display if this script was executed? <SCRIPT LANGUAGE =
"JavaScript"> var c = new Array(8) for( var i = 0; i < 8; i++ ) c[i] = i;
document.write(c[8]) </SCRIPT> | a) undefined
# What would the browser display if this script was executed? <SCRIPT LANGUAGE =
"JavaScript"> var c = new Array(8) for( var i = 0; i < 10; i++ ) c[i] = i;
document.write(c[9]) </SCRIPT> | d) 9
# Which of the following is an illegal array initialization statement | c) var n
= new Array( 5 ); n = [ 10, 20, 30, 40, 50
# In the following statement, the range of the variable element is ________. for (
var element in theArray ) total2 += theArray[ element ]; | g) 0 to the array
length - 1
# What is the value of num assuming that all 12 elements of array test are
initialized to 3? ++test[ 7 ]; var num = test[ 7 ]; | b)4
# In JavaScript, all objects and Arrays are passed to functions by ________ | d)
reference
# Call-by- ________ is the method of passing a copy of the argument's value to a
function. | a) value
# Call-by- ________ is the method of passing the argument's actual location in
memory to a function. | d) reference
# In JavaScript, numbers and boolean values are passed to functions by ____ | value

# What is the effect of the join statement in the following code? | c) The
join method will create a string from the values in theArray1
# ________ and ________ run slower when they are applied to large arrays | b)
linear search, bubble sort
# TThe java sort method uses ________ to sort the array passed to it | a) string
comparison
# MC: How many comparisons will a linear search function makes before finding a
match if the search key has a value of 3 and the array x has the values: x[ 0 ] =
0 x[ 1 ] = 2 x[ 2 ] = 1 x[ 3 ] = 4 x[ 4 ] = 3 x[ 5 ] = 3 | (c) 5
# What would the browser output if the following script is executed? < SCRIPT
LANGUAGE = "JavaScript" > var array = [ [ 1, 2, 3 ], [ 1, 2, 3 ] ]; for ( var i in
array ) { for ( var j in array[ i ] ) document.write( array[ i ][ j ] + " " );
document.writeln("<BR>"); } < /SCRIPT > | d) 1 2 3 1 2 3
# Each object has ________ or data and ________ or behavior | c) attributes,
methods
# Which of the following is false | b) Objects do not have the property of
information hiding.
# An object's methods and attributes are accessed by writing the name of the object
followed by the ________. | c) dot operator
# What does the value string contain after the following code is executed? var
string = "Good luck on the test"; string = string.charAt( 3 ); | c) d
# What does the value string contain after the following code is executed? var
string = "Good luck on the test"; string = string.split( " " ); | a) Good luck on
the test
# What does the value string contain after the following code is executed? var
string = "Good luck on the test"; string = string.link("www.deitel.com") | b)
a link to www.deitel.com with the text "Good luck on the test"
# What is the value of s3 after the following code is executed? var s1 = one, s2 =
two, s3 = three; s1.concat(s2) s3 = s1; | b) onetwo
# What is the value of s1 after the following code is executed? var s1 = "deitel
and associates" s1 = s1.slice( 6 ) | c) and associates
# Which of the following methods would you use to search a character for a specific
string? | d) indexOf
# Which of the following methods would you use to convert a list of Unicode values
into a string containing the corresponding characters | c) fromCharCode
# What will value contain after the following code is executed var value = new
Date(); value = value.valueOf(); | b) a large integer representing the number
of milliseconds between midnight January 1, 1970 and the current date
# Which of the following methods does the JavaScript Boolean object not possess |
c) toInt
# Which of the following methods does the JavaScript Number object not possess? |
c) valueOf
# ________ allow you to specify the style of your page elements (spacing, margins,
etc.) separately from the structure of your document | Cascading Style Sheets
# ________ are declared in each individual HTML element using the keyword STYLE |
Inline styles
# Text style sheets use which of the following MIME types | text/css
# In the body of a style sheet, CSS rule properties are followed by a ____ | colon
# Multiple CSS rule properties in style sheets are separated by a ________. |
semicolon
# How will the following CSS rule alter the Webpage if it is applied in a style
sheet? H1 { font-family: Arial, sans - serif } | All text enclosed by H1 tags
will have the sans-serif font if Arial is not supported by the system
# What is the purpose of the line beginning with A.nodec in the following script?
| The .nodec appended to A is an extension of class styles and will apply only to
A elements that specify nodec as their class
# What is the significance of the line? LI EM { color: red; font-weight: bold } |
It will apply the specified style to text enclosed by the EM tags which are within
LI tags.
# What is the significance of the following CSS rule? LI, EM { color: red;c font-
weight: bold } | a) It will apply the specified style to text enclosed by
either LI or EM tags.
# External style sheets are saved with the ________ extension. | .css
# In which of the following do you set the MIME type of the external style sheet?
| <LINK></LINK>
# If an element's position is declared as absolute then ________ | c) positioning
is set according to the margins of its parent element
# Setting an element's position to relative is done within which of the following |
<STYLE></STYLE>
# Which of the following settings for a background image can be modified to create
a "watermark" effect where scrolling will not move the image from its set position
| d) background-attachment
# Which of the following settings can be altered to change the darkness of the font
| font-weight
# When using the width, height and overflow properties of an element, position must
be ________ | b) not absolute
# In order for elements to be floated, position must be ________. | b) not
absolute
# Elements which have absolute position are automatically ________ the text flow.
| removed from
# The outermost layer of the box model is the ___ | c) margin
# The ________ is the distance between the content inside an element and the edge
of the element. | padding
# Which of the following is not a border property | c) shape
# The CSS specification gives precedence to ________. | a)author styles over user
styles
# What does the following CSS rule do? .note { font-size: 1.5em } | d) It
multiplies all text object font sizes with CLASS = "note" by 1.5
# The simplest way to reference a DHTML element is by its ________ attribute | ID
# Consider the following HTML document. 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN"> 2 <HTML> 3 <HEAD> 4 <TITLE>Object Model</TITLE> 5 6
<SCRIPT LANGUAGE = "JavaScript"> 7 function start() 8 { 9
alert( pText.innerText ); 10 pText.innerText = "Thanks for coming."; 11 } 12
</SCRIPT> 13 14 </HEAD> 15 16 <BODY ONLOAD = start()> 17 18 <P ID =
"pText">Welcome to our Web page!</P> 19 20 </BODY> 21 </HTML> Which of the
following selections a true statement? | b) The pText object does not have an
innerText attribute
# The all collection is a property of the ________ object | document
# Consider the following HTML document. 1 <HTML> 2 <HEAD> 3 <TITLE>Children
Collection</TITLE> 4 <SCRIPT LANGUAGE = "JavaScript"> 5 </SCRIPT> 6 </HEAD> 7
<BODY> 8 <P></P> 9 </BODY> 10 </HTML> Select the true statement. | d) The
SCRIPT element is a direct child of the HEAD element.
# Which of the following is the proper way to dynamically access the background
color from within the script? | document.body.style.backgroundColor
# Which of the following is the proper way to dynamically access the border width
from within the script? | document.body.style.borderWidth
# CSS positions can be either absolute or ________. | b) relative
# What is the significance of the second function argument in the following line
window.setInterval( "run()", 100 ); | c) The value sets how often to run the
function
# Which of these is the proper function that stops a windows timer | clearInterval
# Consider the following HTML document. <HTML> <HEAD> <TITLE>Frames
collection</TITLE> </HEAD> <FRAMESET ROWS = "100, *"> <FRAME SRC = "top.html"
NAME = "first"> <FRAME SRC = "" NAME = "second"> </FRAMESET> </HTML> Which of
the following is the proper way to access the frame "second" from the script of an
outside document? | parent.frames( " second" )
# The ________ object contains information about the Web browser that is viewing
the page. | b) navigator
# What is stored inside the variable value after the following line of code is
executed? var value = navigator.appVersion | c) It stores a string representing the
version of the browser and other information.
# With the ________, scripts can respond to a user moving the mouse, scrolling up
or down the screen or entering keystrokes. | (a) event model
# The ________ attribute of the ________ element specifies another element that is
identified by its ________ attribute | (d) FOR, SCRIPT, ID
# The ONLOAD event fires ________. | (d) whenever an element finishes loading
successfully
# What does the following HTML document do? <HTML> <HEAD> <TITLE>DHTML Event
Model - ONLOAD</TITLE> <SCRIPT LANGUAGE = "JavaScript"> var value = 0; function
startTimer(){ window.setInterval( "updateTime()", 1000 ); } function updateTime()
{ value++; pText.innerText = value; } </SCRIPT> </HEAD> <BODY ONLOAD =
"startTimer()"> <P><A ID = "pText">0</A></P> </BODY> </HTML> | It counts the
number of seconds elapsed viewing the page
# The ONERROR event is used to handle all of these except | (a) User errors.
# Which of these is the command to enable error handling on a Web page | (d)
window.onError
# Event ________ fires constantly whenever the mouse is in motion | (a)
ONMOUSEMOVE
# If you used the ONMOUSEMOVE event to capture mouse events over an image, which of
the following event properties would you use to capture the location of the mouse
cursor relative to the image boundaries | (d) offsetX / offsetY
# What does the srcElement event property contain | A reference to the element that
fired the event
# When the mouse moves over an element which of the following is triggered | (b)
ONMOUSEOVER
# 11 The ONFOCUS event fires when ________. | (c) an element is clicked.
# The ONBLUR event is associated with ________ | (d) an element losing focus.
# What is the effect of the following line of code? window.event.returnValue =
true; | (b) It returns a true value to signal the browser to continue its
default event-handling action.
# Event bubbling is _______. | (a) the process of child elements passing events to
their parent elements
# ________ fires when the right mouse button is clicked. | (b) ONCONTEXTMENU
# Which of the following is false? | d) Filters and transitions cannot be
adjusted dynamically.
# Which of the following statements regarding filters and transitions is false | b)
They are applied on a client computer at run time by the server
# Which browsers can view the visual effects created by filters and transitions |
d) Netscape
# Which of the following is the proper method to apply the fliph filter to the
following H1 element? <H1 ID = "test">This is a test</H1> | d) The filter cannot
be applied to this element.
# The chroma filter is used to ________. | d) apply transparency effects
dynamically
# Which of the following is true regarding the DHTML mask filter: | b) It is
used to create images with transparent foregrounds
# Which is the proper method to set the mask color? | a) filter: mask( color =
#CCFFFF )
# Which of the following is true? | b) The invert filter applies a negative
image effect
# Which of the following is true? | c) The shadow filter property can be set to
exactly 8 different values
# Which of the following best describes the visual effect that alpha is used for |
b) replacing text colors
# Which of the following is not a property of the glow filter | c) direction
# Which of the following is not a property of the blur filter | d) ( add,
direction, strength) All of these are properties of the blur filter.
# Which of the following is not a property of the wave filter? | c) direction
# The ________ property of the wave filter determines how many waves will be
applied in the affected area | freq
# The ________ property of the wave filter shifts the effect in space | c) phase
# The ________ property of the wave filter determines the wave's amplitude | d)
strength
# Which of the following is true? | c) The dropShadow filter does not have a
direction attribute
# The first two parameters in the addPoint method ________. | d) sets the
point source of the light
# The third parameter in the addPoint method ________. | a) sets the height of
the point source
# The last parameter in the addPoint method ________. | b)sets the strength
percentage
# Which of the following is the proper method to apply a transition effect | a)
element.filters( "blendTrans" ).apply();
# The main difference between the blendTrans filters and the revealTrans filters is
_________. | c) The revealTrans filter has more transition effects than the
blendTrans filter
# ________ makes it now possible for data manipulation to be shared by the server
and the client. | d) all of the above
# Which of the following is false? | c) The TDC outputs an interface like
Microsoft Excel.
# Which of the following is true? | d) Text qualifiers encapsulate the data in a
field
# The @ character is referred to as a______ | b) text qualifier
# The | character is referred to as a________. | c) field delimiter
# Which of the following is not a valid PARAM setting for TDC controls? | a)
<PARAM NAME = CLASSID: CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83>
# What does the following statement do? <SPAN ID = "colorName" STYLE = "font-
family: monospace" DATASRC = "#Colors" DATAFLD = "ColorName"></SPAN><BR> | c)
It assigns the TDC control named Colors to a span element for display
purposes
# What will value contain after the following code is executed assuming that Colors
is a valid TDC control? value = Colors.recordset; | a) It will contain the
current indexed item of the datasource
# When the TDC is bound to an element, the element's DATASRC attribute should be
set to ________. | d) the name of the TDC object preceded by a #
# The binding of TDC to a table requires setting the DATASRC property in the
________ | a) table element
# Which of the following is true? | b) The TDC handles creating table cells for
output
# The JavaScript keyword this always refers to ______ | b) the element in which the
statement resides
# The TDC method Reset is used for _____ | c) refreshing the display
# Which of the following is false | c) The Sort property automatically displays
the new order of the data
# The TDC Filter property allows you to ________. | d) filter out all records
that do not have a cell matching the text you specify
# The Filter property should be in which of the following formats? | a)
ColumnName = FilterText
# How a data source is displayed by the browser depends on the ________. | d)
element that the data source is bound to
# Microsofts Internet Explorer Web browser contains a ________ that executes
VBScript code | c) interpreter
# ________ is a technology that allows a server-side script to create dynamic
content that is sent to the clients browser | ASP
# VBScript is ________ | a) case sensitive like JavaScript
# The VBScript '&' operator is used for ________. | b) string concatenation
# The VBScript '+' operator is used for ________. | c) both a and b
# The VBScript operator for inequality is which of the following | b) <>
# Which of the following is not a VBScript sub-typ | c) variant
# What does the Option Explicit statement do | d) It does not allow the
programmer to use variables without declaring them first.
# The VBScript control structures behave ________ to their JavaScript counterparts
and the VBScript control structure syntax is ________ the JavaScript syntax | d)
differently, different than
# What is wrong with the following VBScript code? 1 If (s = t) Then 2 u = s
+ t 3 ElseIf (s > t) Then 4 u = r 5 Else 6 u = n 7 End If | a)
Nothing
# What is wrong with the following VBScript code? 1 Select Case x 2 Case 1 3
Call MsgBox("1") 4 Case 2 5 Call MsgBox("2") 6 Case Else 7
Call MsgBox("?") 8 End Select | Nothing
# Which VBScript function returns an integer indicating the variant subtype? | d)
VarType
# What is the underscore character used for in VBScript? | d) It is used as a
line continuation character
# Which of the following is true regarding the following code? MsgBox( "VBScript is
fun!", , "Results" ) | c) The function should be preceded by the keyword Call
# What does the ScriptEngine function do? | d) It returns the type script being
used
# The VBScript ________ function has the same purpose as JavaScript's window.prompt
method | b) InputBox
# What is the underscore character used for in VBScript? | d) It is used as a
line continuation character
# Which of the following is true regarding the following code? MsgBox( "VBScript is
fun!", , "Results" ) | c) The function should be preceded by the keyword Call
# What does the ScriptEngine function do | d) It returns the type script being
used.
# The VBScript ________ function has the same purpose as JavaScript's window.prompt
method | b) InputBox
# Which of the following is a valid VBScript conversion function | b) CInt
# Which of the following is true regarding Function procedures | c) The
procedure can return a value by assigning a value to the Function procedure name
# Which of the following is true regarding VBScript arrays? | a) VBScript
arrays can be dynamically allocated
# Which of the following string functions returns a string that does not contain
any leading or trailing space characters | b) Trim
# Which of the following functions searches a string for a substring and returns an
index of the found substring if it is found | c) Instr
# In VBScript, the unit of object-oriented programming is the ________. | class
# Describing an object in terms of behaviors without concern for how those
behaviors are actually implemented is called ___ | b) data abstraction
# The keywords Property Let and Property Set are used for ________. | b)
accessing Private class variables
# Which of the following is true regarding VBScript classes? | d) The Property
Let method is used for non-object subtypes
# Which top level XSLT element is used to define a variable in a stylesheet or
template and to assign it a value | xsl:variable
# The xsl:template is used to | Define a template that can be applied to a node to
produce desired output
# The xsl:if is used to | Evaluate a condition expression against the content of
the xml file
# In Xpath, which node has a parent node and it may have child node too | Text
# In Xpath, how many type of nodes in the tree | 7
# See the snipset below and choose one answer: <xsl:for-each
select=LIST//TITLE></xsl:for-each> | Match all <TITLE> elements one or more
level deep in the <LIST> element
# See the snipset below and choose one answer: <xsl:template
match=BOOK*position()!=2+> <xsl:value-of select=./> </xsl:template> |
Select all BOOK elements that are not the second child of their parents
# XSLT allows any kind of data to be transformed into | Boolean
# See the snipset below and choose one answer | -2
# See the snipset below and choose one answer: <xsl:value-of select=floor(-
2.3)/> | -3
# Which one of the following is the root element of all XML Schema documents? |
Schema
# W3C DOM uses both tree and object model concepts: | true
# SAX uses : | Push parsing machenic for processing
# In DOM, a node can have | More than one children nodes
# Method getElementsByTagName return a node of list which will be stored as |
XMLDOMNodeList object
# xmlDoc.async= false mean: | Complete document must be loaded before futher
processing
# Implements the method of ErrorHandler, EntityResolver, DTDHandler |
DefaultHandler
# SAX support random access: | false
# Represents a collection of attribute nodes | XMLDOMNamedNodeMap
# In SAX, to provide customized DTD handling, application need to implement : |
DTDHandler
# Method hasChildNodes of XMLDOMNode mean | determine if a given node has child
nodes or not
# Property documentElement of DOMDocument object return | An object representing
the root element if the XML document
# XMLDOMNode implements the interface | IXMLDOMNode
# Method characters() of ContentHandler interface receives events for | character
data
# The item() method of XMLDOMNodeList and XMLDOMNamedNodeMap return the node
present at specified index | true
# The ContentHandler class provides implementations for the core interface of SAX:
| true
# The resolveEntity method of EntityResolver interface allow the application | To
resolve external entity
# What is XML? | Extensible Markup Language
# Which Statement about xml is true? | Elements may nest but not overlap
# What is the correct declaration syntax for the version of an XML document | <?
xml version="1.0"/?>
# How is an empty XML element defined? | All of the above
# Which syntax is used to insert comments into an XML document | <!-This is a
comment->
# What does DTD stand for | Document Type Definition
# Which statement is true | All XML elements must be properly closed
# Which is not a correct name for an XML documents | <1dollar>
# Which is not a correct name for an XML element | <first name>
# What does XSL stand for? | eXtensible Stylesheet Language
# For the XML parser to ignore a certain section of your XML document, which syntax
is correct | <![CDATA[ Text to be ignored ]]>
# XML is | Free and Extensible
# XML is a Complement to | HTML
# XML Schema is designed to | be self-descriptive
# XML uses | an XML Schema to describe the data
# XML Can be used to | Create new language
# XML is the mother of | WAP and WML
# XSL stands for | EXtensible Stylesheet Language
# The World Wide Web Consortium (W3C) started to develop XSL because there was a
need for | XML-based Stylesheet Language
# XSL ________ how the XML document should be displayed | describes
# XSL consists of three parts. Which are | XSLT, Xpath, XSL-FO
# XSL processors do parses the XML source and tries to find out the matching
_______ rule. | template
# _____ in XSL do allow the element to be processed for multiple times, each time
producing different result. | Modes
# Templates are been ordered according to their ________ which can be specified
with the priority attribute. | priority
# An attributes can be accessed in the way similar to the elements. Notice ____ in
front of the attribute name | @
# Which of these axes which are used in XSL? | grand-parent
# A _____ instruction do contains the template, which is been applied to each node
selected with the select attribute. | xsl:for-each
# The xsl:element generates the elements in at time of processing | true
# The xsl:attribute do generates the elements in the time of processing. | true
# The Copy and _______ constructs are used for the nodes copying. | copy-of
# The ____ instruction do enables the conditional processing. | xsl:if
# The xsl:choose element is used for the purpose of selection between the several
possibilities. | True
# An xsl:numbers do inserts a formatted numbers into the ____ | output
# Stylesheet can do have ____ variables with the same name | several
# Value of the local variable is bounded to which element | xsl:when
# A _____ function returns number of nodes present in an argument node-set | count
# "Position" function do returns the number equal to context position | True
# DTD is: | Document Type Definition
# It defines the document structure with a list of ____ | legal elements
# DTD defines the document structure with a list of legal elements | true
# A DTD can be declared inline in your XML document, or as an | external reference
# If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE
definition with the following syntax | <!DOCTYPE root-element [element-
declarations]>
# <!DOCTYPE root-element [element-declarations]> | data
# f the DTD is external to your XML source file, it should be wrapped in a DOCTYPE
definition with the following syntax: | <!DOCTYPE root-element SYSTEM "filename">
# With DTD, each of your XML files can carry a ________ of its own format with it.
| description
# Elements are the main building blocks of both | XML and HTML documents
# Attributes provide _______ about elements. | extra information
# Entities are variables used to define | common text
# Entities are expanded when a document is parsed by an XML | parser
# Which of these characters cannot be used as entity references in XML | S
# PCDATA means: | parsed character data
# CDATA is text that _____ be parsed by a parser. | will not
# CDATA means: | character data
# An element declaration has the following syntax: | <!ELEMENT element-name
category>
# <!ELEMENT element-name category> | #PCDATA
# In a DTD, Attributes are declared with an _______ declaration | a. ATTLIST
# _______ can validate your XML against a DTD | Internet Explorer 5.0
# Schema is an _____ based alternative | XML
# An XML Schema describes the structure of an XML ____ | document
# XSD is: | XML Schema Definition
# Which of these are not supported by XML Schema? | defines which files are child
elements
# XML Schemas are the Successors of | DTD
# XML Schema became a W3C Recommendation | 02. May 2001
# One of the greatest strength of XML Schemas is the support for | data types
# With XML Schemas, the senders can ________ the data in a way that the receiver
will understand |
# With an extensible Schema definition you cannot: | All the above
# A simple element is an XML element that can contain only | text
# Which of these are not kinds of complex elements? | elements that contain only
numbers
# If an element has attributes, it is considered to be of complex types. | True
# The syntax for defining an attribute is: | <xs:attribute name="xxx" type="yyy"/>
# A default value is automatically assigned to the attributes when no other value
is specified. | true
# Attributes are by default: | optional
# If an XML element is of type "xs:date" and contain a string like "Hello World",
the element will | not validate
# Restrictions on XML elements are called | facets
# To specify how whitespace characters should be handled, we would use the
whiteSpace | constraints
# An empty complex element cannot have any contents, only | attributes
# How many indicators are present in Schema? | 7
# XML DOM is: | XML Document Object Model
# XML DOM defines a standard way for | accessing and manipulating XML documents
# The DOM is separated into how many different parts? | 3
# XML DOM - defines a standard set of objects for XML documents only | t
# The XML DOM is language- and platform | independent
# The XML DOM define a standard set of ______ for XML | objects
# The DOM treats the XML document as | tree-structure
# Each attribute, element and text in the XML document represents a | node in the
tree
# Both Mozilla and Internet Explorer support W3C's DOM specification | t
# There are differences between Internet Explorer's DOM and Mozilla's DOM. The
most important difference is that how they handle | white-space text nodes
# We can navigate between nodes with the use of their ________ to each other |
relationship
# Which of these are not the valid XML DOM relationships | nextNode
# Internet Explorer will skip white-space text node that are generated between
nodes (e.g. new-line characters), while Mozilla will not. | True
# The ________ method returns a node list that contains all elements with the
specified tag name in the same order as they appear in the source document. |
getElementsByTagname()
# The ________ method can be used to display the value of the specified attribute.
| getAttribute()
# The ______ method can be used to remove the specified node | removeChild()
# How many parameters are there for deleteData() method ? | 2
# The _____ method creates the new element node | createElement()
# How many parameters are there for replaceData() method | 3
# The _______ method is used to remove the attribute node. | removeAttributeNode()
# Which of the following is NOT done with JavaScript? | RGB Colors
# It is usually advisable to keep as much JavaScript as possible in which section?
| Head
# avaScript lines end with what? | semicolon
# Which of the following is NOT a type of popup box | radio
# The most common way to assign a value to a variable is by using what? | Equals
sign
# a++; is the same as which of the following | a=a+1
# To keep the browser from performing a script as soon as it is loaded you need to
write the script as a what? | function
# Actions that can be detected by JavaScript are called? | Events
# A variable that your webpage can store on or retrieve from the users computer is
known as ? | Cookie
# In JavaScript, capital letters are different from lowercase letters | yes
# Which is detected when the mouse moves over a link? | overMouse event
# How do you read the first character in a string? | stringName.charAt(0);
# Which has no syntax error? | alert("hello +3+ times");
# Which method will open a new window? | window.open(PageURL,WindowName,settings);
# Which method is used to search for a substring? |
stringVariable.indexOf(subString)
# Inside which HTML element do we put the JavaScript? | <script>
# What is the correct JavaScript syntax to write "Hello World"? |
document.write("Hello World")
# Where is the correct place to insert a JavaScript? | Both the <head> section and
the section are correct
# What is the correct syntax for referring to an external script called "xxx.js"? |
<script src="xxx.js">
# Which best describe void? | operator
# XML cannot be used with HTML | f
# XML is more advantageous to use than a fixed-length database system because | D.
All of the above
# SAX is | D. An XML parser
# PCDATA is | An XML element that contains parsed character data
# The Document Object Model | Is an XML parser
# You must use a parser to read an XML document | f
# XML stores data in fixed lengths | f
# XML is a subset of | SGML
# XML is used for web services | t
# An XML element can contain other XML elements | t
# A parent element cannot contain another parent element | f
# An attribute contains a | Name/value pair
# The asterisk at the end of an element name in a DTD means its | The DTD contains
zero to many of this element
# What does the parser do with the CDATA section of an XML document? | Passes the
data to the application that uses the XML document without any translation or
interpretation
# The DOCTYPE is used to | Identify the DTD for an XML document
# A child element can be a parent element. | True
# All XML markup tags must have an attribute. | False
# Special symbols can be inserted into an XML document using | A UNICODE value
# You avoid conflict between an XML special character and information in an XML
document by using a comment. | False
# A processing command is removed from an XML document before the XML document is
passed along to the application that uses the XML document. | False
# An XML document must contain all elements declared in the DTD. | False
# #PCDATA refers to | #PCDATA refers to
# A question mark following the name of a child name in the declaration of a parent
element means | The child element is optional.
# What is address, phone in the declaration ? | A group
# What is this: ? | References a shared DTD
# An image tag is an example of an EMPTY element. | True
# All XML markup tags must have an attribute. | False
# An element name can begin with | All of the above
# You cannot set valid options when declaring an attribute. | False
# #REQUIRED specifies that an element is required in all XML documents that use the
DTD. | False
# An XML schema is used to define a complex type. | True
# type=fiintegerfl means | Only integers can be used in the corresponding element.
# xmlns:xs=fihttp://www.w3.org/2001/XMLSchemafl is used to | Identify the XML
schema specifications used in the XML schema
# The xs:sequence tag | Specifies the sequence in which elements must appear in an
XML document
# xsi:schemaLocation=ficustomers.xsdfl is used to | Identify the location of the
XML schema
# You can require a specific value for an attribute by setting the value for fixed.
| True
# A regular expression can be used to specify complex restrictions for the content
of an element. | True
# You can specify a series of valid values for an element by using which of the
following in a regular expression? | |
# A facet is a valid value that can be assigned to an attribute | True
# The xs:enumeration tag is used to define a valid value for an attribute. | True
# XML can only be transformed into HTML or XHTML. | False
# Instructions for transforming an XML document are contained in the | XSL
stylesheet
# The statement states | For each customer element of the source document thats a
child of customers
# The element is used to | Extract text from the source document
# The statement is used to | Select the id attribute
# The element contains only XSL elements. | False
# The element instructs the CSS to evaluate a condition before extracting an
element. | False
# In order to sort numeric values, you must set the to | datatype=finumberfl
# You can repeat lines of code within the XSL stylesheet by defining an
applytemplate. | False
# Only a browser can access a result document. | f
# The SAX parser is able to transverse an XML document. | f
# The SAX parser creates a node by using | None of the above
# The SAX parser reacts to a new element by using | startElement()
# Which of the following is represented as a node in the tree a DOM parser creates?
| All of the above
# A Java transformer can use | All of the above
# The same version of a DOM parser must be used on all computers. | f
# A Stream is a series of characters that can be the results of transformation
performed by a Java transformer. | t
# A SAX parser | Reads a block of an XML document at a time
# You should use a SAX parser if a DOM parser is unable to load the XML document
into memory. | t
# The appendChild() method links a node to the current node. | t
# SaxonB is the only software that can process an XQuery. | f
# What kind of clause is used to specify the filter criteria? | where clause
# $x is an | Variable
# Order by | Places all return values in ascending order by default
# The where clause | Specifies the filter criteria
# All functions used by an XQuery are builtin functions. | f
# The data() function returns the text value of a variable. | f
# A constructor | Converts information contained in an XML document to another data
type
# The doc() function retrieves an XML document. | t
# The roundhalftoeven() function rounds half the value returned by a function. | f
# MSXML can only be used with JavaScript. | f
# Theasync = false means | Statements will not execute until the XML document is
being loaded.
# firstChild is a | Property containing a reference to the first child of an
element
# createElement(fititlefl) means | Create a new XML element
# fi/catalog/cd[@upc=fi + upc + fi] means | Find the upc attribute that matches the
value of the upc variable in the cd element
# An XML document can be validated against a DTD by calling the validate() method.
| t
# the appendChild() appends a node to the end of an XML document. | t
# The version is specified in ActiveXObject(fiMSXML2.DOMDocument.4.0fl) because |
Versions are designed to coexist with previous versions.
# The loadXML() method is used when the document is passed as a string. | t
# getAttribute(fiupcfl) retrieves the value of the upc attribute. | t
# Which of the following is (are) a valid XML name(s)? | :3:3:5:7
# DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for
a document. | f
# The DOM specification describes how strings are to be manipulated by the DOM by
defining the datatype _______. It is encoded using _______ encoding scheme. |
DOMString, Unicode
# An MNC receives at its headquarter from its subsidiaries, XML documents
containing various reports of that subsidiary. These reports need to be displayed
to the person responsible at the headquarter for that subsidiary in a userfriendly
manner (allowing searches through the document) and the person is allowed to make
any changes/comments that he/she desires. Once the user is done with all the
changes/comments the information needs to be fed into the central database. Which
of the following is MOST appropriate for processing these XML documents? | DOM
# Which of the following is an XMLbased service IDL that defines the service
interface and its implementation characteristics. | WSDL
# XML document must be valid? | t
# Every XML document must be well formed | t
# Every XML document must have an associated DTD or schema | f
# XML preserves white spaces | t
# What makes XML more powerful than HTML? | Its ability to adapt to new uses
# Unlike most other markup languages, including HTML, XML allows you to do what? |
Create new tags
# In what year did the World Wide Web Consortium release its draft of XML? | 1996
# What organization presented the first version of Starndardized Generalized Markup
Language (SGML) in 1980? | American National Standards Institute (ANSI)
# You can use XSL Transformation (XSLT) to convert database files described by XML
to Structured Query Language (SQL) statements, which creates the tables, indexes
and views that the XML data describes. | t
# Where on the browser will command window.status("text") display output | on the
status bar
# Which of the following is a JavaScript reprtition structure? | do/while
# A descendant having a new namespace cannot override the namespace defined by the
parrent element? | f
# text style sheets use which of the following MIME types? | text/css
# In SAX, to provide customized DTD handling, application need to implement |
EntityResolver
# Which of the following line of code are correct namespace declarations? |
<Title:catalog xmlns:book="http://www.fpt.edu.vn">
# The member access operator is which of the following | ,
# External DTDs use the keyword URL to specify the location of the DTD | f
# ___ is an artificial and informal languege that helps programmers develop
algorithms | pseudocode
# In XSLT, a string is a sequence of one or more Unicode character | f
# Internal DTDs specify the DTD within square brackets in the declaration itself |
t
# Leaf nodes have child nodes under them? | f
# Which of the following code snippets would you use to specify a default
declaration of a namespace | <schema xmlns:xs=http://www.w3.org/2001/XMLSchema>
# What does the sequence element of XSD indicate? | All the elements specified
within this element must compulsorily appear in the XML document, and they must
appear in the specified order
# Assertion: Implementing EDI involves high costs.Reason: EDI is built on fixed
transaction set.Which of the following hold TRUE for this Assertion-Reason? | BOTH
the assertion and the reason are TRUE, and the reason is a correct explanation of
the assertion.
# Which of the following statements will you use to declare an unrestricted element
called DESCRIPTION which can contain any element declared elsewhere in a DTD? | <!
ELEMENT DESCRIPTION ANY>
# John is an XML programmer. He writes the following code to represent the items of
a toy company: <?xml version=1.0 encoding=UTF-8?> <!--PRODUCTDATA is the root
element--> <PRODUCTDATA> <PRODUCT PRODID=P001> <PRODUCTNAME>Barbie
Doll</PRODUCTNAME> <DESCRIPTION> The price of this toy is < 200</DESCRIPTION>
<PRICE>$20.00</PRICE> <QUANTITY>12</QUANTITY> </PRODUCT> </PRODUCTDATA>
Identify the error in the above code and suggest a solution for the same. | Error
on line: <PRODUCT PRODID="P001"> Solution: He should use quotP001; instead of
"P001".
# Consider the following statements: Statement A: You can use the <!ATTLIST>
statement in a DTD to declare an attribute for an element. Statement B: A single
<!ATTLIST> statement can be used to declare multiple attributes for an
element.Which of the following is correct about the above statements? | Statement A
is True, and Statement B is False.
# 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? | <xsd:attribute
name="baseprice" default= 200 type="xsd:integer"/>
# Which facet of the string data type can be used to specify a set of values that a
data type can accept? | enumeration
# HTML code:<B> Customer </B><p>Michelle Abraham <br> Salmonella
Apartments<br> Programmer<br></p>Peter is asked to represent the information
given in the HTML code snippet above in XML. He represents the information as
follows: <CUSTOMER> <NAME> Michelle Abraham <ADDRESS> Salmonella Apartments
</NAME> </ADDRESS> <PROFESSION> Programmer </PROFESSION> </CUSTOMER> Identify the
error in the above code and suggest a solution for the same. | Error on line:
<NAME> Michelle Abraham <ADDRESS> Salmonella Apartments </NAME> </ADDRESS> .
Solution: The closing tag of the Name element should be written before the ADDRESS
element.
# Which of the following can be considered a valid element name? | Product$Name
# Identify the type of content of the PRODUCT element in the following XML code
fragment. <PRODDET> <PRODUCT> <PRODID=P001></PRODID><font
face="fnt__2013101081549_0" size="14" color="#000000" letterspacing="0"
kerning="1"> <PRODDESC>Baby Food </PRODDESC><font
face="fnt__2013101081549_0" size="14" color="#000000" letterspacing="0"
kerning="1"> <PRICEPERUNIT> 12 </PRICEPERUNIT> </PRODUCT> </PRODDET> |
ComplexType
# Which one of the following statements can be used to process the element
TICKETID, having the TICKET element as its ancestor | <xsl:for-each match =
"TICKET[TICKETID]" >
# Consider the following statements: Statement A: XML is a text-based markup
language that enables you to store data in a structured format by using meaningful
tags. Statement B: XML allows you to format data as per the requirements of the
application.Which of the following is correct about the above statements? | Both,
Statement A and Statement B, are True.
# Consider the following statements: Statement A: XML stand for eXtensible Markup
Language. Statement B: CSS stand for Creative Style Sheets.Which of the following
is correct about the above statements? | Statement A is True, and statement B is
False.
# Which of the following statements correctly states the difference between HTML
and XML? | HTML focuses on presentation of data, while XML focuses only on data and
not on how the data is to be presented.
# Which of the following set of statements will you use to process all the child
nodes of the root node? | <xsl:template match= /> <xsl:apply-templates/>
</xsl:template>
# Consider the following statements: Statement A: XML enables you to store data
in a structured format by allowing you to create customized tags. Statement B:
XML documents can be easily interpreted by target systems. Which of the following
is correct about the above statements? | Both, Statement A and Statement B, are
True.
# Consider the following statements: Statement A: XSLT is a superset of the CSS
functionality. Statement B: XSLT is an application of XML.Which of the following
is correct about the above statements? | Statement A is False, and statement B is
True.
# Identify the correct syntax for declaring an internal DTD | <!DOCTYPE rootelement
[element and attribute declarations]>
# Which of the following statement is the correct syntax for declaring an external
DTD? | <!DOCTYPE rootelement SYSTEM [element and attribute declarations]>
# Give the content of books.xml file in the picture.To display the title of book,
the following javascript is developed: <script language=javascript> function
fnLoadXML() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera,
Safari xmlhttp = new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp = new
ActiveXObject(Microsoft.XMLHTTP); } xmlhttp.open(GET, books.xml, false);
xmlhttp.send(); xmlDoc = xmlhttp.responseXML; var
arrTitle=xmlDoc.getElementsByTagName(title); for (i=0; i<arrTitle.length; i++) {
??? document.write(<br>); } }</script> |
document.write(arrTitle[i].childNodes[0].nodeValue);
# Consider the following XML document: <?xml version=1.0?> <ORDERDETAILS>
<PRODUCT ID=P001 NAME=Mini Bus PRICE=75><ORDER ID=O001> <SHIP_ADD>10
NEWSLAND ESTATE, NY</SHIP_ADD> <QUANTITY>30</QUANTITY> </ORDER> <ORDER
ID=O002> <SHIP_ADD>11 NEWSLAND ESTATE, NY</SHIP_ADD>
<QUANTITY>50</QUANTITY></ORDER> </PRODUCT> </ORDERDETAILS> Which of the following
code snippets will you use to display the product of price and quantity | Choose D
# The data about employees is stored in an XML document. The data is to be
presented in a browser window in the ascending order of BASICPAY and descending
order of EMPLOYEECODE. Which of the following code snippets should be used in the
XSLT style sheet to sort the employee data? | <xsl:sort select=BASICPAY data-
type=number order=ascending/> <xsl:sort select=EMPLOYEECODE data-
type=text order=descending/>
# For the XML parser to ignore a certain section of your XML document, which syntax
is correct? | <![CDATA[ Text to be ignored ]]>
# What is the correct HTML for referring to an external style sheet file named
mystyle.css? | <style src="mystyle.css">
# What is the correct CSS syntax for making all the <p> elements bold? | p {font-
weight:bold;}
# What type of method does SAX use to process XML documents? | Event-based
# Which one of the following sets of interfaces are part of the SAX2 API? |
ContentHandler, ErrorHandler, and DTDHandler
# Which of the following is the best description of the characters() method? | It
is a method of the SAX ContentHandler interface to receive notifications on the
presence of character data.
# Consider the following statements: Statement A: You can point at a single
document by using a hyperlink in HTML. Statement B: HTML links are
multidirectional. which of the following is correct about the above statements? |
Statement A is True, and Statement B is False.
# Consider the following statements: Statement A: Java Architecture for XML
Binding (JAXB) provides a fast and convenient way to bind between XML schemas and
Java representations, making it easy for Java developers to incorporate XML data
and processing functions in Java applications. Statement B: JAXB provides methods
for unmarshalling (writing) XML instance documents into Java content trees, and
then marshalling (reading) Java content trees back into XML instance documents. |
Statement A is True, and Statement B is False.
# Consider the following statements: Statement A: The xjc schema compiler, also
called the binding compiler, is an important part of a JAXB implementation. The
compiler binds a source XML schema to a set of schema-derived program elements. The
binding is described by an XML-based binding language in a binding file. The
binding compiler produces a set of packages containing Java source files and JAXB
property files. Statement B: In most cases, the default bindings generated by the
binding compiler are sufficient. However, there are cases where you might want to
modify the default bindings (for example, you might want to provide more meaningful
package names than are generated by default), you can use the following syntax: xjc
schema_file.xsd g package_name | Statement A is True, and Statement B is False.
# The following paragraph describes the differences between XML and HTML but there
are some FEATURES are NOT correct. Please find out them. XML features * Defined
set of tags designed for web display * Format driven * End tags required for
well-formed documents * Quotes required around attributes values * Slash required
in empty tags HTML features * User definable tags * Content driven * End tags
not required * Quotes not required * Slash not required | It should be swap
between Defined set of tags designed for web display and Format driven of XML
to User definable tags and Content driven of HTML
# Which one of the following XLink attributes allows you to specify the target of a
link? | href
# In XLink, how can you ensure that the content of a linked document appears in a
new browser window | By setting the value of the show attribute to new.
# Please read the following description about JAXB and choose the correct component
to fill in blank in the JAXB Architectural Overview picture.A JAXB implementation
consists of the following architectural components: + Schema compiler: Binds a
source schema to a set of schema-derived program elements. The binding is described
by an XML-based binding language. + Schema generator: Maps a set of existing
program elements to a derived schema. The mapping is described by program
annotations. + Binding runtime framework: Provides unmarshalling (reading) and
marshalling (writing) operations for accessing, manipulating, and validating XML
content using either schema-derived or existing program elements. | Schema
Generator
# John, an XML developer, uses DOM to define the logical structure of documents and
the way a document is accessed and manipulated. He wants to use XML DOM objects to
traverse, read, and manipulate the structure and content of an XML document. John
wants to represent the complete document map, which contains all the information in
an XML document. He also wants to create an instance of the DOMDocument object to
be able to work with any XML document. Which one of the following objects should
John use? | DOMDocument
# What are the types of errors handled defined by the SAX ErrorHandler interface?
| Warning, Error, Fatal-Error
# Which of the following functions in SAX parser notifies an XML document handler
about the start of an element in an XML document? | startElement()
# Which of the following handler interfaces is used by the SAX API to validate
error? | ErrorHandler
# Which package contains the interface that provides methods to parse XML documents
| org.xml.sax package
# What is the full form of SAX? | Simple API for XML
# Which one of the following statements can be used to process the element
TICKETID, having the TICKET element as its ancestor | <xsl:for-each match =
"TICKET/TICKETID" >
# Property documentElement of DOMDocument object return _____. | an object
representing the root element if the XML document
# Consider the following statements: Statement A: A namespace is a method of
preventing conflicts between elements having the same names. Statement B: A
namespace URI is the same as a Web URI. Which of the following is correct about the
above statements? | Both, Statement A and Statement B, are True.
# What does method characters() of ContentHandler interface receive events for? |
Character data
# 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 | <xsd:attribute
name="baseprice" default= 200 type="xsd:integer"/>
# Which of the following is NOT a valid CSS selector? | HEAD selectors
# Which is the correct way to use the union operator | <xsl:apply-templates
select=/CD/Artist | /Tape/Artist />
# Which of the following defines what is meant by a valid document? | A document
which conforms to the rules of a DTD
# Which of the following strings are a correct XML name? | xslNewElement
# XML tags are case sensitive | t
# By default the white space in elements is not truncated. | t
# Are comments processed by the processor? | f
# #REQUIRED specifies that an element is required in all XML documents that use the
DTD. | f
# Is the DOCTYPE declaration compulsory? | no
# Is the following attribute valid? <!ATTLIST Test4 an_attribute ID #FIXED
"value"> | No
# An XML Schema defines how many child elements can appear in an XML document? | t
# For each element type associated with a sequence element, there must be an
element in the XML instance in the same order? | t
# Is it legal to have an element and a complex type with the same name? | y
# Match the xml data against its corresponding data type in XSD schema?
<start>05:30:10.5</start> | time
# If you import a stylesheet, the templates in it have lower precedence than
those in the current stylesheet. | t
# the xsl:if, xsl:else and xsl:else-if elements can be used to control program
flow. | t
# In the body of a style sheet, CSS rule properties are followed by a _____. |
colon
# Considering the following XML document, what is the result of count(//*): <?xml
version="1.0" encoding="UTF-8"?> <root> <employee id="45">
<name>John</name> <salary>$100,000</salary> </employee>
</root> | 4
# treaming pull parsing refers to a programming model in which _ | client
application calls methods on an XML parsing library when it needs to interact with
an XML infoset
# DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for
a document | f
# The DOM specification describes how strings are to be manipulated by the DOM by
defining the datatype _______. It is encoded using _______ encoding scheme |
DOMString, Unicode
# An MNC receives at its headquarter from its subsidiaries, XML documents
containing various reports of that subsidiary. These reports need to be displayed
to the person responsible at the headquarter for that subsidiary in a user-friendly
manner (allowing searches through the document) and the person is allowed to make
any changes/comments that he/she desires. Once the user is done with all the
changes/comments the information needs to be fed into the central database. Which
of the following is MOST appropriate for processing these XML documents? | DOM
# Which of the following is an XML-based service IDL that defines the service
interface and its implementation characteristics | WSDL
# Which statement about XML is true | Elements may nest but not overlap
# What is the correct declaration syntax for the version of XML document | <?xml
version="1.0"?>
# How is an empty element field defined | All of the above
# XML document must be valid? | t
# Every XML document must have an associated DTD or schema | f
# XML preserves white spaces | t
# Which is not a correct name for an XML element | <first name>
# What makes XML more powerful than HTML? | Its ability to adapt to new uses
# Unlike most other markup languages, including HTML, XML allows you to do what? |
Create new tags
# In what year did the World Wide Web Consortium release its draft of XML | 1996
# What organization presented the first version of Starndardized Generalized Markup
Language (SGML) in 1980? |
# You can use XSL Transformation (XSLT) to convert database files described by XML
to Structured Query Language (SQL) statements, which creates the tables, indexes
and views that the XML data describes | t
# Which Statement about xml is true | Elements may nest but not overlap
# Which syntax is used to insert comments into an XML document? | <!-This is a
comment->
# Which statement is true? | All XML elements must be properly closed
# Which statement is true? | XML tags are case sensitive XML documents must have a
root tag XML elements must be properly closed.
# Which is not a correct name for an XML documents | <1dollar>
# XML is a Complement to | HTML
# XML Schema is designed to | be self-descriptive
# XML uses | an XML Schema to describe the data
# XML Can be Used to | Create new language.
# XML is the mother of | WAP and WML
# How do you call a function named "myFunction | myFunction()
# How do you write a conditional statement for executing some statements only if
"i" is equal to 5? | if (i==5)
# How do you write a conditional statement for executing some statements only if
"i" is NOT equal to 5? | if (i != 5)
# How many different kind of loops are there in JavaScript | Two. The "for" loop
and the "while" loop
# How does a "for" loop start? | for (i = 0; i <= 5; i++)
# What is the correct way to write a JavaScript array? | var txt = new
Array("tim","shaq","kobe")
# How do you round the number 8.25, to the nearest whole number? | Math.round(8.25)
# How do you find the largest number of 6 and 8? | Math.max(6,8)
# What is the correct JavaScript syntax for opening a new window called "window5" ?
| window.open("http://www.ex-designz.net","window5")
# How do you put a message in the browser's status bar? | window.status = "put your
message here"
# How do you find the client's browser name? | navigator.appName
# You define an array using | var myarray = new Array();
# Onclick is equivalent to which two events in sequence | onmousedown and onmouseup

# Which best describe void? | An operator


# Which property would you use to redirect visitor to another page? |
window.location.href
# Which of the following JavaScript statements use arrays? |
setTimeout("a["+i+"]",1000)
# A DTD is an XML document | f
# DTDs contain declarations for elements and entities | t
# DTDs are used to validate XML documents | t
# Each XML document can be represented as a tree structure | t
# Ability to create one's own tags is XML's greatest disadvantage | f
# DTDs are made up of three blocks of declarations and the DOCTYPE declaration | f
# Elements, attributes and entities can be declared in any order | t
# DOCTYPE declarations are specified in the prolog of the XML document | t
# Internal DTDs specify the DTD within square brackets in the declaration itself |
t
# External DTDs use the keyword URL to specify the location of the DTD | f
# An XML Schema defines the structure of an XML document | t
# An XML Schema is an XML-based add-on to DTDs | f
# XML syntax is used as the basis to create a schema, so it can be stored with the
same extension .xml (dot XML). | f
# An XML Schema defines how many child elements can appear in an XML document | t
# An XML Schema defines whether an element is empty or can include text | t
# The order and the number of elements that appears in the mixed content cannot be
specified in the schema | f
# If the value of maxOccurs attribute is kept unbounded, it means that the element
can appear unlimited number of times | t
# Elements with complex type may contain nested elements and have attributes | t
# The default value for the minOccurs attribute is 0 | f
# When a minOccurs attribute is used, there cannot be a maxOccurs attribute in the
same line | f
# Mixed content means that an element whose structure is the complex type can
contains elements with attributes | f
# Element content means a complex type element that contains only elements | f
# The order and the number of elements appearing in the mixed content cannot be
specified in schemas | f
# Element content cannot have attributes. | t
# The sequence element provides an XML representation for describing a selection
from a set of element types | f
# The all element requires that each element in the group must occur at most once |
t
# For each element type associated with a sequence element, there must be an
element in the XML instance in the same order | t
# The choice element cannot mention the minOccurs and maxOccurs attribute | f
# A custom user defined datatype can be created using the <simpleType> definition |
f
# Elements of simple type describe the content and data type of an element | t
# Elements of simple type constitute the structure of an XML document | f
# A built-in simple element can contain a default value or a facet value | f
# A default value is the value that is assigned automatically to the element when
there is no other value specified | t
# Which of the following strings are a correct XML name | xslNewElement
# XML tags are case sensitive | t
# By default the white space in elements is not truncated. | t
# Are comments processed by the processor? | f
# What does #REQUIRED attributes mean ? | The attribute value must be included in
the element
# Is the DOCTYPE declaration compulsory? | no
# Is the following attribute valid? <!ATTLIST Test4 an_attribute ID #FIXED
"value"> | no
# An XML Schema defines how many child elements can appear in an XML document? | t
# Is it legal to have an element and a complex type with the same name? | y
# If you import a stylesheet, the templates in it have lower precedence than
those in the current stylesheet. | t
# What does a validating parser if it encounters a valid DOCTYPE declaration but it
cannot load the associated DTD file because the given URL is wrong? | This is a
fatal error: the parsing will stop immediately.
# Streaming pull parsing refers to a programming model in which _____. | a client
application calls methods on an XML parsing library when it needs to interact with
an XML infoset
# Can you define list of lists in XML Schema ? | n
# What kind of separator can be used in a list datatype in XML Schema ? |
whitespace (" ");
# Is the text node a direct child of the enclosing element in XPath |n
# The child axis (XPath) can select only element nodes. | t
# What is the default axis in XPath ? | child
# Do you have child nodes of type entity references (internal or external) from
XPath's perspective | no
# Which of the following types of nodes can have children ? | document element
nodes + root nodes
# is the following element declaration valid in XML Schema | no
# Can you nest attribute groups inside other attribute groups | y
# Is the DTD element type "ANY" equivalent with the XML Schema element "anyType" ?
| no
# Is the following XML Schema definition valid ? | no
# Which of the following can be declared as a direct child of a XML Schema
element ? | element + attribute
# An attribute specified in XML Schema has a default value. Is this case the
attribute can also be: | optional
# Can a simple type (from XML Schema ) have children | no
# Can a simple type (from XML Schema ) have attributes | no
# Is it legal to have an element and a complex type with the same name ? | yes
# If the attribute minOccurs is specified but the attribute maxOccurs is not, what
is the default value of the latter ? | minOccurs
# What is the default type for an element in XML Schema ? | anyType
# Parameter entities are: | used only in DTDs + always parsed entities
# Are the following element declarations identical ? | no
# Is the following XML instance valid | no
# Is the DOCTYPE declaration compulsory ? | no
# What does a validating parser if it encounters a valid DOCTYPE declaration but it
cannot load the associated DTD file because the given URL is wrong ? | this is a
fatal error: the parsing will stop immediately;
# Can you have external entities in an attribute of type CDATA | no
# Can you retrict the content of an XML element to take only values from an
enumeration list (using DTDs) | no
# you have an attribute of enumerated type. What are the valid values for it ? |
NameChar
# The values of an attribute of type ID is unique | per document instance;
# Can you use the keywords IGNORE and INCLUDE in the internal subset of a DTD | no
# Can you nest DTD conditional sections | y
# What is the format of DTDs ? | Extended Backus-Naur Form (EBNF);
# Are XML and DTD comments in the same format | y
# DTD declarations from the external subset have priority over the declarations
from the internal subset | f
# What is the "Document Type Declaration" ? | the DOCTYPE declaration
# XML was designed to describe data. | t
# XML tags are predefined | f
# XML consists of rules to identify and define different parts of the document | t
# XML offers a standard way to add markup to documents | t
# XML forms the basis to create languages like WAP and WML. | t
# XML describes its data along with its presentation | f
# Client reduces the server load by sending large amount of information in one XML
document to the server. | t
# XML uses only XSLT to be transformed to HTML | f
# XML can be implemented as middle-tier for client server architectures | t
# XML allows data exchange as it has no formatting instructions | t
# XML documents are stored with xml extension | t
# Document prolog can consist of version declaration, DTD comments and processing
instructions. | t
# XML declaration informs the processing agent about the version of XML being | t
# Root element must not be a nonempty tag. | f
# The logical structure gives information about the elements and the order in which
they are to be included in the document | t
# XML syntax is colored | t
# XML is not validated. | f
# XML parser reads the document after it is created. | t
# XML is transformed only via XSLT | f
# XML document is edited by keeping DTD in mind | t
# XML parser is calculated against its speed and performance | t
# XML parser does its work after the processor converts the document into a data |
f
# Browser displays the content directly after the parser passes the data. | f
# Crimson and Xerces are some of the browsers | f
# Comments are processed by the processor. | f
# Comments appear only in the document prolog. | f
# Processing instructions are application specific. | t
# Processing instructions are passed to the target, | t
# </PITarget <instruction>/> is a processing instruction | f
# Character data is treated as regular text | f
# Characters like ">" and "&" can be used in PCDATA sections. | f
# Characters like ">" and "&" can be used in CDATA sections. | t
# CDATA starts with "<[!CDATA[" and ends with "]]>". | t
# Parameter entities use ampersand (&) and semicolon (;) as delimiters | f
# Browser has the ability distinguish duplicate element names in an XML document |
f
# XML developer has to ensure the uniqueness of the element names and attributes in
a document | t
# A namespace is a collection of names that can be used as element names or
attribute names in XML document | t
# In XML, elements are distinguished by using DTD | f
# Attributes belonging to a particular elements within some namespace is also a
part of the same namespace | f
# An attribute without a prefix is in default namespace | t
# xmlns:localname="value" is the correct syntax for including a attribute in a
namespace. | f
# <Student:Name age ="12">Kevin</ Student:Name> it the correct for associating age
with the student namespace. | f
# The prefix used in an attribute is used as a reference to the namespace. | t
# <elemencName xmlns=' URL' > is the correct syntax for declaring a default
namespace | t
# The descendant has the same namespace as the parent element even if it has a new
namespace definition | f
# A default namespace is used by an element and its child elements if the element
has a namespace prefix | f
# A default namespace applies to the element on which it was defined and all
descendants of that element | t
# A descendant having a new namespace cannot override the namespace defined by the
parent element | f
# A DTD is an XML document | f
# DTDs contain declarations for elements and entities | t
# DTDs are used to validate XML documents | t
# Each XML document can be represented as a tree structure | t
# Ability to create one's own tags is XML's greatest disadvantage | f
# DTDs are made up of three blocks of declarations and the DOCTYPE declaration | f
# Elements, attributes and entities can be declared in any order | t
# DOCTYPE declarations are specified in the prolog of the XML document | t
# Internal DTDs specify the DTD within square brackets in the declaration itself |
t
# External DTDs use the keyword URL to specify the location of the DTD | f
# An XML Schema defines the structure of an XML document | t
# An XML Schema is an XML-based add-on to DTDs. | f
# XML syntax is used as the basis to create a schema, so it can be stored with the
same extension .xml (dot XML). | f
# An XML Schema defines how many child elements can appear in an XML document | t
# An XML Schema defines whether an element is empty or can include text | t
# The order and the number of elements that appears in the mixed content cannot be
specified in the schema | f
# If the value of maxOccurs attribute is kept unbounded, it means that the element
can appear unlimited number of times | t
# Elements with complex type may contain nested elements and have attributes | t
# The default value for the minOccurs attribute is 0 | f
# When a minOccurs attribute is used, there cannot be a maxOccurs attribute in the
same line | f
# Mixed content means that an element whose structure is the complex type can
contains elements with attributes | f
# Element content means a complex type element that contains only elements | f
# The order and the number of elements appearing in the mixed content cannot be
specified in schemas | f
# Element content cannot have attributes | t
# The sequence element provides an XML representation for describing a selection
from a set of element types | f
# The all element requires that each element in the group must occur at most once |
t
# For each element type associated with a sequence element, there must be an
element in the XML instance in the same order | t
# The choice element cannot mention the minOccurs and maxOccurs attribute | f
# A custom user defined datatype can be created using the <simpleType> definition |
f
# Elements of simple type describe the content and data type of an element | t
# Elements of simple type constitute the structure of an XML document | f
# A built-in simple element can contain a default value or a facet value. | f
# A default value is the value that is assigned automatically to the element when
there is no other value specified | t
# Cascading Style Sheets derived the term cascade from the ability to mix and match
rules from different sources | t
# Cascading Style Sheets lack support to define spacing between data, | f
# A CSS style sheet is associated with an XML document using the processing
instruction xml-stylesheet. | t
# Style sheets allow you to mix presentation markup with data | f
# Style sheets contain one or more rules about the appearance of data | t
# Simple selectors match occurrence of an element based on a condition | f
# ID selectors are used to define style rules for unique elements. | t
# In simple selectors you define same property declarations for multiple elements
by specifying a comma separated list of element names | t
# ID selector match elements which have an id attribute. | t
# Universal selectors match every occurrence of parent and child elements | f
# Declarations are sorted by weight and origin | t
# Inheritance enables one entity to acquire the properties of another entity | t
# A child element inherits the properties of an ancestor element only if it is an
immediate child | f
# Declarations are sorted by the order specified |
# There is always only one style rule defined for every element | f
# CSS uses complex elements to format the documents | f
# XSL describes how the XML document should be displayed, | t
# XSL elements can be used to perform complex calculations | t
# XSL is a stylesheet application specifically for HTML, | f
# CSS is a simple, styling-based approach that does not require advanced
programming skills | t
# XPath provides multiple syntax that can be used for queries, addressing and
patterns | f
# XPath can be thought of as a query language like SQL. | t
# In XPath, the structure of an XML document is viewed conceptually as a pyramid, |
f
# XPath provides a common syntax for features shared by XSLT and XQuery | t
# XPath is used to navigate through elements and attributes in an XML document | t
# XSLT allows any kind of data to be transformed into a boolean value | t
# A node-set is an unordered group of nodes from the input document. | t
# A string is a sequence of zero or more Unicode characters, | t
# The numbers like 43 or -7000 that look like integers are stored as float | f
# A string is a sequence of one or more Unicode characters | f
# The local-name () function returns the name of the current node or the first node
in the specified node set - without the namespace prefix | t
# The floor (num) function returns the largest integer that is not greater than the
number argument. | t
# The only allowed operation in a result tree fragment is on a number | f
# In a substring o function, the index of the first character is 0. | f
# The translate () function returns the first argument string with occurrences of
characters in the second argument string replaced by the character at the
corresponding position in the third argument string. | t
# An XSLT processor takes three things as input such as XSLT stylesheet, XML
document and Document Type Declaration | f
# The XSLT engine begins by reading in the XSLT stylesheet and caching it as a
look-up table | t
# For each node it processes, it will look in the table for the best matching rule
to apply | t
# Starting from the root node, the XSLT engine finds rules, executes them, and
continues until there are no more nodes in its context node set to work with | t
# XSLT can also be called as XSLT document or transformation script | f
# Document Object Model treats a document as an object? | t
# Document Object Model is platform-dependent? | f
# Document Models can be hierarchical model, non-linear model or object model? | f
# Document Object Model allows programmers to write different set of code for
interpreting document running on any platform? | f
# Document Object Model allows programs and scripts to access and update content,
structure and style of documents in a standard way | t
# Linear Model is applied to dynamic document object? | f
# The hierarchical structure of the XML document is known as the XML Tree and it
consists of root, nodes and leaves? | t
# Tree model is applied to static documents? | f
# Object Model is a collection of objects for accessing and manipulating the XML
data? | t
# W3C DOM uses both tree and object model concepts? | t
# XML parser is a software package, library or module that reads XML document | t
# Schema checks for the validity of the XML document? | f
# DTD checks for the structure and content of the XML document | f
# Well-formedness of XML documents means that each starting tag has a matching end
tag | t
# XML parser can perform operations on input of any data type | f
# DOM parser is used for navigating the document recursively | f
# StAX parser has no built-in document navigation support | t
# SAX parser has high memory consumption | f
# StAX parser parses the XML document once. | f
# DOM parser allows random access to document. | t
# A node can have more than one parent nodes | f
# DOM is a W3C standard. | t
# DOM considers all items present in XML document as node | t
# Leaf nodes have child nodes under them | f
# Element node is the starting point of the DOM tree | f
# Document object is the only object that is created. | t
# loadXML() method is used to load an XML file | f
# load() method is used to load a string | f
# new ActiveXObject(Microsoft.XMLDOM); creates an XML document object. | t
# ownerDocument attribute associates a child node with the parent node | t
# SAX is developed by XML-DEV mailing list | t
# SAX includes functions that are not supported by DOM. | t
# SAX supports random access | f
# SAX requires the entire document to be stored in the memory | f
# SAX makes sequences of call to a handler function | t
# Which of the following packages present in JAXP belong to SAX? | None of the
others
# The abc.xsd fragment<xsd:element name="person" type="personType"/>
<xsd:complexType name="personType"> <xsd:sequence> <xsd:element name="firstname"
type="xsd:string"/> </xsd:sequence> </xsd:complexType> The cde.xml fragment <person
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://xml.netbeans.org/schema/abc'
xsi:schemaLocation='http://xml.netbeans.org/schema/abc abc.xsd'>
<firstname>12345</firstname> <lastname>KhanhKT</lastname> </person> Choose the
correct statement Choose one answer. | The cde.xml is not valid because the parser
not determine lastname
# Given: <?xml version="1.0" encoding="UTF-8"?> <email> <to>Joe</to>
<from>John</from> <heading>Final Exam</heaDing> <body>Try your self</body> </eMail>
Choose the correct statement Choose one answer. | The document is not well-formed
# Given some statement (a) window.handleError (b) window.status = "Error: " +
errType + " on line " + errLineNum; (c) window.onHandleError (d) window.onError
Which of these is the command to enable error handling on a Web page? | d
# Which Exception is used when JAXB operation is applied? | JAXBException
# What are difference between schema and DTD? | DTDs do not have a facility to
describe numbers, dates but the Schemas do
# Which of the following types of parses is issued for event-based parsing? | Both
SAX and StAX
# Which syntax is used to declare the attribute of an element in DTD? | None of the
others
# How can the data source be validated against the associated schema in
unmarshalling operation? | Using setSchema method or using setValidating method
# Consider the xml fragment 15. <aaa></aaa> 16. <bbb></bbb> Choose the correct
answer when the SAX is used | At least callback method in content handler will be
triggered after line 15 and before line 16
# Microsoft's version of scripting that uses the Java syntax is called ________. |
b. None of the others
# Given: <HTML> <HEAD> <TITLE>DHTML Event Model - ONLOAD</TITLE> <SCRIPT LANGUAGE =
" "> var value = 0; function startTimer(){window.setInterval( "updateTime()", 1000
); } function updateTime(){ value++; pText.innerText = value; }</SCRIPT> </HEAD>
<BODY ONLOAD = "startTimer()"> <P><A ID = "pText">0</A></P> </BODY> </HTML> | It
counts the number of seconds elapsed viewing the page.
# Which method is used to get all descendant of current element in traversing DOM
tree? | getChildNodes
# Which features must the well-formed XML document have? | none
# Which exception is used to catch Exception when the XMLEventReader is used |
XMLStreamException
# What does the xsl:apply-imports for? | Apply the template to selected location
from xsl:apply-imports
# To refer to a particular location or element in the array, we specify the name of
the array and the ________ of the particular element in the array | position number
# Why does DTD need? | place preconditions on the data the programs read
# Which contains in XML document's prolog | XML Declaration or/and Document Type
Declaration
# Given: < SCRIPT LANGUAGE = " " > var theArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ];
modifyArray( theArray[ 3 ] ); document.write( theArray.join( " " ) ); function
modifyArray( i ) { i = 11; } </SCRIPT> What will the browser display if the
following script is executed? | 1 2 3 4 5 6 7 8 9
# Given: <SCRIPT LANGUAGE = " "> var c = new Array(8) for( var i = 0; i < 10; i++ )
c[i] = i;document.write(c[9]) </SCRIPT> What would the browser display if this
script was executed? | 9
# Choose the correct syntax of x:parse in XML tag of JSTL | <x:parse var="x"
scope="session" xml = "${xml}"/>
# Consider the Formal Public Identifier -//W3C//DTD 1.8//IND Choose the correct
answer | The Formal Public Identifier is not valid because the fourth field is not
valid
# Which language is used to describe the DTD syntax? | c. Extended Backus-Naur Form
# Given <?xml version="1.0" encoding="UTF-8"?> <customers> <customer
password="khanhkieu"> <username>KhanhKT</username> </customer> <customer
password="123456"> <username>Hatruc</username> </customer> </customers> Choose the
correct XPath statement that is used to query to get password value of username
"Hatruc" | b. //customer[username=Hatruc]/@password
# The simplest way to reference a DHTML element is by its ________ attribute. | id
# The declaration is used to declare the xml tag library using in JSP as | none
# Which ways are the CSS style rules applied to HTML? | none
# What will value contain after the following code is executed? var value = new
Date(); value = value.valueOf(); Choose one answer. | a large integer representing
the number of milliseconds between midnight January 1, 1970 and the current date
# Given: 1. <?xml version="1.0"?> 2. <note date="12/11/99"> 3. <to>Ravi</to> 4.
<from>Amit</from> 5. <heading>Final Exam</Heading> 6. <body>Try yourself<body> 7.
</note> Choose the correct statement | Line 6 contains error
# Which statement is used to describe about multi-pipeline? | XML is mapped to Bean
object, then it applied to many JSP
# Consider the following HTML document. <HTML> <HEAD><TITLE>Frames
collection</TITLE> </HEAD> <FRAMESET ROWS = "100, *"> <FRAME SRC = "top.html" NAME
= "first"> <FRAME SRC = "" NAME = "second"> </FRAMESET> </HTML> Which of the
following is the proper way to access the frame "second" from the script of an
outside document? | document.frames( "second")
# Given the XML code fragment <?xml version="1.0" encoding="UTF-8"?> <library
xmlns="http://www.fpt.edu.vn" xmlns:article="http://www.article.fpt.edu.vn"
xmlns:person="http://www.biolography.com.vn"> <book article:id="B0001" id="IB8976">
<article:title>The Firm</article:title> <person:author>John Grisham</person:author>
<article:price>99</article:price> </book> </library> Choose the correct statement |
The XML code fragment is not validated because no DTD document is referenced
# <?xml version=1.0 encoding=UTF-8?> <aaa> <bbb>ccc</bBb> </aaa> Choose the
correct answer | The document is not well-formed
# Given the dtd file: <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT FINALs
(CLASS1|CLASS2)+> <!ELEMENT CLASS1 (#PCDATA)> <!ATTLIST CLASS1 count CDATA
#REQUIRED> <!ELEMENT CLASS2 (#PCDATA)> <!ATTLIST CLASS2 count CDATA #REQUIRED>
Choose the correct statement | The dtd file is valid
# What are difference between XML-Enabled and XML Native? | XML-Native are
supported the query with XQuery and XPath but the XML-Enabled are supported the
query with SQL embedding XPath or XQuery
# Which of the following contradicts the notion of structured programming | goto
# Which of the following methods would you use to convert a list of Unicode values
into a string containing the corresponding characters? | fromCharCode
# Which of the following statements regarding filters and transitions is false? |
They are applied on a client computer at run time by the server.
# Given <?xml version="1.0" encoding="UTF-8"?> <xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xml.netbeans.org/schema/mail"
xmlns="http://xml.netbeans.org/schema/mail" elementFormDefault="qualified">
<xsd:element name="mail"> <xsd:sequence> <xsd:element name="to" type="xsd:language"
/><xsd:element name="from" type="xsd:token"/> <xsd:element name="header"
type="xsd:string"/> <xsd:element name="body" type="xsd:normalizedString"/>
</xsd:sequence> </xsd:element> </xsd:schema> Select the correct statement | The
XML Schema is not valid because the xsd:element must include simpleType or
complexType
# Given: <SCRIPT LANGUAGE = " "> var total = 0; stop: { // labeled compound
statement for ( var i = 0; i < 5; ++i ) { for ( var j = 0; j < 2 ; ++j ) { if ( i
== 2 ) break stop; total++; } total++; } total++; } total++;
document.writeln( total ); </SCRIPT> What would the browser display if it executed
the following script? | 7
# Given: Xml fragment document <aaa><bbb/></aaa> XSL fragment <xsl:import
href="aaa.xsl"/> <xsl:import href="bbb.xsl"/> The aaa.xsl fragment <xsl:template
match="bbb">testA</xsl:template> The bbb.xsl fragment <xsl:template
match="bbb">testB</xsl:template> Choose the correct statement | testB
# Consider: 1. XSL processor starts the root node and performs pattern matching in
the style sheet 2. The style rules of the template are applied to the content to
generate a result tree 3. XSL processor analyzes the templates and patterns
associated with them to process different parts of the document tree Rearranged
above steps for corrected processing of XSL | 1, 3, 2
# Which purpose is the schema declaration used to in XML file? | Determine instance
namespace applying to XML document
# How many type of XML parser does? | Validating Parsers and Non-Validating Parsers
# In the following line, the word writeln is a ________ which performs a task or
action in the script document.writeln("Hello World"); | method
# How many components do the JAXB Architecture provide | Schema compiler, Schema
generator, Binding runtime framework
# Given: < SCRIPT LANGUAGE = "JavaScript" > var theArray = [ 1, 2, 3, 4, 5, 6, 7,
8, 9 ]; modifyArray( theArray[ 3 ] ); document.write( theArray.join( " " ) );
function modifyArray( i ) { i = 11; } </SCRIPT> What will the browser display if
the following script is executed? | 1 2 3 4 5 6 7 8 9
# What is stored inside the variable value after the following line of code is
executed? | . The navigator object does not contain an attribute named version
# XML Fragment <tomcat-users> <role rolename="admin"/> <role rolename="manager"/>
<role rolename="user"/> <role rolename="tomcat"/> <user username="ide"
password="ee1KER95" roles="manager,admin"/> <user username="tomcat"
password="tomcat" roles="tomcat"/> <user username="khanhkt" password="trongkhanh"
roles="manager,admin"/> <user username="guest" password="123456" roles="username"/>
</tomcat-users>The Java code fragment using DOM API Document doc = db.parse(new
File(path + "WEB-INF/tomcat-users.xml")); XPathFactory xpf =
XPathFactory.newInstance(); XPath xpath = xpf.newXPath(); String exp =
"//user[contains(@username, 'a')]"; NodeList node = (NodeList) xpath.evaluate(exp,
doc, XPathConstants.NODELIST); Choose the correct statement. Assume that all code
and file path are correct | The application can get more than one node
# The declaration is used to declare the xml tag library using in JSP as | <%@
taglib prefix=x uri= http://java.sun.com/jsp/jstl/xml %>
# Which of the following is the proper method to apply the fliph filter to the
following H1 element? | The filter cannot be applied to this element
# The World Wide Web Consortium (W3C) started to develop XSL because there was a
need for | a. XML-based Stylesheet Language
# XSL ________ how the XML document should be displayed | a. describes
# XSL consists of three parts. Which are| a. XSLT, Xpath, XSL-FO
# XSL processors do parses the XML source and tries to find out the matching
_______ rule | a. template
# _ in XSL do allow the element to be processed for multiple times, each time
producing different result. | modes
# templates are been ordered according to their ________ which can be specified
with the priority attributte. | priority
# an attributes can be accessed in the way similar to the elements. Notice ____ in
front of the attribute name. | @
# Which of these axes which are used in XSL | a. grand-parent
# a_____ instruction do contains the template, which is been applied to each node
selected with the select attribute | a. xsl:for-each
# The xsl:element generates the elements in at time of processing. | true
# The xsl:attribute do generates the elements in the time of processing. | t
# The Copy and _______ constructs are used for the nodes copying. | copy-of
# The ____ instruction do enables the conditional processing | a. xsl:if
# The xsl:choose element is used for the purpose of selection between the several
possibilities | t
# An xsl:numbers do inserts a formated numbers into the ______ . | output
# Stylesheet can do have ____ variables with the same name. | several
# value of the local variable is bounded to which element. | b. xsl:when
# a_____ function returns number of nodes present in an argument node-set | count
# "Position" function do returns the number equal to context position | t
# it defines the document structure with a list of _______. | a. legal elements
# DTD defines the document structure with a list of legal elements. | t
# A DTD can be declared inline in your XML document, or as an | a. external
reference
# if the DTD is included in your XML source file, it should be wrapped in a DOCTYPE
definition with the following syntax | a. <!DOCTYPE root-element [element-
declarations]>
# You can also use a DTD to verify your own | data
# if the DTD is external to your XML source file, it should be wrapped in a DOCTYPE
definition with the following syntax: | a. <!DOCTYPE root-element SYSTEM
"filename">
# with DTD, each of your XML files can carry a ________ of its own format with
it.| c. description
# elements are the main building blocks of both | b. XML and HTML documents
# attributes provide _______ about elements. | a. extra information
# Entities are variables used to define | d. common text
# Entities are expanded when a document is parsed by an XML | parser
# Which of these characters cannot be used as entity references in XML? | d. $
# CDATA is text that _____ be parsed by a parser | will not
# CDATA means | b. character data
# An element declaration has the following syntax | a. <!ELEMENT element-name
category>
# Elements with only character data are declared with | c. #PCDATA
# In a DTD, Attributes are declared with an _______ declaration | b. ATTLIST
# ________ can validate your XML against a DTD. | IE 5
# Schema is an _____ based alternative | XML
# An XML Schema describes the structure of an XML _______ | document
# XSD is: | a. XML Schema Definition
# Which of these are not supported by XML Schema | a. defines which files are child
elements
# XML Schemas are the Successors of | DTD
# XML Schema became a W3C Recommendation | a. 02. May 2001
# One of the greatest strength of XML Schemas is the support for | data types
# With XML Schemas, the senders can ________ the data in a way that the receiver
will understand | describes
# With an extensible Schema definition you cannot: | all
# A simple element is an XML element that can contain only | text
# Which of these are not kinds of complex elements? | a. elements that contain
only numbers
# If an element has attributes, it is considered to be of complex types | t
# The syntax for defining an attribute is: | a. <xs:attribute name="xxx"
type="yyy"/>
# A default value is automatically assigned to the attributes when no other value
is specified. | t
# Attributes are by default: | optional
# If an XML element is of type "xs:date" and contain a string like "Hello World",
the element will | not validate
# Restrictions on XML elements are called | facets
# To specify how whitespace characters should be handled, we would use the
whiteSpace | constraints
# An empty complex element cannot have any contents, only | a. attributes
# How many indicators are present in Schema? | 7
# XML DOM is: | a. XML Document Object Model
# XML DOM defines a standard way for | a. accessing and manipulating XML documents

# The DOM is separated into how many different parts? | 3


# XML DOM - defines a standard set of objects for XML documents only. | t
# The XML DOM is language- and platform | a. independent
# The XML DOM define a standard set of ______ for XML | object
# The DOM treats the XML document as | a. tree-structure
# Each attribute,element and text in the XML document represents a | a. node
in the tree
# Both Mozilla and Internet Explorer support W3C's DOM specification. | t
# There are differences between Internet Explorer's DOM and Mozilla's DOM. The most
important difference is that how they handle | a. white-space text nodes
# We can navigate between nodes with the use of their ________ to each other. |
relationship
# Which of these are not the valid XML DOM relationships? | nextNode
# Internet Explorer will skip white-space text node that are generated between
nodes (e.g. new-line characters), while Mozilla will not. | t
# The ________ method returns a node list that contains all elements with the
specified tag name in the same order as they appear in the source document. | a.
getElementsByTagname()
# The ________ method can be used to display the value of the specified attribute.
| a. getAttribute()
# The ______ method can be used to remove the specified node. | a.
removeChild()
# How many parameters are there for deleteData() method ? (st art, length) | c.
2
# The _____ method creates the new element node | a. createElement()
# How many parameters are there for replaceData() method ? | 3
# The _______ method is used to remove the attribute node | a.
removeAttributeNode()
# A Markup Language is defined as a set of rules adding some meaning to the content
and structure of documents. | t
# Document Content is determined by | Semantic Markup
# Document Structure is determined by | Structural Markup
# ________ is a very powerful language and the mother of all markup languages. |
SGML
# HTML provides the advantage of creating customized tags making it easier for the
users to create their own tags. | f
# Data in HTML cannot be structured. | t
# HTML linking is one to one and is hardcoded in the HTML file. This indicates that
HTML has a robust linking mechanism which is an advantage of using HTML. | f
# XML is a Meta-Language. Select the option which best describes the statement
given above. | Describes other languages.
# XML data can be embedded in HTML. | t
# In a 3-tier model identify the front-end, middle-tier and back-end | Browser,
WebServer, Database Server
# The __________ structure of XML is much more powerful than _________ data
formats. | tree-based, fixed-length
# IE5 has an inbuilt XML Parser called | MSXML
# The 'standalone' attribute can be set to | Yes/No
# XML allows creation of multiple root elements | False
# Logical structure of data can be interpreted and used in many ways by various
applications due to XML tags. | True
# Using DTD, _________ parser checks for validity. | Validating
# Markup includes | All of the above
# All processing instructions begin and end with | <? ... ?>
# Assume <BODY> is used as the root element in an XML document. This indicates that
| Root element can be customized. + Root element describes the function of the
document.
# Tags can begin with | All of the above
# <xml> and <_Name> - Identify whether the following tags are valid or invalid |
Invalid, Valid
# Length of XML tag is dependent on the processor. | True
# Is the following code for commenting in XML valid? <!-- Comment1 <!-- Comment2
--> --> | Invalid
# XML declaration is also a processing instruction. | True
# Height="8" Weight="70"> Here 8 and 70 when used outside XML Environment, they are
taken as | Strings
# To describe data XML uses a _________ | Document Type Definition
# Which of these is not a correct name for an XML element? | <first name>
# XML parsers support ___ bit and ___ bit Unicode encoding corresponding to ASCII.
| 8 + 16
# Which of the following statements is true? | All XML elements must have a closing
tag.
# Syntax for an XML declaration is | <?xml version="1.0"?>
# WML for handheld devices is written in XML. | True
# Elements inside the root are termed as child elements. | True
# Which of the following statement/s are true? | All the above statements are true.
# XML elements cannot be empty. | False
# Attribute values must always be enclosed by double quotes. | False
# Difference between XML and HTML | HTML was designed to display data and focus on
how data looks
# Identify if the following XML document code is valid. <?xml version="1.0"?>
<note> <to>Joe</to> <from>John</from>
<heading>Reminder</heading> <body>Dont forget me this weekend!</body>
</note> | Valid
# Identify if the following XML document code is valid. <?xml
version="1.0"?> <to>Joe</to> <from>John</from>
<heading>Reminder</heading> <body>Dont forget me this weekend!</body> |
Invalid
# XML provides a software and hardware independent way of sharing data. | True
# Identify if the following code is correct? <b><i>This text is bold and
italic</b></i> | Incorrect
# Identify the line/s containing an error 1)<?xml version="1.0"?>
2)<note date=12/11/99> 3)<to>Ravi</to> 4)<from>Amit</from>
5)<heading>Reminder</heading> 6)<body>Make good food please</body>
7)</note> | Line 2
# Match the correct entity names with the respective characters a) &amp;
1) < b) &gt; 2) ' c) &quot; 3) > d)
&lt; 4) " e) &apos; 5) & | a-5 ,b-3 ,c-4 ,d-1
,e-2
# CDATA is text that will be parsed by parser. Identify whether the statement is
valid. | Not Valid
# End of a CDATA block is characterized by the character string | ']]'
# XML documents referencing the DTD will contain the __________ declaration which
specifies the location of an external DTD. | <!DOCTYPE>
# External DTD is referenced at the beginning of the XML file. | True
# ANY indicates that an element can contain only one child element of character
data. | False
# Child elements declared in a sequence need not appear in the document in the same
sequence. | False
# <!ELEMENT do(message+)> The "+" sign indicates that the child element 'message'
must occur at least once inside the do element. | True
# An attribute is another name for stating property of an element. | True
# In DTD, XML element attributes are declared with a/an _________ declaration. |
ATTLIST
# 'NMTOKENS' | The value is a list of valid XML names.
# An attribute which does not have to included is indicated by the value: |
#IMPLIED
# The width attribute has a default value of 1. | False
# Documents that follow the XML tag rules, but don't have a DTD are well-formed
documents. | True
# URL includes URI and URN. | False
# Internal DTD and XML code are stored in a document with the file extension | xml
# Verify the snippet given below: <?xml version="1.0" ?> <img
src=bullet_d.gif></img | False
# <!ELEMENT element-name (child-name )> Identify the sign to be placed in the
syntax above so that it declares that the child name can occur zero or one time
inside the element. | ?
# Consider a DTD example: <!ATTLIST study type (theory|practical) theory> Is the
following statement syntactically correct? | No
# The use of namespace in a document can be recognized using a ______ in the tag
name. | colon
# For elements in the XSL namespace, XSL uses the prefix | 'xsl:'
# Identify the correct statements | None of the above.
# The DOCTYPE statement represents the DTD which is termed as | Document Type
Declaration
# <!-- WELCOME.xml --> <?xml version = "1.0"?> <!DOCTYPE WELCOME SYSTEM
"hello.dtd"> The following code indicates that the DTD is: | An external DTD
# DTD helps define the legal building blocks of an XML document. | True
# The keyword termed as the shorthand for mixed content containing all declared
elements is: | ANY
# URI may contain characters that are illegal in XML names. | True
# Syntax for declaring an external DTD to an XML document is: | <!DOCTYPE N1 SYSTEM
"show.dtd">
# Writing an Internal DTD inside a DOCTYPE is known as: | Wrapping
# Syntax for element declaration is | <!ELEMENT element-name (element-content
type)>
# Identify the correct statements | #PCDATA means that the element contains data
that is to be parsed by a parser. + #CDATA means that the element contains
character data that is not to be parsed by a parser.
# Identify the correct syntax | <!ELEMENT element-name (child-element-name,child-
element-name,....>
# For declaring a child element 'message' to occur zero or more times inside the
'note' element, identify the correct syntax | <!ELEMENT element-name (child-name*)>
# <!ELEMENT A((B,C)|D|E)> Identify what the statement indicates | Element A
consists D or E or B followed by C.
# Identify the correct syntax: (One or more options are true) | 3 dap an con lai ko
co #required
# In the attribute-type the value which is pre-defined is indicated by: |
xml;
# Namespaces ensure that there is no conflict within element names and also
determines how to process them. | False
# <?xml version="1.0" ?> <!DOCTYPE APTECH [ <!ELEMENT APTECH (CLASS1|CLASS2)+> <!
ELEMENT CLASS1 (#PCDATA)> <!ATTLIST CLASS1 count CDATA #REQUIRED> <!ELEMENT
CLASS2 (#PCDATA)> <!ATTLIST CLASS2 count CDATA #REQUIRED> ]> <TRIAL>ELECTRONIC
GOODS <CLASS1 count="8">10students</CLASS1> <CLASS2
count="10">20students</CLASS2> </TRIAL> The following code will execute without
displaying any errors? | t
# <!ELEMENT trial (targets+, source,title+,message*,#PCDATA)> The above example
declares that the element trial must contain: | at least one 'target', exactly one
'source', at least one 'title', zero or one 'message', and some other parsed
character data.
# <?xml version="1.0"?> <script> <![CDATA [function matchwo(a,b) { if (a < b && a <
0) then { return 1 } } ]]> </script> The above code: | Executes without
any error
# (eval|eval|___) the following value indicates that | None of the above.
# <!ELEMENT Circle EMPTY> <!ATTLIST Circle radius CDATA "20"> The following
code indicates that the circle is defined as an empty element,with the radius
attribute having a default value of 20 and type CDATA. | True
# Prefix is: | An alias selected by a document author
# Identify the correct statements: | Tags from multiple namespaces can be mixed. +
XSL uses the prefix xsl: for elements in the XSL namespace
# XML vocabulary is used for specifying formatting semantics. | True
# XSLT is used to convert documents written in one XML DTD, into another DTD. |
True
# XML documents can be formatted using text editors. | False
# In order to format an XML document we combine it with a | Style sheet
# Identify the correct statements | CSS is an extension of HTML + XSL is an
extension of XML
# It is possible to have a property with multiple values | t
# Inheritance of a style is a property in which a style rule for an element also
applies to the element it contains. | t
# Identify the attribute applied to a property to give it precedence over other
properties. | !important
# The 'type' attribute in the <?xml-stylesheet?> processing instruction is the MIME
type of style sheet. | True
# The font-size option 'larger' is used for | <relative-size>
# 'small-caps' is a value supported by font-style. | False
# The marging option can take a maximum of _________ values. | 4
# Identify the correct statements: | XML documents can be sent + XML documents,
which are not displayed to the users, do not require stylesheets.
# Assigning a style to a tag helps the user agent to interpret the data following
specific rules. | True
# Selectors helping us to differentiate between different occurrences of a tag are
termed as | Contextual Selectors
# In case of 3 style sheets containing a reference to the same element, then
identify the style sheet used. | Last
# IN CSS styling property value may be | All of the above
# Identify the valid font properties and font related options are: | font-family +
font-variant
# Even if all the border options are set using 'solid' as the border style option
will remove, or turn off all the borders | False
# Space between the border and its contents is done by using the ________ property.
| padding
# Boxes can be overlapped using the z-index property. | True
# The CSS Layout can control layout of the box on the screen. | True
# The 'border' is used to set the width, color and style of the two borders. |
False
# Identify the correct syntax used by the XML document for displaying a stylesheet.
| <?xml-stylesheet type="txt/css" href="abc.css"?> + <?xml-stylesheet
type='txt/css' href='abc.css'?>
# Consider and xml document <?xml version="1.0"?> <?xml-stylesheet type="text/css"
href=xsampdoc.css ?> <xsampdoc> <greeting>All The Best!</greeting> </xsampdoc>
The code for the style sheet xsampdoc is given as: greeting { display:block;
font-family:Arial,Helvetica, sans-serif;font-size:32pt; width:30em;
color:red; } What will be the output
of the above code? | The xml document will be displayed in the tree format
# In CSS, identification of a selector context is done by using a: | Period
# In CSS, separation of multiple value combinations is by using a: | Semi-colon
# Match the following Absolute units & Relative units with their respective values
a)Ex 1)Inches b)In 2)Pixel c)Px
3)Pica d)Em 4)Fonts height e)Pc
5)Height of the letter 'x' | a-5,b-1,c-2,d-4,e-3
# Selectors allowing us to differentiate between different occurrences of
<extension> are termed as | Contextual selectors
# Each box has a border that separates it from the edge of the canvas | True
# When two values are specified for the margin then | the first value is set as the
top and bottom margins.
# To assign the same style rule to different elements, we apply the same number of
declarations as the number of elements to several selectors. | False
# The value of the CSS styling property can be a color value. | True
# Syntax for referencing a cascading style sheet in an XML document is: | <?xml-
stylesheet type="text/css" href="url"?>
# CSS understands _____ number of colours defined by their names: | 16
# Values used in font-weight are | normal+bolder+lighter
# S{margin-right:-3cm;} Is the above statement valid? | No
# H1{font-size xx-large} Is the above statement syntactically correct to make the
heading font extra large? | No
# Select the flawless tags used to create a margin : | A{margin-left:10cm;} +
A{margin-left:10%;}
# In order to indicate to an application processing the style sheet to look for
<All> tags followed by<Perfect> tags the syntax is: | All.Perfect
# Differentiating between the different occurrences of a tag is by: | None of the
above
# The logical structure of XML can be manipulated by XSL. | True
# The formatting components of XSL are not supported by IE5. | True
# XSL provides a transformation language called: | XSLT
# Sorting, filtering, pattern matching are few of the things that XSL cannot be
used for. | False
# XSL does not provide support for: | It provides support for all the options
stated.
# In XSL the sign that indicates that sorting takes place in the descending order
is: | '-'
# Select the correct attribute for sorting in an XSL document: | order-by
# The processing part in a template in XSL defines the way the styling is to be
applied to the child nodes. | True
# Normally for enclosing a generic term when defining code we use | square brackets
# A Data Island is a way to hold XML code within an HTML page. | True
# Data Islands are also referred to as: | DSOs
# Instructions that control how an element and its content should be converted in
XSL style sheets, are called: | templates
# Identify the correct syntax | <?xml-stylesheet type="text/xsl" href='url'?>
# "/" in the beginning of the XSL declaration indicates that: | this node applies
to the root level node of XML document
# In XSL the different source elements are separated by a: | pipe-stem
# We can create documents, which can switch styles without submitting the file
back to the server. | True
# Styles can change without waiting for the page to be reloaded. | True
# XSL in Internet Explorer 5.0 is 100% compatible with the latest released W3C XSL
standard. | f
# Identify the correct tag for indicating that a document is a style sheet file and
provides a location for declaring the XSL namespace | <xsl:stylesheet
xmlns:xsl="url">
# Identify the operator used to search across any number of levels of the hierarchy
from the current context. | .//
# Identify the operator used to search across any number of levels of the hierarchy
from the root of the document. | //
# Identify the tag required to match the entire document. | <xsl:template match= "/
|">
# Identify the correct statements related to XSLT | It is a template-based
language.+It lets one map a pattern in the source document with the output in XML.
# XSLT and CSS are compatible standards. | t
# Identify the statements which hold true for CSS: | none
# Syntax for a typical template element is: | <xsl:template match = "myElement">
# The process of turning the result of an XSL transformation into a suitable output
form for a reader or listener is identified as: | Formatting
# "*/*" this syntax used in XSL will search all the elements that are the
grandchildren of the root. | False
# Identify the elements, operators in XSL can be used with: | <xsl:template> +
<xsl:for-each>
# XSL uses XSLT to transform an XML ____________ into an XML _______________. |
source tree+result tree
# Treating a document as an object, extracting information, making changes and
querying the document through code is termed as: | DOM
# If an application supports DOM it is irrelevant whether the program is written in
VB or C. | t
# The available document models of DOM are: | Tree Model+Linear Model
# Manipulating the XML document through DOM does not require any objects of the
document to be created. | True
# 'parseError' is identified as a method due to which if an error is detected: |
the document is not loaded
# The root nodes can make multiple appearances in the document. | t
# The 'appendChild()' method of the DOMDocument Object adds: | a new node
# The 'readyState' property in the DOMDocument Object defines several states that
specify the current status of the asynchronous download. | True
# The property 'nextSibling' in DOMDocument Object contains the next node of the
previous nodes in the parent's child list. | True
# The 'xml' property always returns a UNICODE string. | True
# 'XMLDOMNodeList' property is: | Read only
# The 'nextNode' method in the XMLDOMNodeLis Object returns a NULL value if there
is no next node. | True
# A model applied to dynamic documents is known as: | Tree Model
# A model applied to static document objects is: | Linear Model
# In a tree model wherein we take the example of a book in which the chapters and
paragraphs correspond to an individual character in the document. These are termed
as: | leaves
# Considering a linear model applied to a book the only disadvantage that occurs is
that if the book is revised and the page number and line number of the topic
changes the model fails to work. Is the statement a valid statement? | Valid
# The model which is identified as a collection of objects used to access and
manipulate data stored in an XML document is an: | Object Model
# In DOM, it is not necessary that an object for a valid node type will always be
returned. | True
# A lot of properties and methods are repeated in each of the DOM objects as they
inherit the XMLDOMNode object. | True
# Xml property of the XMLDOMNode object is a read only property. | True
# XTLRuntime,XMLDOMNotation are exceptions that do not inherit methods and
properties from the XMLDOMNode object. | f
# Identify the statements which correctly relate to XMLDOMNamedNodeMap Object: |
These objects can be accessed by an index.+ It is used to iterate through the
attributes for a specific element.
# Though the tree model is a dynamic model if there arises any change in the
document a major part of the tree requires to be redrawn, | t
# Identify the correct syntax for creating an XML document through DOM. | Set
xmlDoc = CreateObject("Microsoft.XMLDOM")
# 'XMLDOMNode' is an XML DOM Object that: | represents the base interface for
accessing data in the XML Object model.
# 'XMLDOMNamedNodeMap' is an XML DOM Object that: | provides iteration and access
by name to the collection of attributes.
# 'XMLDOMEntity' is an XML DOM Object that: | None of the options given
# 'XMLDOMCDATASection' is an XML DOM Object that: | quotes or escapes blocks of
text so that text is not interpreted as markup language.
# 'childNodes' is a property of the DOMDocument Object: (Select the correct
statements) | Read-only.+Contains a node list containing the children.
# Identify the correct statements related to 'createNode method': | When a node is
created, it is created in context of the namespace mentioned.
# The chroma filter is used to ________ | apply transparency effects dynamically
# What does JAXB stand for? | Java Architecture for XML Binding
# Consider the following declaration: !ATTLIST student age CDATA ???? Which one of
the following can be used to replace ???? in the above definition? | #IMPLIED
# XML defines the way elements relate to one another within the documents tree
structure, and specifies the attributes | False
# Which one is used to declare an entity in DTD? | !ENTITY AUTHOR "Nguyen Ngoc Anh"
# Identify the correct statements: | Both are correct
# DOM supports go-forward only when traversing the XML documents. | f
# Which one of the following classes is used to create an instance of XMLReader? |
SAXReader
# What is the javascript? | 3 cau co chu js o dau
# Identify the correct statements about style sheets: | A Style sheet is a set of
instructions to display the+A style sheet separates presentation layer from the
content data of the document.
# DTD doesnt support namespaces. | t
# Which of followings are features of SGML? | It needs a separate+It describe+SGML
application is
# Which one is most appropriate to parse large document? | SAX
# ___ exists outside the content of a document | An external DTD
# An XML document can be displayed in different formats in different display
devices such as computer, printer, and the like | t
# Which XML parser supports XPath capability? | DOM
# The markup languages are classified as ____, ____ and _____ | Structure
Markup+Semantic Markup+Stylistic Markup
# How to use external javascript file in a HTML file? | script
language="JavaScript" src="filename.js"
# An _____ XML document conforms to the rules of a Document Type Definition ( DTD.
| Well-formed
# What markup language categorization determines the content of the document? |
Semantic Markup
# Which one of the following classes is used to create an instance of XMLReader? |
SAXReader

You might also like