PRX301-Part 1
Which statement is true
All XML elements must be properly closed
Which statement is true?
All XML elements must be properly closed
Which of the following statements is true?
All XML elements must have a closing tag.
A Java transformer can use
All of the above
An element name can begin with
All of the above
How is an empty XML element defined?
All of the above
How is an empty element field defined
All of the above
IN CSS styling property value may be
All of the above
Markup includes
All of the above
Tags can begin with
All of the above
Which of the following statement/s are true?
All the above statements are true.
What organization presented the first version of Starndardized Generalized Markup Language (SGML) in 1980?
American National Standards Institute (ANSI)
PCDATA is
An XML element that contains parsed character data
SAX is
An XML parser
Prefix is:
An alias selected by a document author
___ exists outside the content of a document
An external DTD
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
Identify the correct statements
CSS is an extension of HTML + XSL is an extension of XML
________ allow you to specify the style of your page elements (spacing, margins, etc.) separately from the structure of your document
Cascading Style Sheets
________ allow you to specify the style of your page elements (spacing, margins, etc.) separately from the structure of your document.
Cascading Style Sheets
What does method characters() of ContentHandler interface receive events for?
Character data
________ fires when the right mouse button is clicked.
(b) ONCONTEXTMENU
11 The ONFOCUS event fires when ________.
(c) an element is clicked.
The ________ attribute of the ________ element specifies another element that is identified by its ________ attribute
(d) FOR, SCRIPT, ID
The ONBLUR event is associated with ________
(d) an element losing focus.
The member access operator is which of the following
,
See the snipset below and choose one answer: <xsl:value-of select="ceiling(-2.3)"/>
-2
CSS understands _____ number of colours defined by their names:
16
In what year did the World Wide Web Consortium release its draft of XML
1996
In what year did the World Wide Web Consortium release its draft of XML?
1996
How many parameters are there for deleteData() method ?
2
How many parameters are there for deleteData() method ? (st art, length)
2
What is the result of the statement 17 % 5?
2
What is the value of num after the following statement is performed?num = Math.round( 2.45 );
2
How many parameters are there for replaceData() method
3
How many parameters are there for replaceData() method ?
3
What is the javascript?
3 cau co chu js o dau
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>
60
In Xpath, how many type of nodes in the tree:
7
Syntax for declaring an external DTD to an XML document is:
<!DOCTYPE N1 SYSTEM "show.dtd">
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]>
If the DTD is external to your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax:
<!DOCTYPE rootelement SYSTEM "filename">
Which of the following statement is the correct syntax for declaring an external DTD?
<!DOCTYPE rootelement SYSTEM [element and attribute declarations]>
Which of the following are tags is used to define rules for an element?
<!ELEMENT ... (#PCDATA)
An element declaration has the following syntax:
<!ELEMENT element-name category>
An element declaration has the following syntax:
<!ELEMENT elementname category>
Syntax for referencing a cascading style sheet in an XML document is:
<?xml-stylesheet type="text/css" href="url"?>
What is a correct way of referring to a stylesheet called "mystyle.xsl"?
<?xmlstylesheet type="text/xsl" href="mystyle.xsl"?>
What is the correct syntax for referring to an external script called "xxx.js"?
<script src="xxx.js">
Choose the correct syntax of x:parse in XML tag of JSTL
<x:parse var="x" scope="session" xml = "${xml}"/>
The syntax for defining an attribute is:
<xs:attribute name="xxx" type="yyy"/>
Identify the tag required to match the entire document.
<xsl:template match= "/ |">
Which of the following is not a valid equality or relational operator?
=
What does the srcElement event property contain?
A reference to the element that fired the event.
The Filter property should be in which of the following formats?
ColumnName = FilterText
Which object represents the top level of the XML source?
DOMDocument
The default scripting language for Netscape and Internet Explorer is ________.
ECMAScript
XSL stands for
EXtensible Stylesheet Language
The xsl:if is used to:
Evaluate a condition expression against the content of the xml file
What type of method does SAX use to process XML documents?
Event-based
The element is used to
Extract text from the source document
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.
#REQUIRED specifies that an element is required in all XML documents that use the DTD.
False
'small-caps' is a value supported by font-style.
False
A parent element cannot contain another parent element.
False
All XML markup tags must have an attribute.
False
All functions used by an XQuery are built in functions.
False
Browser has the ability distinguish duplicate element names in an XML document?
False
Child elements declared in a sequence need not appear in the document in the same sequence.
False
DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for a document.
False
URL includes URI and URN.
False
Verify the snippet given below: <?xml version="1.0" ?> <img src=bullet_d.gif></img
False
XML elements cannot be empty.
False
XML is transformed only via XSLT?
False
XML stores data in fixed lengths.
False
You avoid conflict between an XML special character and information in an XML document by using a comment.
False
You can repeat lines of code within the XSL stylesheet by defining an applytemplate.
False
You cannot set valid options when declaring an attribute.
False
You must use a parser to read an XML document.
False
The statement states
For each customer element of the source document thats a child of customers
The process of turning the result of an XSL transformation into a suitable output form for a reader or listener is identified as:
Formatting
XML is
Free and Extensible
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
Difference between XML and HTML
HTML was designed to display data and focus on how data looks
The simplest way to reference a DHTML element is by its ________ attribute
ID
The simplest way to reference a DHTML element is by its ________ attribute.
ID
________ can validate your XML against a DTD.
IE 5
XMLDOMNode implements the interface
IXMLDOMNode
The DOCTYPE is used to
Identify the DTD for an XML document
Identify if the following code is correct? <b><i>This text is bold and italic</b></i>
Incorrect
<xml> and <_Name> - Identify whether the following tags are valid or invalid
Invalid, Valid
What does JAXB stand for?
Java Architecture for XML Binding
Which features must the well-formed XML document have?
None of the others
Which syntax is used to declare the attribute of an element in DTD?
None of the others
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
'XMLDOMNodeList' property is:
Read only
Identify the correct syntax for creating an XML document through DOM.
Set xmlDoc = CreateObject("Microsoft.XMLDOM")
What is the full form of SAX?
Simple API for XML
In order to format an XML document we combine it with a
Style sheet
#REQUIRED attributes value means:
The attribute value must be included in the element
<?xml version="1.0" encoding="UTF-8"?> <aaa> <bbb>ccc</bBb> </aaa>
The document is not well-formed
Which of the following is true regarding the following code? MsgBox( "VBScript is fun!", , "Results" )
The function should be preceded by the keyword Call
'NMTOKENS'
The value is a list of valid XML names.
A lot of properties and methods are repeated in each of the DOM objects as they inherit the XMLDOMNode object.
True
Boxes can be overlapped using the z-index property.
True
For each element type associated with a sequence element, there must be an element in the XML instance in the same order?
True
The property 'nextSibling' in DOMDocument Object contains the next node of the previous nodes in the parent's child list.
True
The xsl:element generates the elements in at time of processing.
True
URI may contain characters that are illegal in XML names.
True
XSLT takes two things as input: an XSLT stylesheet and an xml input document
True
You should use a SAX parser if a DOM parser is unable to load the XML document into memory.
True
$x is an
Variable
The version is specified in ActiveXObject(fiMSXML2.DOMDocument.4.0fl) because
Versions are designed to coexist with previous versions.
Which statement is true?
XML tags are case sensitive XML documents must have a root tag XML elements must be properly closed.
Which of the following options describing the feature of XML transformations?
XSLT stylesheets use XPath to navigate between XML as SAX and DOM
XSL consists of three parts. Which are
XSLT, Xpath, XSL-FO
What DOM method can you use to determine a node's type?
You can use the node's getNodeType method and check the results it returns against fields such as Node.ELEMENT_NODE, Node.TEXT_NODE, and so on
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
The StAX cursor API represents ___
a cursor with which you can walk an XML document from beginning to end
The StAX cursor API represents
a cursor with which you can walk an XML document from beginning to end.
The StAX cursor API represents _______________.
a cursor with which you can walk an XML document from beginning to end.
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
Which is the proper method to set the mask color?
a) filter: mask( color = #CCFFFF )
Which DOMDocument method is used to create a new attribute?
a. createAttribute
The _______ method is used to remove the attribute node
a. removeAttributeNode()
The ______ method can be used to remove the specified node.
a. removeChild()
The DOM treats the XML document as
a. tree-structure
The keywords Property Let and Property Set are used for ________.
accessing Private class variables
The last parameter in the addPoint method ________.
b) sets the strength percentage
What is the value of num after the following statement is performed? num = Math.round( 2.45 );
b. 2
Microsoft's version of scripting that uses the Java syntax is called
b. JScript
XML Schema is designed to
be self-descriptive
The VBScript '+' operator is used for ________.
both a and b
Microsoft's Internet Explorer Web browser contains a ________ that executes VBScript code
c) interpreter
The outermost layer of the box model is the ___
c) margin
Every switch structure must have ________ labels which are separated by the keyword break.
c. case
with DTD, each of your XML files can carry a ________ of its own format with it.
c. description
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 are declared correctly?
c. for (var i=0;i<100;++i ) { statement; }
Which of the following contradicts the notion of structured programming?
c. goto
Method characters() of ContentHandler interface receives events for
character data
The
character is referred to as a________. | c) field delimiter
The
character is referred to as a________.|field delimiter
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
In the body of a style sheet, CSS rule properties are followed by a ____
colon
In the body of a style sheet, CSS rule properties are followed by a _____.
colon
Entities are variables used to define
common text
To specify how whitespace characters should be handled, we would use the whiteSpace
constraints
External style sheets are saved with the ________ extension.
css
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
Entities are variables used to define
d. common text
If the string passed to parseInt contains a floating-point numeric value, parseInt will ________.
d. truncate the floating-point part
In a switch structure, the ________ case clause is used to process exceptional conditions and is usually listed last.
default
Which of the following is not a property of the wave filter?
direction
An object's methods and attributes are accessed by writing the name of the object followed by the ________.
dot operator
XML parser can perform operations on input of any data type
f
Document Object Model is platform-dependent?
false
Which one of the following XLink attributes allows you to specify the target of a link?
href
Which of the following statements is correct?
if ( studentGrade >= 60 )document.write( "Passed" );
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
The outermost layer of the box model is the ________.
margin
In order for elements to be floated, position must be ________.
not absolute
Specifies that the attribute cannot be used?
prohibited
If the string passed to parseInt contains text characters, parseInt will ________.
return NaN
How to use external javascript file in a HTML file?
script language="JavaScript" src="filename.js"
JavaScript lines end with what?
semicolon
The last parameter in the addPoint method ________.
sets the strength percentage
Which of the following is not a border property?
shape
Which method is used to search for a substring?
stringVariable.indexOf(subString)
Which of the following is not a JavaScript keyword?
sub
An XML document can be validated against a DTD by calling the validate() method.
t
Elements, attributes and entities can be declared in any order
t
The all element requires that each element in the group must occur at most once
t
The floor (num) function returns the largest integer that is not greater than the number argument.
t
The loadXML() method is used when the document is passed as a string.
t
The xsl:attribute do generates the elements in the time of processing.
t
XML data can be embedded in HTML.
t
What is the "Document Type Declaration" ?
the DOCTYPE declaration
'parseError' is identified as a method due to which if an error is detected:
the document is not loaded
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;
"/" in the beginning of the XSL declaration indicates that:
this node applies to the root level node of XML document
Which of the following methods does the JavaScript Boolean object not possess
toInt
Which of the following methods does the JavaScript Boolean object not possess?
toInt
A default value is automatically assigned to the attributes when no other value is specified.
true
If the string passed to parseInt contains a floating-point numeric value, parseInt will ________.
truncate the floating-point part
Which top level XSLT element is used to define a variable in a stylesheet or template and to assign it a value?
xsl:variable
In JavaScript, capital letters are different from lowercase letters
yes
Is it legal to have an element and a complex type with the same name ?
yes
<!ELEMENT A((B,C)
D|E)> Identify what the statement indicates | Element A consists D or E or B followed by C.
The default scripting language for Netscape and Internet Explorer is ________
ECMAScript
Which statement about XML is true
Elements may nest but not overlap
All XML markup tags must have an attribute
False
MSXML can only be used with JavaScript.
False
Namespaces ensure that there is no conflict within element names and also determines how to process them.
False
Only a browser can access a result document.
False
Which of the following is true?
The shadow filter property can be set to exactly 8 different values
getAttribute(fiupcfl) retrieves the value of the upc attribute.
True
XML DOM is:
XML Document Object Model
Which of these are not supported by XML Schema
a. defines which files are child elements
XSL ________ how the XML document should be displayed
a. describes
A parent element cannot contain another parent element
f
Can you retrict the content of an XML element to take only values from an enumeration list (using DTDs)
no
is the following element declaration valid in XML Schema
no
By default the white space in elements is not truncated.
t
Every XML document must be well formed
t
ID selector match elements which have an id attribute.
t
To prevent a type from being derived for defining new types you can specify
<complexType name="Address" final="restriction" />
Which is not a correct name for an XML element
<first name>
Which is not a correct name for an XML element?
<first name>
Which of these is not a correct name for an XML element?
<first name>
XML is more advantageous to use than a fixed-length database system because
D. All of the above
SAX is
D. An XML parser
DTD is:
Document Type Definition
The SAX parser is able to transverse an XML document
False
A regular expression can be used to specify complex restrictions for the content of an element.
True
An XML element can contain other XML elements
True
An XML schema is used to define a complex type
True
Namespaces are defined using
xmlns:[prefix] attribute
Identify the attribute applied to a property to give it precedence over other properties.
!important
Which of the following are tags is used to define rules for an element?
c. <!ELEMENT ... (#PCDATA)>
Which of these is the proper function that stops a windows timer
clearInterval
Which of these is the proper function that stops a windows timer.
clearInterval
The ________ method can be used to display the value of the specified attribute.
getAttribute()
Assigning a style to a tag helps the user agent to interpret the data following specific rules.
True
XML developer has to ensure the uniqueness of the element names and attributes in a document?
True
XML parser checks for validity and well-formed ness?
True
XML preserves white spaces
True
XML provides a software and hardware independent way of sharing data.
True
XML vocabulary is used for specifying formatting semantics.
True
XSLT is used to convert documents written in one XML DTD, into another DTD.
True
________ makes it now possible for data manipulation to be shared by the server and the client.
all of the above
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.
Which of the following is an illegal array initialization statement
c) var n = new Array( 5 ); n = [ 10, 20, 30, 40, 50
How many parameters are there for deleteData() method ? (st art, length)
c. 2
What is the value of i after the following statements? i = 2; i++;
c. 3
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
Consider the following code selections. Assume count is initialized to 7 and num is initialized to 0
c. 7, 0
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 of these are not the valid XML DOM relationships
nextNode
Each attribute, element and text in the XML document represents a
node in the tree
Each attribute,element and text in the XML document represents a
node in the tree
The declaration is used to declare the xml tag library using in JSP as
none
Which features must the well-formed XML document have?
none
Values used in font-weight are
normal+bolder+lighter
If an element's position is declared as absolute then
positioning is set according to the margins of its parent element
If an element's position is declared as absolute then ________ .
positioning is set according to the margins of its parent element
Consider a DTD example: <!ATTLIST study type (theory
practical) theory> Is the following statement syntactically correct? | No
Templates are been ordered according to their ________ which can be specified with the priority attribute.
priority
XSL processors do parses the XML source and tries to find out the matching _______ rule.
template
Instructions that control how an element and its content should be converted in XSL style sheets, are called:
templates
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
A Stream is a series of characters that can be the results of transformation performed by a Java transformer.
t
A default namespace applies to the element on which it was defined and all descendants of that element
t
A default value is the value that is assigned automatically to the element when there is no other value specified
t
A namespace is a collection of names that can be used as element names or attribute names in XML document
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
An XML Schema defines how many child elements can appear in an XML document
t
An XML Schema defines how many child elements can appear in an XML document?
t
An XML Schema defines the structure of an XML document
t
An XML Schema defines whether an element is empty or can include text
t
An XML document can be displayed in different formats in different display devices such as computer, printer, and the like
t
Both Mozilla and Internet Explorer support W3C's DOM specification
t
Both Mozilla and Internet Explorer support W3C's DOM specification.
t
DOM is a W3C standard.
t
If you "import" a stylesheet, the templates in it have lower precedence than those in the current stylesheet.
t
Inheritance enables one entity to acquire the properties of another entity
t
XML documents are stored with xml extension
t
An XML Schema defines whether an element is empty or can include text.
true
An attribute without a prefix is in default namespace?
true
What kind of separator can be used in a list datatype in XML Schema ?
whitespace (" ");
CDATA is text that _____ be parsed by a parser.
will not
Which of the following functions searches a string for a substring and returns an index of the found substring if it is found?
Instr
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.
The DOM is separated into how many different parts?
3
What is the value of i after the following statements? i = 2; i++;
3
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>
55
How many indicators are present in Schema?
7
XML parsers support ___ bit and ___ bit Unicode encoding corresponding to ASCII.
8 + 16
<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
The VBScript operator for inequality is which of the following?
<>
An attributes can be accessed in the way similar to the elements. Notice ____ in front of the attribute name.
@
Declaring an attribute as 'optional, -, -' means
Attribute may occur once and have any value
What does DTD stand for?
Document Type Definition.
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
XML can only be transformed into HTML or XHTML
False
XML cannot be used with HTML.
False
Method characters() of ContentHandler interface receives events for
Character data
Is the following code for commenting in XML valid? <!-- Comment1 <!-- Comment2 --> -->
Invalid
What does the following statement do?<SPAN ID = "colorName" STYLE = "font-family: monospace" DATASRC = "#Colors" DATAFLD = "ColorName"></SPAN><BR>
It assigns the TDC control named Colors to a span element for display purposes.
What is the underscore character used for in VBScript?
It is used as a line continuation character
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 will value contain after the following code is executed assuming that Colors is a valid TDC control? value = Colors.recordset;
It will contain the current indexed item of the datasource.
Which Exception is used when JAXB operation is applied?
JAXBException
Microsoft's version of scripting that uses the Java syntax is called ________.
JScript
In case of 3 style sheets containing a reference to the same element, then identify the style sheet used.
Last
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
How do you round the number 8.25, to the nearest whole number?
Math.round(8.25)
An attribute contains a
Name/value pair
you have an attribute of enumerated type. What are the valid values for it ?
NameChar
Is the following attribute valid? <!ATTLIST Test4 an_attribute ID #FIXED "value">
No
'XMLDOMEntity' is an XML DOM Object that:
None of the options given
Microsoft's version of scripting that uses the Java syntax is called ________.
None of the others
The declaration is used to declare the xml tag library using in JSP as
None of the others
Which of the following packages present in JAXP belong to SAX?
None of the others
Which ways are the CSS style rules applied to HTML?
None of the others
CDATA is text that will be parsed by parser. Identify whether the statement is valid.
Not Valid
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
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
What is wrong with the following VBScript code? If (s = t) Then u = s + t ElseIf (s > t) Then u = r Else u = n End If
Nothing
________ fires when the right mouse button is clicked.
ONCONTEXTMENU
Event ________ fires constantly whenever the mouse is in motion.
ONMOUSEMOVE
type=fiintegerfl means
Only integers can be used in the corresponding element.
___________ is a term used about text data that will be parsed by the XML parser.
PCDATA
The entities that are used only in DTDs are referred to as
Parameter entities
#PCDATA refers to
Parsed character data
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
In CSS, identification of a selector context is done by using a:
Period
Order by
Places all return values in ascending order by default
Which of the following can be considered a valid element name?
Product$Name
Which one of the following is the root element of all XML Schema documents?
Schema
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: 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.
In Xpath, which node has a parent node and it may have child node too
Text
Which of the following is true regarding VBScript classes?
The Property Let method is used for non-object subtypes
A model applied to dynamic documents is known as:
Tree Model
XML DOM defines a standard way for
a. accessing and manipulating XML documents
An empty complex element cannot have any contents, only
a. attributes
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 XML DOM is language- and platform
a. independent
A descendant having a new namespace cannot override the namespace defined by the parrent element?
f
Are comments processed by the processor?
f
Attributes belonging to a particular elements within some namespace is also a part of the same namespace
f
Browser displays the content directly after the parser passes the data.
f
DTDs are made up of three blocks of declarations and the DOCTYPE declaration
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 is platform-dependent?
f
HTML provides the advantage of creating customized tags making it easier for the users to create their own tags.
f
XSLT can also be called as XSLT document or transformation script
f
XTLRuntime,XMLDOMNotation are exceptions that do not inherit methods and properties from the XMLDOMNode object.
f
A descendant having a new namespace cannot override the namespace defined by the parrent element?
false
Ability to create one's own tags is XML's greatest disadvantage?
false
SAX support random access
false
How does a "for" loop start?
for (i = 0; i <= 5; i++)
Which of the following is not a JavaScript selection structure?
for/in
Modules in JavaScript are called ________.
functions
The simplest way to reference a DHTML element is by its ________ attribute.
id
The XML DOM is language and platform
independent
The XML DOM is language- and platform
independent
Which of the following methods would you use to search a character for a specific string?
indexOf
The java sort method uses ________ to sort the array passed to
it. string comparison
It defines the document structure with a list of _______.
legal elements
________ and ________ run slower when they are applied to large arrays.
linear search, bubble sort
In the following line, the word writeln is a ________ which performs a task or action in the script document.writeln("Hello World");
method
The "prepackaged" functions that belong to JavaScript objects such as Math.pow and Math.round are often called ________.
methods
The best way to develop and maintain a large program is to construct it from small, simple pieces called ________.
modules
The ________ object contains information about the Web browser that is viewing the page.
navigator
Can you use the keywords IGNORE and INCLUDE in the internal subset of a DTD
no
Is the DOCTYPE declaration compulsory ?
no
Is the following XML instance valid
no
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?
offsetX / offsetY
would you use to capture the location of the mouse cursor relative to the image boundaries?
offsetX / offsetY
Where on the browser will command window.status("text") display output
on the status bar
Where on the browser will the command window.status( "text" ) display output?
on the status bar
An xsl:numbers do inserts a formated numbers into the ______ .
output
An xsl:numbers do inserts a formatted numbers into the ____
output
Which is detected when the mouse moves over a link?
overMouse event
What is the correct CSS syntax for making all the <p> elements bold?
p {font-weight:bold;}
Space between the border and its contents is done by using the ________ property.
padding
The ________ is the distance between the content inside an element and the edge of the element.
padding
Function definitions often contain ________ which are considered to be local variables and correspond with the arguments in the function call.
parameters
In JavaScript, all objects and Arrays are passed to functions by ________.
reference
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
XSL uses XSLT to transform an XML ____________ into an XML _______________.
source tree+result tree
Normally for enclosing a generic term when defining code we use
square brackets
Which of the following is a legal function call for the function definition provided below? function square( y ) { return y * y;}
square(7+2);
You can use the Attributes object passed to the _____________ method to handle an element's attributes.
startElement
Script-level variables have ________ duration.
static
The java sort method uses ________ to sort the array passed to it.
string comparison
The VBScript '&' operator is used for ________.
string concatenation
An XML element can contain other XML elements
t
Elements with complex type may contain nested elements and have attributes
t
Parameter entities are:
used only in DTDs + always parsed entities
The ONLOAD event fires ________.
whenever an element finishes loading successfully.
________ allow you to specify the style of your page elements (spacing, margins, etc.) separately from the structure of your document
cascading Style Sheets
VBScript is ________.
case sensitive like JavaScript
You can implement the ___________method and extract the text node's text from the character array passed to you, using the starting position in the array. The length of the text is also passed to you.
characters
What is the default axis in XPath ?
child
The ONLOAD event fires ________.
(d) whenever an element finishes loading successfully
Which of these is the command to enable error handling on a Web page
(d) window.onError
An XML document must contain all elements declared in the DTD
False
An XML document must contain all elements declared in the DTD.
False
Which one is most appropriate to parse large document?
SAX
You create a SAX parser by using the ________________object.
SAXParserFactory
XSL consists of three parts. Which are?
XSLT, Xpath, XSLFO
In JavaScript, capital letters are different from lowercase letters?
Yes
Which of the following methods does the JavaScript Boolean object not possess
c) toInt
Which of the following is not a property of the glow filter?
direction
In XML, elements are distinguished by using DTD
f
XML is not validated.
f
Stylesheet can do have ____ variables with the same name
several
The SAX parser reacts to a new element by using
startElement()
Which of the following XML attribute names is invalid?
I am not valid
CDATA means:
character data
<!ELEMENT element-name category>
#PCDATA
All Biztalk documents have the root element ________.
BizTalk
Builds the document as a in-memory data structures?
DOM
Which of the following handler interfaces is used by the SAX API to validate error?
ErrorHandler
VBScript is ________
a) case sensitive like JavaScript
SOAP stands for
a. Simple Object Access Protocol
value of the local variable is bounded to which element.
b. xsl:when
A DTD is an XML document
f
Attributes are by default:
optional
Which of the following is NOT a type of popup box
radio
The DOM treats the XML document as
tree-structure
Which of these characters cannot be used as entity references in XML?
$
In XSL the sign that indicates that sorting takes place in the descending order is:
'-'
The ONERROR event is used to handle all of these except
(a) User errors.
With the ________, scripts can respond to a user moving the mouse, scrolling up or down the screen or entering keystrokes.
(a) event model
Event bubbling is _______.
(a) the process of child elements passing events to their parent elements
When the mouse moves over an element which of the following is triggered
(b) ONMOUSEOVER
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
See the snipset below and choose one answer
-2
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" %>
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
Which of the following statements regarding filters and transitions is false?
. They are applied on a client computer at run time by the server.
How many type of XML parser does?
. Validating Parsers and Non-Validating Parsers
Which statement is used to describe about multi-pipeline?
. XML is mapped to Bean object, then it applied to many JSP
Why does DTD need?
. place preconditions on the data the programs read
Identify the operator used to search across any number of levels of the hierarchy from the root of the document.
//
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"
//customer[username='Hatruc']/@password
What is the value of i after the following statements? i = 2; i- -; i- -;
0
What is the value of i after the following statements? i = 2; i--; i--;
0
What is the value of i after the following statements?i = 2; i--; i--;
0
In the following statement, the range of the variable element is ________. for ( var element in theArray ) total2 += theArray[ element ];
0 to the array length - 1
XML Schema became a W3C Recommendation
02. May 2001
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 >
1 2 3 1 2 3
< 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 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 = "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 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
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> Nothing, the browser will generate an error.
1 2 3 4 5 6 7 8 9
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>
10
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
What is the evaluation of the following expression?((3+ (5 + 4) * 7) + 4) / 5
14
What is the value of num after the following statement is performed? num = 2 * Math.pow( 2, 3 );
16
What is the value of i after the following statements? i = 2; i += 25;
27
What is the value of i after the following statements?i = 2;i++;
3
Identify the correct syntax: (One or more options are true)
3 dap an con lai ko co #required
The marging option can take a maximum of _________ values.
4
What is the value of num assuming that all 12 elements of array test are initialized to 3? ++test[ 7 ]; var num = test[ 7 ];
4
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
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>
5
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>
60
In Xpath, how many type of nodes in the tree
7
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
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
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 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 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
Which of the following is (are) a valid XML name(s)?
:3:3:5:7
Which of these characters can be included within the text in an XML document in literal form?
; & : -
Which of these characters can be included within the text in an XML document in literal form?
; : -
Which of these is a valid comment in XML?
<!- -This data should be hidden <FIRSTNAME>Joe</FIRSTNAME> <LASTNAME>Johnson</LASTNAME> - ->
Which of these is a valid comment in XML?
<!- -This data should be hidden<FIRSTNAME>Joe</FIRSTNAME> <LASTNAME>Johnson</LASTNAME>- ->
Which syntax is used to insert comments into an XML document
<!-This is a comment->
Which syntax is used to insert comments into an XML document?
<!-This is a comment->
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">
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]>
Identify the correct syntax for declaring an internal DTD
<!DOCTYPE rootelement [element and attribute declarations]>
If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax:
<!DOCTYPE rootelement [elementdeclarations]>
XML documents referencing the DTD will contain the __________ declaration which specifies the location of an external DTD.
<!DOCTYPE>
Which of the following are tags is used to define rules for an element?
<!ELEMENT ... (#PCDATA)>
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>
Identify the correct syntax
<!ELEMENT element-name (child-element-name,child-element-name,....>
For the XML parser to ignore a certain section of your XML document, which syntax is correct?
<![CDATA[ Text to be ignored ]]>
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" %>
All processing instructions begin and end with
<? ... ?>
What is the correct declaration syntax for the version of an XML document
<? xml version="1.0"/?>
What is the correct declaration syntax for the version of an XML document?
<?xml version="1.0" ?>
Syntax for an XML declaration is
<?xml version="1.0"?>
What is the correct declaration syntax for the version of XML document
<?xml version="1.0"?>
Which of these is the correct syntax to link a CSS file to an XML document?
<?xml-stylesheet type="text/css" href="url"?>
Which of these is the correct syntax to link an XSL file to an XML document?
<?xml-stylesheet type="text/xsl" href="candidate.xsl"?>
Identify the correct syntax
<?xml-stylesheet type="text/xsl" href='url'?>
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'?>
Which of the following is the correct processing instruction that specifies an XSL document (myXSL.xsl) to be used to transform an XML document.
<?xml:stylesheet type = "text/xsl" href="myXSL.xsl">
Which of the following XML code snippets is/are correct?
<BOOK> <AUTHOR> abc...</AUTHOR> </BOOK>
In which of the following do you set the MIME type of the external style sheet?
<LINK></LINK>
Which of the following selections is the proper way to apply this CSS rule: .blue { color: blue }
<P CLASS = "blue">
Which of the following is not a valid PARAM setting for TDC controls?
<PARAM NAME = CLASSID: CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83>
Which of the following is not a valid PARAM setting for TDC controls?
<PARAM NAME =CLASSID: CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83>
The \n,\t, \r escape sequences do not affect HTML rendering unless they are used between which tags?
<PRE></PRE>
Setting an element's position to relative is done within which of the following
<STYLE></STYLE>
Setting an element's position to relative is done within which of the following?
<STYLE></STYLE>
Which of the following line of code are correct namespace declarations?
<Title:catalog xmlns:book="http://www.fpt.edu.vn">
Which of the following are valid tags?
<fpt_university>
To compose a schema with the same target namespace you can use
<include schemaLocation="..." />
The font-size option 'larger' is used for
<relative-size>
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"/>
A Complex Type element can be defined using
<xsd:complexType name="..." />
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" >
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">
Syntax for a typical template element is:
<xsl:template match = "myElement">
an attributes can be accessed in the way similar to the elements. Notice ____ in front of the attribute name.
@
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.
What does the srcElement event property contain
A reference to the element that fired the event
The keyword termed as the shorthand for mixed content containing all declared elements is:
ANY
________ is a technology that allows a server-side script to create dynamic content that is sent to the client's browser
ASP
________ is a technology that allows a server-side script to create dynamic content that is sent to the client's browser.
ASP
In DTD, XML element attributes are declared with a/an _________ declaration.
ATTLIST
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
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.
With an extensible Schema definition you cannot:
All the above
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
What organization presented the first version of Starndardized Generalized Markup Language (SGML) in 1980? )
American National Standards Institute (ANSI)
What does the xsl:apply-imports for?
Apply the template to selected location from xsl:apply-imports
Select the flawless tags used to create a margin :
A{margin-left:10cm;} + A{margin-left:10%;}
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
What does the keyword SYSTEM indicate in the following code? <!DOCTYPE Book SYSTEM "book.dtd">
Book.dtd is an internal DTD
XSLT allows any kind of data to be transformed into
Boolean
XSLT allows any kind of data to be transformed into:
Boolean
Where is the correct place to insert a JavaScript?
Both the <head> section and the section are correct
xmlDoc.async= 'false' mean:
Complete document must be loaded before futher processing
Which one of the following sets of interfaces are part of the SAX2 API?
ContentHandler, ErrorHandler, and DTDHandler
Selectors helping us to differentiate between different occurrences of a tag are termed as
Contextual Selectors
Selectors allowing us to differentiate between different occurrences of <extension> are termed as
Contextual selectors
A constructor
Converts information contained in an XML document to another data type
A variable that your webpage can store on or retrieve from the users computer is known as ?
Cookie
XML Can be used to
Create new language
XML Can be Used to
Create new language.
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
Data Islands are also referred to as:
DSO's
XML is a Meta-Language. Select the option which best describes the statement given above.
Describes other languages.
Method hasChildNodes of XMLDOMNode mean
Determine if a given node has child nodes or not
Which purpose is the schema declaration used to in XML file?
Determine instance namespace applying to XML document
The DocumentBuilder object's parse method to parse an XML document and create a Java _____________ object
Document
The DOCTYPE statement represents the DTD which is termed as
Document Type Declaration
To describe data XML uses a _________
Document Type Definition
What does DTD stand for
Document Type Definition
XSL stands for:
EXtensible Stylesheet Language
Which Statement about xml is true
Elements may nest but not overlap
Which Statement about xml is true?
Elements may nest but not overlap
Which of the following is/are optional in the creation of an XML file?
Entities
Which of the following statements is not true?
Entities that appear anywhere in an XML document are referred to as Parameter entities
In SAX, to provide customized DTD handling, application need to implement
EntityResolver
The most common way to assign a value to a variable is by using what ?
Equals sign
The most common way to assign a value to a variable is by using what?
Equals sign
Actions that can be detected by javascript are called?
Events
<?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
Which language is used to describe the DTD syntax?
Extended Backus-Naur Form
You can repeat lines of code within the XSL stylesheet by defining an apply template.
False
Which of the following is NOT a valid CSS selector?
HEAD selectors
XML is a Complement to
HTML
It is usually advisable to keep as much JavaScript as possible in which section?
Head
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
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
document.writeln("Hello World");
Hello World
Which of the following XML attribute names is invalid?
I am not valid|
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.
_______ can validate your XML against a DTD
Internet Explorer 5.0
The word sequence in the term sequence structure refers to the sequence of ________.
JavaScript instructions in a script
A model applied to static document objects is:
Linear Model
IE5 has an inbuilt XML Parser called
MSXML
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
How do you find the largest number of 6 and 8?
Math.max(6,8)
firstChild is a
Property containing a reference to the first child of an element
________ is an artificial and informal language that helps programmers develop algorithms.
Pseudocode
SAX uses :
Push parsing machenic for processing
A SAX parser
Reads a block of an XML document at a time
What is this: ?
References a shared DTD
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.
Which of these characters cannot be used as entity references in XML
S
XML is a subset of
SGML
Which of the following is not an extension of XML?
SGML.
Setting an element's position to relative is done within which of the following
STYLE></STYLE>
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
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.
The statement is used to
Select the id attribute
In CSS, separation of multiple value combinations is by using a:
Semi-colon
The where clause
Specifies the filter criteria
The xs:sequence tag
Specifies the sequence in which elements must appear in an XML document
SGML stand for
Standard Generalization Markup Language
The async = false means
Statements will not execute until the XML document is being loaded.
Which of the following is true?
Text qualifiers encapsulate the data in a field.
Which of the following is/are optional in the creation of an XML file?
The <?xml version="1.0"?> statement
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.
The SCRIPT element is a direct child of the HEAD element.
What does #REQUIRED attributes mean ?
The attribute value must be included in the element
A question mark following the name of a child name in the declaration of a parent element means
The child element is optional.
Which of the following is true?
The dropShadow filter does not have a direction attribute.
Which of the following is the purpose of a schema?
To describe and constrain both the structure and data within the XML document
The resolveEntity method of EntityResolver interface allow the application
To resolve external entity
The available document models of DOM are:
Tree Model+Linear Model
Which of the following string functions returns a string that does not contain any leading or trailing space characters?
Trim
"Position" function do returns the number equal to context position
True
The 'nextNode' method in the XMLDOMNodeLis Object returns a NULL value if there is no next node.
True
The ONERROR event is used to handle all of these except.
User errors.
Which VBScript function returns an integer indicating the variant subtype?
VarType
An XML document, which conforms to its DTD, is called a:
Well formed Document
An _____ XML document conforms to the rules of a Document Type Definition ( DTD.
Well-formed
Which contains in XML document's prolog
XML Declaration or/and Document Type Declaration
The line window.alert("Hello world") will display output in ________.
a dialog box
The Filter property should be in which of the following formats?
a) ColumnName = FilterText
Match the correct entity names with the respective characters a) & 1) < b) > 2) ' c) " 3) > d) < 4) " e) ' 5) &
a-5 ,b-3 ,c-4 ,d-1 ,e-2
XML Schema became a W3C Recommendation
a. 02. May 2001
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">
The syntax for defining an attribute is:
a. <xs:attribute name="xxx" type="yyy"/>
The ________ parses and translates all inbound and outbound messages going to and from a business.
a. BizTalk Server.
Which of the following is not a type of DTD?
a. Table based
The _____ method creates the new element node
a. createElement()
XML uses
an XML Schema to describe the data
What is the default type for an element in XML Schema ?
anyType
The chroma filter is used to ________
apply transparency effects dynamically
Local variables have ________ duration.
automatic
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 of the following XML attribute names is invalid?
b. I am not valid
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.
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">
________ is an artificial and informal language that helps programmers develop algorithms
c. Pseudocode
<!DOCTYPE root-element [element-declarations]>
data
Which of the following is a JavaScript repetition structure?
do/while
The question mark (?) operator indicates
either zero or one occurrence
The question mark (?) operator indicates
either zero or one occurrence.
Which of the following can be declared as a direct child of a XML Schema element ?
element + attribute
SAX supports random access
f
Tree model is applied to static documents?
f
Browser has the ability distinguish duplicate element names in an XML document?
false
XML is transformed only via XSLT?
false
Which of the following will evaluate to false?
false && false
Which method is used to get all descendant of current element in traversing DOM tree?
getChildNodes
Microsoft's Internet Explorer Web browser contains a ________ that executes VBScript code.
interpreter
CSS positions can be either absolute or ________.
relative
A program in which all statements are executed one after the other in the order in which they are written exhibit ________.
sequential execution
How do you read the first character in a string?
stringName.charAt(0);
"Position" function do returns the number equal to context position
t
DOM parser allows random access to document.
t
Document Object Model allows programs and scripts to access and update content, structure and style of documents in a standard way
t
The XSLT engine begins by reading in the XSLT stylesheet and caching it as a look-up table
t
The appendChild() method links a node to the current node.
t
XML DOM - defines a standard set of objects for XML documents only.
t
XML document is edited by keeping DTD in mind
t
getAttribute(fiupcfl) retrieves the value of the upc attribute.
t
the appendChild() appends a node to the end of an XML document.
t
the xsl:if, xsl:else and xsl:else-if elements can be used to control program flow.
t
The binding of TDC to a table requires setting the DATASRC property in the ________.
table element
SAX makes sequence of call to a handler function?
true
In JavaScript, numbers and boolean values are passed to functions by ____
value
How do you put a message in the browser's status bar?
window.status = "put your message here"
A _____ instruction do contains the template, which is been applied to each node selected with the select attribute.
xsl:for-each
In XSL, an _____ instruction do contains the template, which is been applied to each node selected with the select attribute
xsl:for-each
Which top level XSLT element is used to define a variable in a stylesheet or template and to assign it a value
xsl:variable
With XML Schemas, the senders can ________ the data in a way that the receiver will understand
describes
With XML Schemas, the senders can ________ the data in a way that the receiver will understand.
describes
XSL ________ how the XML document should be displayed
describes
XSL ________ how the XML document should be displayed!
describes
With DTD, each of your XML files can carry a ________ of its own format with it.
description
Method hasChildNodes of XMLDOMNode mean
determine if a given node has child nodes or not
Which of the following flowchart symbols indicates that a decision is to be made?
diamond
The VBScript control structures behave ________ to their JavaScript counterparts and the VBScript control structure syntax is ________ the JavaScript syntax.
differently, different than
The technique of developing and maintaining a large program by constructing it from small, simple pieces is called ________.
divide and conquer
An XML Schema describes the structure of an XML _______
document
An XML Schema describes the structure of an XML _______ .
document
The all collection is a property of the ________ object
document
The all collection is a property of the ________ object.
document
Which of the following types of nodes can have children ?
document element nodes + root nodes
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
What is the correct JavaScript syntax to write "Hello World"?
document.write("Hello World")
Elements with only character data are declared with
#PCDATA
Actions that can be detected by JavaScript are called?
Events
How many components do the JAXB Architecture provide
Schema compiler, Schema generator, Binding runtime framework
The VBScript operator for inequality is which of the following?
!= <>
Which one is used to declare an entity in DTD?
!ENTITY AUTHOR "Nguyen Ngoc Anh"
Which of the following is not a keyword used for default settings in an! ATTLIST element?
#DEFINE
An attribute which does not have to included is indicated by the value:
#IMPLIED
Consider the following declaration: !ATTLIST student age CDATA ???? Which one of the following can be used to replace ???? in the above definition?
#IMPLIED
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.
End of a CDATA block is characterized by the character string
']]'
For elements in the XSL namespace, XSL uses the prefix
'xsl:'
Event ________ fires constantly whenever the mouse is in motion
(a) ONMOUSEMOVE
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.
See the snipset below and choose one answer: <xsl:value-of select="floor(-2.3)"/>
-3
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>
-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>
-60
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 of the following snippet deletes an attribute of an Element node
... root.removeAttributeNode(attr);
Identify the operator used to search across any number of levels of the hierarchy from the current context.
.//
External style sheets are saved with the ________ extension.
.css
< 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
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
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>
10
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
What is the evaluation of the following expression? ((3+ ( 5 + 4 ) * 7 ) + 4 ) / 5
14
What is the evaluation of the following expression? ((3+ (5 + 4) * 7) + 4) / 5
14
What is the value of num after the following statement is performed? num = Math.round( 2.45 );
2
How many parameters are there for replaceData() method ? (start, length,string)
3
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
What would the browser display if the following script was executed and the user entered 5 at both prompts? <SCRIPT LANGUAGE = "JavaScript">var firstNumber = window.prompt("Enter an integer", 0);var secondNumber = window.prompt("Enter an integer",0);var thirdNumber;thirdNumber = firstNumber + secondNumber;document.write( thirdNumber ); </SCRIPT>
55
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
Consider the following code selections. Assume count is initialized to 7 and num is initialized to 0. i) ii) do { while ( count < 6 ) num = count; num = count; } while ( count < 6 ) What will the value of num be for i) and ii) respectively after the loops have been executed?
7, 0
Consider the following code selections. Assume count is initialized to 7 and num is initialized to 0.ii) do { while ( count < 6 ) num = count; num = count; } while ( count < 6 ) What will the value of num be for i) and ii) respectively after the loops have been executed?
7, 0
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*)>
Syntax for element declaration is
<!ELEMENT element-name (element-content type)>
Which syntax is used to insert comments into an XML document?
<!This is a comment>
For the XML parser to ignore a certain section of your XML document, which syntax is correct
<![CDATA[ Text to be ignored ]]>
Which is not a correct name for an XML documents
<1dollar>
Which is not a correct name for an XML documents?
<1dollar>
What is a correct way of referring to a style sheet called "mystyle.xsl"?
<?xml-stylesheet type="text/xsl" href="mystyle.xsl"?>
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">
Inside which HTML element do we put the JavaScript?
<script>
What is the correct HTML for referring to an external style sheet file named mystyle.css?
<style src="mystyle.css">
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 is the correct way to use the union operator
<xsl:apply-templates select='/CD/Artist | /Tape/Artist' />
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]" >
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"/>
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>
Identify the elements, operators in XSL can be used with:
<xsl:template> + <xsl:for-each>
Which of the following is not a valid equality or relational operator
=
<!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.
?
An attributes can be accessed in the way similar to the elements. Notice ____ in front of the attribute name
@
In XSL, an attributes can be accessed in the way similar to the elements. Notice ____ in front of the attribute name
@
What statement is true when processing XML in a servlet or JSP?
A DTD or Schema must be provided for validation.
Special symbols can be inserted into an XML document using
A UNICODE value
Which of the following defines what is meant by a valid document?
A document which conforms to the rules of a DTD
What is address, phone in the declaration ?
A group
In a DTD, Attributes are declared with an _______ declaration
ATTLIST
Which of the following is represented as a node in the tree a DOM parser creates?
All of the above
How is an empty XML element defined?
All of the above.
Which statement is true?
All of the above.
XML is more advantageous to use than a fixedlength database system because
All of the above.
Which of the following is not a property of the blur filter?
All of these are properties of the blur filter.
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
<!-- WELCOME.xml --> <?xml version = "1.0"?> <!DOCTYPE WELCOME SYSTEM "hello.dtd"> The following code indicates that the DTD is:
An external DTD
Property documentElement of DOMDocument object return
An object representing the root element if the XML document
Property documentElement of DOMDocument object return:
An object representing the root element if the XML document
Which best describe void?
An operator
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.
The ________ parses and translates all inbound and outbound messages going to and from a business.
BizTalk Server.
What does the keyword SYSTEM indicate in the following code? <!DOCTYPE Book SYSTEM "book.dtd">
Book.dtd is an external DTD
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
XSLT allows any kind of data to be tranformed into
Boolean
Which of the following types of parses is issued for event-based parsing?
Both SAX and StAX
Identify the correct statements:
Both are correct
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.
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: 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.
In a 3-tier model identify the front-end, middle-tier and back-end
Browser, WebServer, Database Server
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
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.
Which of the following is a valid VBScript conversion function?
CInt
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
<?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
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>|. The dtd file is valid
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
Schemas can be documented in human readable format by using
Comments
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
createElement(fititlefl) means
Create a new XML element
XML Can be used to
Create new language.
Unlike most other markup languages, including HTML, XML allows you to do what?
Create new tags
The ________ attribute is added to a TABLE element's opening tag to bind a data island to a table.
DATASRC
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
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
Treating a document as an object, extracting information, making changes and querying the document through code is termed as:
DOM
Which XML parser supports XPath capability?
DOM
Which of the following types of parsers is used for object-based parsing?
DOM
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
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
XML Schemas are the Successors of
DTD
In SAX, to provide customized DTD handling, application need to implement
DTDHandler
In SAX, to provide customized DTD handling, application need to implement :
DTDHandler
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 statement about SAX is false?
Data parsing can be controlled through SAX
Implements the method of ErrorHandler, EntityResolver, DTDHandler
DefaultHandler
Implements the method of ErrorHandler, EntityResolver, DTDHandler :
DefaultHandler
The xsl:template is used to
Define a template that can be applied to a node to produce desired output
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.
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".
The xsl:if is used to
Evaluate a condition expression against the content of the xml file
What is the format of DTDs ?
Extended Backus-Naur Form (EBNF);
What is XML?
Extensible Markup Language
XSLT is:
Extensible Stylesheet Language Transformation
The ________ attribute of the ________ element specifies another element that is identified by its ________ attribute.
FOR, SCRIPT, ID.
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
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.
"*/*" this syntax used in XSL will search all the elements that are the grandchildren of the root.
False
A descendant having a new namespace cannot override the namespace defined by the parrent element?
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
ANY indicates that an element can contain only one child element of character data.
False
Attribute values must always be enclosed by double quotes.
False
Even if all the border options are set using 'solid' as the border style option will remove, or turn off all the borders
False
Every XML document must have an associated DTD or schema
False
SAX parser has high memory consummation?
False
SAX support random access
False
SaxonB is the only software that can process an XQuery.
False
Sorting, filtering, pattern matching are few of the things that XSL cannot be used for.
False
The 'border' is used to set the width, color and style of the two borders.
False
The data() function returns the text value of a variable.
False
The default value for the minOccurs attribute in Schema is 0
False
The element contains only XSL elements.
False
The element instructs the CSS to evaluate a condition before extracting an element.
False
The roundhalftoeven() function rounds half the value returned by a function.
False
The same version of a DOM parser must be used on all computers.
False
The width attribute has a default value of 1.
False
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
Tree model is applied to static documents?
False
XML allows creation of multiple root elements
False
XML can only be transformed into HTML or XHTML.
False
XML defines the way elements relate to one another within the document's tree structure, and specifies the attributes
False
XML documents can be formatted using text editors.
False
Which of the following is false?
Filters and transitions cannot be adjusted dynamically.
fi/catalog/cd[@upc=fi + upc + fi] means
Find the upc attribute that matches the value of the upc variable in the cd element
The entities that are used only in DTDs are referred to as
General entities
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.
________ is a markup language for describing how content is rendered and _______ is a markup language for describing structured data—content is separated from presentation.
HTML, XML.
________ is a markup language for describing how content is rendered and ________ is a markup language for describing structured data—content is separated from presentation.
HTML, XML.
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
xmlns:xs=fihttp://www.w3.org/2001/XMLSchemafl is used to
Identify the XML schema specifications used in the XML schema
xsi:schemaLocation=ficustomers.xsdfl is used to
Identify the location of the XML schema
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
________ are declared in each individual HTML element using the keyword STYLE
Inline styles
________ are declared in each individual HTML element using the keyword STYLE.
Inline styles
The VBScript ________ function has the same purpose as JavaScript's window.prompt method.
InputBox
________ can validate your XML against a DTD.
Internet Explorer 5.0
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
The Document Object Model
Is an XML parser
What does the following statement do? <SPAN ID = "colorName" STYLE = "font-family: monospace" DATASRC = "#Colors" DATAFLD = "ColorName"></SPAN><BR>
It assigns the TDC control named Colors to a span element for display purposes.
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
<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.
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.
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.
What does the Option Explicit statement do?
It does not allow the programmer to use variables without declaring them first.
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.
Which of the following is true regarding the DHTML mask filter:
It is used to create images with transparent foregrounds
What does the following CSS rule do? .note { font-size: 1.5em }
It multiplies all text object font sizes with CLASS = "note" by 1.5.
What does the following CSS rule do?.note { font-size: 1.5em }
It multiplies all text object font sizes with CLASS = "note" by 1.5.
Which of followings are features of SGML?
It needs a separate+It describe+SGML application is
XSL does not provide support for:
It provides support for all the options stated.
What is the effect of the following line of code? window.event.returnValue = true;
It returns a true value to signal the browser to continue its default event-handling action.
What does the ScriptEngine function do?
It returns the type script being used.
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
What is stored inside the variable value after the following line of code is executed? var value = navigator.appVersion;
It stores a string representing the version of the browser and other information.
What is the significance of the following CSS rule? LI, EM { color: red;c font-weight: bold }
It will apply the specified style to text enclosed by either LI or EM tags.
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.
What is the significance of the following CSS rule?LI, EM { color: red;c font-weight: bold }
It will apply the specified style to text enclosed by either LI or EM tags.
What is the significance of the line? C[9] 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 makes XML more powerful than HTML?
Its ability to adapt to new uses
How to unmarshall XML into Java objects? Convert from XML to Java objects.
JAXBContext context = JAXBContext.newInstance(Cars.class);Unmarshaller u = context.createUnmarshaller(); Cars cars = (Cars) u.unmarshal(new FileInputStream("cars.xml"));
What would the function cube return, assuming it is called with the line cube(3). function cube(y); { return y * y * y; }
JavaScript runtime error
________ was originally created by ________.
JavaScript, Netscape
Microsoft's version of scripting that uses the Java syntax is called ________.
Jscript
<?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>
Line 6 contains error
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
_____ in XSL do allow the element to be processed for multiple times, each time producing different result.
Modes
In DOM, a node can have
More than one children nodes
Allow to validate documents that use markup from multiple namespaces?
Namespace support
According to Bohm and Jacopini, which of the following does not follow structured programming?
Nested building blocks
Which browsers can view the visual effects created by filters and transitions?
Netscape
H1{font-size xx-large} Is the above statement syntactically correct to make the heading font extra large?
No
S{margin-right:-3cm;} Is the above statement valid?
No
Differentiating between the different occurrences of a tag is by:
None of the above
The SAX parser creates a node by using
None of the above
Identify the correct statements
None of the above.
What is wrong with the following line of code? <P><FONT SIZE='5'>This is a test.</FONT></P>
Nothing
What is wrong with the following line of code?<P><FONT SIZE='5'>This is a test.</FONT></P>
Nothing
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
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.
What is wrong with the following VBScript code? Select Case x Case 1 Call MsgBox("1") Case 2 Call MsgBox("2") Case Else Call MsgBox("?") End Select
Nothing.
When the mouse moves over an element which of the following is triggered?
ONMOUSEOVER
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>
OOOOO
Which of the following is false?
Objects do not have the property of information hiding.
SAX uses
Push parsing machenic for processing
Which of the following is NOT done with JavaScript?
RGB Colors
Which of the following is NOT a type of popup box?
Radio
'childNodes' is a property of the DOMDocument Object: (Select the correct statements)
Read-only.+Contains a node list containing the children.
Which of the following are disadvantages of using SAX parsers?
SAX is read-only
Which one of the following classes is used to create an instance of XMLReader?
SAXReader
XML uses the features of
SGML
________ is a very powerful language and the mother of all markup languages.
SGML
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
How many components do the JAXB Architecture provide?
Schema compiler, Schema generator, Binding runtime framework
Document Content is determined by
Semantic Markup
What markup language categorization determines the content of the document?
Semantic Markup
SOAP stands for
Simple Object Access Protocol.
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.
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.
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.
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.
Theasync = false means
Statements will not execute until the XML document is being loaded.
Height="8" Weight="70"> Here 8 and 70 when used outside XML Environment, they are taken as
Strings
Document Structure is determined by
Structural Markup
The markup languages are classified as ____, ____ and _____
Structure Markup+Semantic Markup+Stylistic Markup
The property 'nextSibling' in DOMDocument Object contains the next node of the previous nodes in the parent's child list.
T
Which of the following is not a type of DTD?
Table based.
Identify the correct statements:
Tags from multiple namespaces can be mixed. + XSL uses the prefix 'xsl:' for elements in the XSL namespace
In Xpath, which node has a parent node and it may have child node too:
Text
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
The asterisk at the end of an element name in a DTD means its
The DTD contains zero to many of this element
Which statements are true?
The DTD specifies ... + The DTD contains the list of tags allowed within the XML document, and their types and attributes.
Consider the Formal Public Identifier -//W3C//DTD 1.8//IND
The Formal Public Identifier is not valid because the fourth field is not valid
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
Consider the following HTML document. <HTML> <HEAD> <TITLE>Children Collection</TITLE> <SCRIPT LANGUAGE = "JavaScript"> </SCRIPT> </HEAD> <BODY> <P></P> </BODY> </HTML> Select the true statement.
The SCRIPT element is a direct child of the HEAD element.
Which of the following is false?
The Sort property automatically displays the new order of the data.
Which of the following is true?
The TDC handles creating table cells for output.
Which of the following is true? When TDC is bound to a table, the user must allocate enough table data elements to accomodate all of the
The TDC handles creating table cells for output.
Which of the following is false?
The TDC outputs an interface like Microsoft Excel.
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
<?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>
The XML Schema is not valid because the xsd:element must include simpleType or complexType <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 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
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>
The XML code fragment is not validated because no DTD document is referenced
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE library[ <!ELEMENT library (book)?> <!ELEMENT book (booktitle, author, price)> <!ELEMENT booktitle (#PCDATA)> <!ELEMENT author (#PCDATA) #REQUIRED> <!ELEMENT price (#PCDATA)> ]> <library> <book> <booktitle>The Firm</booktitle> <author>John Grisham</author> <price>99</price> </book> <book> <booktitle>Coma</booktitle> <author>Robin Cook</author> <price>99.5</price> </book> </library>
The XML document is not validation because the book element is larger than one
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
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 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
The cde.xml is not valid because the parser not determine lastname
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
<?xml version="1.0" encoding="UTF-8"?> <aaa> <bbb>ccc</bBb> </aaa> Choose the correct answer
The document is not well-formed
<?xml version="1.0" encoding="UTF-8"?> <email> <to>Joe</to> <from>John</from> <heading>Final Exam</heaDing> <body>Try your self</body> </eMail>
The document is not well-formed
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
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
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.
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 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
Which of the following is true?
The invert filter applies a negative image effect.
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.
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..
Giving a local function variable the same name as a global variable will result in which of the following?
The local variable will "hide" the global variable.
What is stored inside the variable value after the following line of code is executed? var value = navigator.version;
The navigator object does not contain an attribute named version.
Which of the following statement explains about the object relational mapping?
The object relational mapping uses the XML document as a tree of objects
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?
The pText object does not have an innerText attribute.
Consider the following HTML document. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Object Model</TITLE> <SCRIPT LANGUAGE = "JavaScript"> function start() { alert( pText.innerText ); pText.innerText = "Thanks for coming."; } </SCRIPT> </HEAD> <BODY ONLOAD = start()> <P ID = "pText">Welcome to our Web page!</P> </BODY> </HTML> Which of the following selections a true statement?
The pText object does not have an innerText attribute.
What is the result of writing the keyword var in a function parameter list?
The parameter following the keyword would become a static variable.
Which of the following is true regarding Function procedures?
The procedure can return a value by assigning a value to the Function procedure name.
The main difference between the blendTrans filters and the revealTrans filters is _________.
The revealTrans filter has more transition effects than the blendTrans filter
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
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.
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.
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.
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.
Consider the following script. What is wrong with the following code?<SCRIPT LANGUAGE = "JavaScript">var firstNumber,secondNumber;thirdNumber;thirdNumber =parseInt( window.prompt( "Enter an integer", 0 ) );document.write( thirdNumber );</SCRIPT>
The word var must be placed before thirdNumber in line 4.
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
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.
Which of the following statements regarding filters and transitions is false?
They are applied on a client computer at run time by the server.
What does the following statement do? Math.floor( Math.random() * 12 );
This creates a random number from 0 up to but not including 12.
What does the following statement do?Math.floor( Math.random() * 12 );
This creates a random number from 0 up to but not including 12.
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.
Which of the following statement about Attribute Node in DOM is true?
This node represents the property of an element
<!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
<!ELEMENT do(message+)> The "+" sign indicates that the child element 'message' must occur at least once inside the do element.
True
A Data Island is a way to hold XML code within an HTML page.
True
A Stream is a series of characters that can be the results of transformation performed by a Java transformer.
True
A child element can be a parent element.
True
A default value is automatically assigned to the attributes when no other value is specified.
True
A facet is a valid value that can be assigned to an attribute
True
A facet is a valid value that can be assigned to an attribute.
True
An XML Schema defines whether an element is empty or can include text.
True
An XML document can be validated against a DTD by calling the validate() method.
True
An XML schema is used to define a complex type.
True
An attribute is another name for stating property of an element.
True
An image tag is an example of an EMPTY element.
True
Both Mozilla and Internet Explorer support W3C's DOM specification.
True
DTD defines the document structure with a list of legal elements.
True
DTD helps define the legal building blocks of an XML document.
True
Documents that follow the XML tag rules, but don't have a DTD are well-formed documents.
True
Each box has a border that separates it from the edge of the canvas
True
Elements inside the root are termed as child elements.
True
Every XML document must be well formed
True
External DTD is referenced at the beginning of the XML file.
True
If an element has attributes, it is considered to be of complex types.
True
In DOM, it is not necessary that an object for a valid node type will always be returned.
True
Internet Explorer will skip white-space text node that are generated between nodes (e.g. new-line characters), while Mozilla will not.
True
Internet Explorer will skip whitespace text node that are generated between nodes (e.g. newline characters), while Mozilla will not.
True
Length of XML tag is dependent on the processor.
True
Logical structure of data can be interpreted and used in many ways by various applications due to XML tags.
True
Manipulating the XML document through DOM does not require any objects of the document to be created.
True
Styles can change without waiting for the page to be reloaded.
True
The 'readyState' property in the DOMDocument Object defines several states that specify the current status of the asynchronous download.
True
The 'type' attribute in the <?xml-stylesheet?> processing instruction is the MIME type of style sheet.
True
The 'xml' property always returns a UNICODE string.
True
The CSS Layout can control layout of the box on the screen.
True
The appendChild() appends a node to the end of an XML document.
True
The appendChild() method links a node to the current node.
True
The doc() function retrieves an XML document.
True
The formatting components of XSL are not supported by IE5.
True
The loadXML() method is used when the document is passed as a string.
True
The logical structure of XML can be manipulated by XSL.
True
The processing part in a template in XSL defines the way the styling is to be applied to the child nodes.
True
The value of the CSS styling property can be a color value.
True
The xs:enumeration tag is used to define a valid value for an attribute.
True
The xsl:attribute do generates the elements in the time of processing.
True
The xsl:choose element is used for the purpose of selection between the several possibilities.
True
WML for handheld devices is written in XML.
True
We can create documents, which can switch styles without submitting the file back to the server.
True
XML DOM defines a standard set of objects for XML documents only.
True
XML declaration is also a processing instruction.
True
XML document must be valid?
True
XML is used for web services.
True
XML parser checks for validity and well formed ness?
True
Xml property of the XMLDOMNode object is a read only property.
True
Xpath can be thought of as a query language like SQL
True
You can require a specific value for an attribute by setting the value for fixed.
True
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.
True
How many different kind of loops are there in JavaScript
Two. The "for" loop and the "while" loop
How can the data source be validated against the associated schema in unmarshalling operation?
Using setSchema method or using setValidating method
Which of the following is true regarding VBScript arrays?
VBScript arrays can be dynamically allocated.
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
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
An XML document, which conforms to its DTD, is called a
Valid Document
An XML document, which conforms to its DTD, is called a:
Valid Document
Using DTD, _________ parser checks for validity.
Validating
How many type of XML parser does?
Validating Parsers and Non-Validating Parsers
You can specify a series of valid values for an element by using which of the following in a regular expression?
Vertical bar sign
XML is a _______ Recommendation
W3C
XML is the mother of
WAP and WML
Which of the following is an XML-based service IDL that defines the service interface and its implementation characteristics
WSDL
Which of the following is an XMLbased service IDL that defines the service interface and its implementation characteristics.
WSDL
What are the types of errors handled defined by the SAX ErrorHandler interface?
Warning, Error, Fatal-Error
Identify the correct statements related to 'createNode method':
When a node is created, it is created in context of the namespace mentioned.
Writing an Internal DTD inside a DOCTYPE is known as:
Wrapping
Schema is an _____ based alternative
XML
Which contains in XML document's prolog?
XML Declaration or/and Document Type Declaration
XSD is:
XML Schema Definition
Elements are the main building blocks of both
XML and HTML documents
Which of the following statements are true in the case of XML?
XML describes its data along with its presentation
Identify the correct statements:
XML documents can be sent + XML documents, which are not displayed to the users, do not require stylesheets.
Which statement is used to describe about multi-pipeline?
XML is mapped to Bean object, then it applied to many JSP
Which of the following statements are true in the case of XML
XML was designed to describe data
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
The World Wide Web Consortium (W3C) started to develop XSL because there was a need for
XML-based Stylesheet Language
Represents a collection of attribute nodes
XMLDOMNamedNodeMap
Represents a collection of attribute nodes:
XMLDOMNamedNodeMap
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
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
Method getElementsByTagName return a node of list which will be stored as
XMLDOMNodeList object
Which exception is used to catch Exception when the XMLEventReader is used
XMLStreamException
Which exception is used to catch Exception when the XMLEventReader is used?
XMLStreamException
The World Wide Web Consortium (W3C) started to develop XSL because there was a need for:
XMLbased Stylesheet Language
Instructions for transforming an XML document are contained in the
XSL stylesheet
XSL provides a transformation language called:
XSLT
The 'standalone' attribute can be set to
Yes/No
How can you get a node list of all the <senator> elements in a document?
You can call a Document object's getElementsByTagName method like this: document.getElementsByTagName("senator")
How can you determine the text in a text node by using SAX?
You can implement the characters method and extract the text node's text from the character array passed to you, using the starting position in the array
What SAX method(s) do you implement to handle elements?
You can implement the startElement and endElement methods to catch the starting and closing tags of elements
What methods can you use with SAX to handle warnings, errors, and fatal errors?
You use methods such as the warning method to handle warnings, the error method to handle errors, and the fatalError method to handle fatal errors
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 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 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"
The 'appendChild()' method of the DOMDocument Object adds:
a new node
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 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.split( " " );
a) Good luck on the test
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.
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
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 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
Which of the following is true regarding VBScript arrays?
a) VBScript arrays can be dynamically allocated
Identifiers which have static duration ________.
a) are globally accessible to the script
The CSS specification gives precedence to ________.
a) author styles over user styles
The technique of developing and maintaining a large program by constructing it from small, simple pieces is called ________.
a) divide and conquer
Which of the following is the proper method to apply a transition effect
a) element.filters( "blendTrans" ).apply();
Initializing an array directly involves using the ________ control structure.
a) for loop
Function definitions often contain ________ which are considered to be local variables and correspond with the arguments in the function call.
a) parameters
The third parameter in the addPoint method ________.
a) sets the height of the point source
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);
TThe java sort method uses ________ to sort the array passed to it
a) string comparison
The binding of TDC to a table requires setting the DATASRC property in the ________
a) table element
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
Call-by- ________ is the method of passing a copy of the argument's value to a function.
a) value
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
What is the value of i after the following statements? i = 2; i--; i--;
a. 0
What is the value of num after the following statement is performed? num = 2 * Math.pow( 2, 3 );
a. 16
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
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]>
An element declaration has the following syntax
a. <!ELEMENT element-name category>
In a DTD, Attributes are declared with an _______ declaration
a. ATTLIST
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
XML DOM is:
a. XML Document Object Model
XSD is:
a. XML Schema Definition
The World Wide Web Consortium (W3C) started to develop XSL because there was a need for
a. XML-based Stylesheet Language
XSL consists of three parts. Which are
a. XSLT, Xpath, XSL-FO
The line window.alert("Hello world") will display output in ________.
a. a dialog box
Which of the following flowchart symbols indicates that a decision is to be made?
a. diamond
Which of these are not kinds of complex elements?
a. elements that contain only numbers
A DTD can be declared inline in your XML document, or as an
a. external reference
attributes provide _______ about elements.
a. extra information
Which of the following will evaluate to false
a. false && false
Which of the following will not evaluate to true?
a. false || false
The ________ method can be used to display the value of the specified attribute.
a. getAttribute()
Which of these axes which are used in XSL
a. grand-parent
it defines the document structure with a list of _______.
a. legal elements
Each attribute,element and text in the XML document represents a
a. node in the tree
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
If the string passed to parseInt contains text characters, parseInt will ________.
a. return NaN
XSL processors do parses the XML source and tries to find out the matching _______ rule
a. template
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
a_____ instruction do contains the template, which is been applied to each node selected with the select attribute
a. xsl:for-each
The ____ instruction do enables the conditional processing
a. xsl:if
a++; is the same as which of the following
a=a+1
a++; is the same as which of the following ?
a=a+1;
XML DOM defines a standard way for
accessing and manipulating XML documents
Which has no syntax error?
alert("hello +3+ times");
With an extensible Schema definition you cannot:
all
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
The ONFOCUS event fires when ________.
an element is clicked.
The ONBLUR event is associated with ________.
an element losing focus.
Property documentElement of DOMDocument object return _____.
an object representing the root element if the XML document
What is the value of s1 after the following code is executed? var s1 = "deitel and associates" s1 = s1.slice( 6 )
and associates
You can append the <child> element to the <element> element by using the <child> element's ____________ method.
appendChild
The chroma filter is used to ________.
apply transparency effects dynamically
Identifiers which have static duration ________.
are globally accessible to the script
Functions are invoked by writing the name of the function, followed by the function's ________ in closed parenthesis.
arguments
Which of the following is the proper method to access the length of the array arr[]?
arr.length
_________ are data structures consisting of related data items (sometimes called collections of data items).
arrays
<!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.
An empty complex element cannot have any contents, only
attributes
Each object has ________ or data and ________ or behavior.
attributes, methods
The CSS specification gives precedence to ________.
author styles over user styles
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
The VBScript operator for inequality is which of the following
b) <>
Which of the following is a valid VBScript conversion function
b) CInt
The VBScript ________ function has the same purpose as JavaScript's window.prompt method
b) InputBox
Which of the following is true regarding the DHTML mask filter:
b) It is used to create images with transparent foregrounds
Which of the following is false
b) Objects do not have the property of information hiding.
Which of the following is true?
b) The TDC handles creating table cells for output
Which of the following is true?
b) The invert filter applies a negative image effect
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
Which of the following string functions returns a string that does not contain any leading or trailing space characters
b) Trim
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
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"
The keywords Property Let and Property Set are used for ________.
b) accessing Private class variables
Describing an object in terms of behaviors without concern for how those behaviors are actually implemented is called ___
b) data abstraction
Identifiers that represent local variables in a function ________.
b) exist while the function in which they are declared is still active
________ and ________ run slower when they are applied to large arrays
b) linear search, bubble sort
All variables declared in function definitions are ________.
b) local variables
The best way to develop and maintain a large program is to construct it from small, simple pieces called ________.
b) modules
The ________ object contains information about the Web browser that is viewing the page.
b) navigator
In order for elements to be floated, position must be ________.
b) not absolute
When using the width, height and overflow properties of an element, position must be ________
b) not absolute
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
CSS positions can be either absolute or ________.
b) relative
Which of the following best describes the visual effect that alpha is used for
b) replacing text colors
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
The VBScript '&' operator is used for ________.
b) string concatenation
The @ character is referred to as a______
b) text qualifier
The JavaScript keyword this always refers to ______
b) the element in which the statement resides
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
What is the evaluation of the following expression? ((3+ (5 + 4) * 7) + 4) / 5
b. 14
What is the result of the statement 17 % 5?
b. 2
What is the value of i after the following statements? i = 2; i += 25
b. 27
In a DTD, Attributes are declared with an _______ declaration
b. ATTLIST
The word sequence in the term sequence structure refers to the sequence of ________
b. JavaScript instructions in a script
According to Bohm and Jacopini, which of the following does not follow structured programming?
b. Nested building blocks
Microsoft's version of scripting that uses the Java syntax is called ________.
b. None of the others
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.
elements are the main building blocks of both
b. XML and HTML documents
Which of the following XML based markup languages provides a protocol for business transactions on the Internet?
b. cXML.
CDATA means
b. character data
In a switch structure, the ________ case clause is used to process exceptional conditions and is usually listed last.
b. default
Which of the following is a JavaScript repetition structure
b. do/while
Which of the following is not a JavaScript selection structure
b. for/in
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 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
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.
background-attachment
will not move the image from its set position.
background-attachment
XML Schema is designed to
be selfdescriptive.
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
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
Which of the following is false
c) The Sort property automatically displays the new order of the data
Which of the following is false?
c) The TDC outputs an interface like Microsoft Excel.
Which of the following is true?
c) The dropShadow filter does not have a direction attribute
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 is the effect of the join statement in the following code?
c) The join method will create a string from the values in theArray1
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
The main difference between the blendTrans filters and the revealTrans filters is _________.
c) The revealTrans filter has more transition effects than the blendTrans filter
Which of the following is true?
c) The shadow filter property can be set to exactly 8 different values
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
What is the value of s1 after the following code is executed? var s1 = "deitel and associates" s1 = s1.slice( 6 )
c) and associates
Functions are invoked by writing the name of the function, followed by the function's ________ in closed parenthesis
c) arguments
Which of the following is the proper method to access the length of the array arr[]?
c) arr.length
_________ are data structures consisting of related data items (sometimes called collections of data items)
c) arrays
Each object has ________ or data and ________ or behavior
c) attributes, methods
Local variables have ________ duration
c) automatic
The VBScript '+' operator is used for ________.
c) both a and b
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
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
Which of the following is not a property of the glow filter
c) direction
Which of the following is not a property of the wave filter?
c) direction
An object's methods and attributes are accessed by writing the name of the object followed by the ________.
c) dot operator
The ________ of a variable is the period during which it exists in memory
c) duration
The style of programming in which the user interacts with a GUI component is called ________ programming
c) event-driven
Which of the following methods would you use to convert a list of Unicode values into a string containing the corresponding characters
c) fromCharCode
The "prepackaged" functions that belong to JavaScript objects such as Math.pow and Math.round are often called ________.
c) methods
The ________ property of the wave filter shifts the effect in space
c) phase
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
If an element's position is declared as absolute then ________
c) positioning is set according to the margins of its parent element
The TDC method Reset is used for _____
c) refreshing the display
Which of the following is not a border property
c) shape
Which of the following methods does the JavaScript Number object not possess?
c) valueOf
Which of the following is not a VBScript sub-typ
c) variant
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
Elements with only character data are declared with
c. #PCDATA
Which language is used to describe the DTD syntax?
c. Extended Backus-Naur Form
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
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 is not an extension of XML?
c. SGML.
Which of the following statements is correct
c. if ( studentGrade >= 60 ) document.write( "Passed" );
In the following line, the word document is a ________ which resides in the computer's memory and contains information used by the script. document.writeln("Hello World");
c. object
Which of the following is not required for counter-controlled repetition
c. sentinel
Which of the following is not a JavaScript keyword
c. sub
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
Which of the following elements is not valid inside a group element in an XBRL document?
c. value
The ________ element generates the markup for an element of the specified name in the output HTML
c. xsl:element
Which of the following XML based markup languages provides a protocol for business transactions on the Internet?
cXML.
Every switch structure must have ________ labels which are separated by the keyword break.
case
In VBScript, the unit of object-oriented programming is the ________.
class
In the body of a style sheet, CSS rule properties are followed by a ________.
colon
The use of namespace in a document can be recognized using a ______ in the tag name.
colon
The Copy and _______ constructs are used for the nodes copying.
copy-of
The Copy and _______ constructs are used for the nodes copying.
copyof
A _____ function returns number of nodes present in an argument node-set
count
A _____ function returns number of nodes present in an argument nodeset.
count
a_____ function returns number of nodes present in an argument node-set
count
Which DOMDocument method is used to create a new attribute?
createAttribute
You can create the <child> element by using a Document object's ______________ method.
createElement
The _____ method creates the new element node
createElement()
The _____ method creates the new element node.
createElement()
You can create the text in it by using the _____________ method.
createTextNode
Which of the following methods creates a node for inserting textual content in to it?
createTextNode()
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
What does the value string contain after the following code is executed? var string = "Good luck on the test"; string = string.charAt( 3 );
d
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.
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
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 false?
d) Filters and transitions cannot be adjusted dynamically.
What does the Option Explicit statement do
d) It does not allow the programmer to use variables without declaring them first.
What is the underscore character used for in VBScript?
d) It is used as a line continuation character
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
What does the ScriptEngine function do?
d) It returns the type script being used
What does the ScriptEngine function do
d) It returns the type script being used.
Which browsers can view the visual effects created by filters and transitions
d) Netscape
Which of the following is true?
d) Text qualifiers encapsulate the data in a field
Which of the following is true regarding VBScript classes?
d) The Property Let method is used for non-object subtypes
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 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.
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
Which VBScript function returns an integer indicating the variant subtype?
d) VarType
________ makes it now possible for data manipulation to be shared by the server and the client.
d) all of the above
The chroma filter is used to ________.
d) apply transparency effects dynamically
The VBScript control structures behave ________ to their JavaScript counterparts and the VBScript control structure syntax is ________ the JavaScript syntax
d) differently, different than
How a data source is displayed by the browser depends on the ________.
d) element that the data source is bound to
The TDC Filter property allows you to ________.
d) filter out all records that do not have a cell matching the text you specify
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"
Which of the following methods would you use to search a character for a specific string?
d) indexOf
Where on the browser will the command window.status( "text" ) display output?
d) on the status bar
Call-by- ________ is the method of passing the argument's actual location in memory to a function.
d) reference
In JavaScript, all objects and Arrays are passed to functions by ________
d) reference
The first two parameters in the addPoint method ________.
d) sets the point source of the light
The ________ property of the wave filter determines the wave's amplitude
d) strength
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 #
Which of the following is the proper method to dynamically allocate memory to an array of 100 elements
d) var c = new Array( 100 );
Which of these characters cannot be used as entity references in XML?
d. $
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
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; 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
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 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
All Biztalk documents have the root element ________.
d. BizTalk
The ________ attribute is added to a TABLE element's opening tag to bind a data island to a table
d. DATASRC
________ is a markup language for describing how content is rendered and _______ is a markup language for describing structured data—content is separated from presentation.
d. HTML, XML.
________ was originally created by ________.
d. JavaScript, Netscape
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
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
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
In the following line, the word writeln is a ________ which performs a task or action in the script.
d. method
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
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
You can also use a DTD to verify your own
data
implemented is called ________.
data abstraction
One of the greatest strength of XML Schemas is the support for
data types
In order to sort numeric values, you must set the to
datatype=finumberfl
The statement on line 1 ________ the array while the statement on line 2 ________ the array. 1 var c; 2 c = new Array( 12 );
declares, allocates
The xsl:template is used to
define a template that can be applied to a node to produce desired output
Which of these are not supported by XML Schema?
defines which files are child elements
Which of the following is a JavaScript reprtition structure?
do/while
An XML Schema describes the structure of an XML ____
document
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")
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")
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);
An object's methods and attributes are accessed by writing the name of the object followed by the________.
dot operator
The ________ of a variable is the period during which it exists in memory.
duration
What does XSL stand for?
eXtensible Stylesheet Language
In schema, the ALL element requires that
each element in the group must occur at most once
How a data source is displayed by the browser depends on the ________.
element that the data source is bound to
Which of the following is the proper method to apply a transition effect?
element.filters( "blendTrans" ).apply();
Which of these are not kinds of complex elements?
elements that contain only numbers
Which facet of the string data type can be used to specify a set of values that a data type can accept?
enumeration
(eval
eval|___) the following value indicates that | None of the above.
With the ________, scripts can respond to a user moving the mouse, scrolling up or down the screen or entering keystrokes.
event model.
The style of programming in which the user interacts with a GUI component is called ________ programming.
event-driven
Identifiers that represent local variables in a function ________.
exist while the function in which they are declared is still active
A DTD can be declared inline in your XML document, or as an
external reference
Attributes provide _______ about elements.
extra information
#REQUIRED specifies that an element is required in all XML documents that use the DTD.
f
</PITarget <instruction>/> is a processing instruction
f
<Student:Name age ="12">Kevin</ Student:Name> it the correct for associating age with the student namespace.
f
A built-in simple element can contain a default value or a facet value
f
A built-in simple element can contain a default value or a facet value.
f
A child element inherits the properties of an ancestor element only if it is an immediate child
f
A custom user defined datatype can be created using the <simpleType> definition
f
A default namespace is used by an element and its child elements if the element has a namespace prefix
f
A descendant having a new namespace cannot override the namespace defined by the parent element
f
A node can have more than one parent nodes
f
A string is a sequence of one or more Unicode characters
f
Ability to create one's own tags is XML's greatest disadvantage
f
All functions used by an XQuery are builtin functions.
f
An XML Schema is an XML-based add-on to DTDs
f
An XML Schema is an XML-based add-on to DTDs.
f
An XSLT processor takes three things as input such as XSLT stylesheet, XML document and Document Type Declaration
f
Browser has the ability distinguish duplicate element names in an XML document
f
CSS uses complex elements to format the documents
f
Cascading Style Sheets lack support to define spacing between data,
f
Character data is treated as regular text
f
Characters like ">" and "&" can be used in PCDATA sections.
f
Comments appear only in the document prolog.
f
Comments are processed by the processor.
f
Crimson and Xerces are some of the browsers
f
DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for a document
f
DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for a document.
f
DOM parser is used for navigating the document recursively
f
DOM supports go-forward only when traversing the XML documents.
f
DTD checks for the structure and content of the XML document
f
DTD declarations from the external subset have priority over the declarations from the internal subset
f
Element content means a complex type element that contains only elements
f
Element node is the starting point of the DOM tree
f
Elements of simple type constitute the structure of an XML document
f
Every XML document must have an associated DTD or schema
f
External DTDs use the keyword URL to specify the location of the DTD
f
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
In XPath, the structure of an XML document is viewed conceptually as a pyramid,
f
In XSLT, a string is a sequence of one or more Unicode character
f
In a substring o function, the index of the first character is 0.
f
Leaf nodes have child nodes under them
f
Leaf nodes have child nodes under them?
f
Linear Model is applied to dynamic document object?
f
MSXML can only be used with JavaScript.
f
Mixed content means that an element whose structure is the complex type can contains elements with attributes
f
Only a browser can access a result document.
f
Parameter entities use ampersand (&) and semicolon (;) as delimiters
f
Root element must not be a nonempty tag.
f
SAX parser has high memory consumption
f
SAX requires the entire document to be stored in the memory
f
SaxonB is the only software that can process an XQuery.
f
Schema checks for the validity of the XML document?
f
Simple selectors match occurrence of an element based on a condition
f
StAX parser parses the XML document once.
f
Style sheets allow you to mix presentation markup with data
f
The SAX parser is able to transverse an XML document.
f
The choice element cannot mention the minOccurs and maxOccurs attribute
f
The data() function returns the text value of a variable.
f
The default value for the minOccurs attribute is 0
f
The descendant has the same namespace as the parent element even if it has a new namespace definition
f
The numbers like 43 or -7000 that look like integers are stored as float
f
The only allowed operation in a result tree fragment is on a number
f
The order and the number of elements appearing in the mixed content cannot be specified in schemas
f
The order and the number of elements that appears in the mixed content cannot be specified in the schema
f
The roundhalftoeven() function rounds half the value returned by a function.
f
The same version of a DOM parser must be used on all computers.
f
The sequence element provides an XML representation for describing a selection from a set of element types
f
There is always only one style rule defined for every element
f
Universal selectors match every occurrence of parent and child elements
f
When a minOccurs attribute is used, there cannot be a maxOccurs attribute in the same line
f
XML cannot be used with HTML
f
XML describes its data along with its presentation
f
XML is transformed only via XSLT
f
XML parser does its work after the processor converts the document into a data
f
XML stores data in fixed lengths
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
XML tags are predefined
f
XML uses only XSLT to be transformed to HTML
f
XPath provides multiple syntax that can be used for queries, addressing and patterns
f
XSL in Internet Explorer 5.0 is 100% compatible with the latest released W3C XSL standard.
f
XSL is a stylesheet application specifically for HTML,
f
You must use a parser to read an XML document
f
load() method is used to load a string
f
loadXML() method is used to load an XML file
f
xmlns:localname="value" is the correct syntax for including a attribute in a namespace.
f
Restrictions on XML elements are called
facets
Characters like ">" and "&" can be used in PCDATA sections?
false
External DTDs use the keyword URL to specify the location of the DTD?
false
Parameter entities use ampersand (&) and semicolon (;) as delimiters?
false
SAX support random access:
false
The default value for the minOccurs attribute in Schema is 0
false
Tree model is applied to static documents?
false
Which of the following will not evaluate to true?
false|| false
The TDC Filter property allows you to ________.
filter out all records that do not have a cell matching the text you specify.
Which is the proper method to set the mask color?
filter: mask( color = #CCFFFF )
Identify the valid font properties and font related options are:
font-family + font-variant
Which of the following settings can be altered to change the darkness of the font
font-weight
Which of the following settings can be altered to change the darkness of the font?
font-weight
Which of the following is declared correctly and will not result in an error assuming x = 2 and y = 30?
for ( var j = x; j <= 80 * y; j += 5 / x )
Which of the following are declared correctly?
for (var i=0;i<100;++i ) { statement; }
Which of the following are declared correctly?
for (var i=0;i<100;++i ) { statement;}
Initializing an array directly involves using the ________ control structure.
for loop
Which of the following is true?
for loops increment after the body statement is performed and while loops increment in either condition or body
The ________ property of the wave filter determines how many waves will be applied in the affected area
freq
The ________ property of the wave filter determines how many waves will be applied in the affected area.
freq
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 methods would you use to convert a list of Unicode values into a string containing the corresponding characters?
fromCharCode
To keep the browser from performing a script as soon as it is loaded you need to write the script as a what ?
function
To keep the browser from performing a script as soon as it is loaded you need to write the script as a what?
function
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
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?
game.point.value = "10"
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()
You can use the node's _____________ method and check the results it returns against fields such as Node.ELEMENT_NODE,Node.TEXT_NODE, and so on.
getNodeType
You can use the getNodeName method to get a node's name and its _______________ method to get its value.
getNodeValue
Which of the following contradicts the notion of structured programming
goto
Which of the following contradicts the notion of structured programming?
goto
Which of the following is not one of Bohm and Jacopini's three control structures
goto-less structure
Which of the following is not one of Bohm and Jacopini's three control structures?
goto-less structure
Which of these axes which are used in XSL?
grand-parent
Which of these axes which are used in XSL?
grandparent
What is the result of writing the keyword var in a function parameter list
he result would be a JavaScript runtime error
The word top in the term top-down stepwise refinement refers to which of the following?
he single statement that completely represents the program
Which of the following statements is correct?
if ( studentGrade >= 60 ) document.write( "Passed" );
How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?
if (i != 5)
How do you write a conditional statement for executing some statements only if "i" is equal to 5?
if (i==5)
What is NOT true about StAX?
it is a "push" parser
It defines the document structure with a list of ____
legal elements
All variables declared in function definitions are ________.
local variables
In the following line, the word writeln is a ________ which performs a task or action in the script. document.writeln("Hello World");
method
If the attribute minOccurs is specified but the attribute maxOccurs is not, what is the default value of the latter ?
minOccurs
_ in XSL do allow the element to be processed for multiple times, each time producing different result.
modes
How do you call a function named "myFunction
myFunction()
Can you define list of lists in XML Schema ?
n
Is the text node a direct child of the enclosing element in XPath
n
How do you find the client's browser name?
navigator.appName
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 of these are not the valid XML DOM relationships?
nextNode
Are the following element declarations identical ?
no
Can a simple type (from XML Schema ) have attributes
no
Can a simple type (from XML Schema ) have children
no
Can you have external entities in an attribute of type CDATA
no
Do you have child nodes of type entity references (internal or external) from XPath's perspective
no
Is the DOCTYPE declaration compulsory?
no
Is the DTD element type "ANY" equivalent with the XML Schema element "anyType" ?
no
Is the following XML Schema definition valid ?
no
Is the following attribute valid? <!ATTLIST Test4 an_attribute ID #FIXED "value">
no
Identify the statements which hold true for CSS:
none
Which ways are the CSS style rules applied to HTML?
none
When using the width, height and overflow properties of an element, position must be ________.
not absolute
If an XML element is of type "xs:date" and contain a string like "Hello World", the element will
not validate
What would the browser display if the following code was executed in a script? var product = 0; while ( product <= 25 ); product = 2 + product;
nothing, the script would result in an error
In the following line, the word document is a ________ which resides in the computer's memory and contains information used by the script. document.writeln("Hello World");
object
The XML DOM define a standard set of ______ for XML
object
The XML DOM define a standard set of ______ for XML
objects
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
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
Onclick is equivalent to which two events in sequence
onmousedown and onmouseup
Which best describe void?
operator
An attribute specified in XML Schema has a default value. Is this case the attribute can also be:
optional
Select the correct attribute for sorting in an XSL document:
order-by
Which package contains the interface that provides methods to parse XML documents
org.xml.sax package
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" )
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
Which of the following selections does not follow the rules of operator precedence?
parentheses, subtraction, modulus
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
PCDATA means:
parsed character data
Entities are expanded when a document is parsed by an XML
parser
Restricts string types using regular expressions?
pattern
The values of an attribute of type ID is unique
per document instance;
The ________ property of the wave filter shifts the effect in space.
phase
In XSL the different source elements are separated by a:
pipe-stem
Why does DTD need?
place preconditions on the data the programs read
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
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
Templates are been ordered according to their ________ which can be specified with the priority attributte.
priority
templates are been ordered according to their ________ which can be specified with the priority attributte.
priority
'XMLDOMNamedNodeMap' is an XML DOM Object that:
provides iteration and access by name to the collection of attributes.
___ is an artificial and informal languege that helps programmers develop algorithms
pseudocode
'XMLDOMCDATASection' is an XML DOM Object that:
quotes or escapes blocks of text so that text is not interpreted as markup language.
Call-by- ________ is the method of passing the argument's actual location in memory to a function.
reference
The TDC method Reset is used for ________.
refreshing the display
We can navigate between nodes with the use of their ________ to each other
relationship
We can navigate between nodes with the use of their ________ to each other.
relationship
The _______ method is used to remove the attribute node.
removeAttributeNode()
The ______ method can be used to remove the specified node
removeChild()
The ______ method can be used to remove the specified node.
removeChild()
Elements which have absolute position are automatically ________ the text flow.
removed from
Which of the following best describes the visual effect that alpha is used for?
replacing text colors
'XMLDOMNode' is an XML DOM Object that:
represents the base interface for accessing data in the XML Object model.
The need of using DTD in developing XML document is
required when validating XML documents
The _______ of an identifier for a variable or function is the portion of the program in which the identifier can be referenced
scope
The _______ of an identifier for a variable or function is the portion of the program in which the identifier can be referenced.
scope
Multiple CSS rule properties in style sheets are separated by a ________.
semicolon
avaScript lines end with what?
semicolon
Which of the following is not required for counter-controlled repetition?
sentine
Which of the following is not required for counter-controlled repetition?
sentinel
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>
sentinel controlled
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>
sentinel controlled
Which of the following JavaScript statements use arrays?
setTimeout("a["+i+"]",1000)
The third parameter in the addPoint method ________.
sets the height of the point source
The first two parameters in the addPoint method ________.
sets the point source of the light
Stylesheet can do have ____ variables with the same name.
several
Which of the following is a legal function call for the function definition provided below? function square( y ) { return y * y; }
square(7+2);
Which of the following functions in SAX parser notifies an XML document handler about the start of an element in an XML document?
startElement()
You can implement the ______________and _____________methods to catch the starting and closing tags of elements.
startElement, endElement
The ________ property of the wave filter determines the wave's amplitude.
strength
The ________ multiple selection structure is used to handle multiple decisions making and can be used to replace multiple if and if/else statements.
switch
<elemencName xmlns=' URL' > is the correct syntax for declaring a default namespace
t
A CSS style sheet is associated with an XML document using the processing instruction xml-stylesheet.
t
A Markup Language is defined as a set of rules adding some meaning to the content and structure of documents.
t
A default value is automatically assigned to the attributes when no other value is specified.
t
An attribute without a prefix is in default namespace
t
CDATA starts with "<[!CDATA[" and ends with "]]>".
t
CSS is a simple, styling-based approach that does not require advanced programming skills
t
Cascading Style Sheets derived the term cascade from the ability to mix and match rules from different sources
t
Characters like ">" and "&" can be used in CDATA sections.
t
Client reduces the server load by sending large amount of information in one XML document to the server.
t
DOCTYPE declarations are specified in the prolog of the XML document
t
DOM considers all items present in XML document as node
t
DTD defines the document structure with a list of legal elements.
t
DTD doesn't support namespaces.
t
DTDs are used to validate XML documents
t
DTDs contain declarations for elements and entities
t
Data in HTML cannot be structured.
t
Declarations are sorted by the order specified
t
Declarations are sorted by weight and origin
t
Document Object Model treats a document as an object?
t
Document object is the only object that is created.
t
Document prolog can consist of version declaration, DTD comments and processing instructions.
t
Each XML document can be represented as a tree structure
t
Element content cannot have attributes
t
Element content cannot have attributes.
t
Elements of simple type describe the content and data type of an element
t
For each element type associated with a sequence element, there must be an element in the XML instance in the same order
t
For each element type associated with a sequence element, there must be an element in the XML instance in the same order?
t
For each node it processes, it will look in the table for the best matching rule to apply
t
ID selectors are used to define style rules for unique elements.
t
If an application supports DOM it is irrelevant whether the program is written in VB or C.
t
If an element has attributes, it is considered to be of complex types
t
If the value of maxOccurs attribute is kept unbounded, it means that the element can appear unlimited number of times
t
In simple selectors you define same property declarations for multiple elements by specifying a comma separated list of element names
t
Inheritance of a style is a property in which a style rule for an element also applies to the element it contains.
t
Internal DTDs specify the DTD within square brackets in the declaration itself
t
Internet Explorer will skip white-space text node that are generated between nodes (e.g. new-line characters), while Mozilla will not.
t
It is possible to have a property with multiple values
t
Object Model is a collection of objects for accessing and manipulating the XML data?
t
Processing instructions are application specific.
t
Processing instructions are passed to the target,
t
SAX includes functions that are not supported by DOM.
t
SAX is developed by XML-DEV mailing list
t
SAX makes sequences of call to a handler function
t
StAX parser has no built-in document navigation support
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
Style sheets contain one or more rules about the appearance of data
t
The child axis (XPath) can select only element nodes.
t
The doc() function retrieves an XML document.
t
The hierarchical structure of the XML document is known as the XML Tree and it consists of root, nodes and leaves?
t
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 logical structure gives information about the elements and the order in which they are to be included in the document
t
The prefix used in an attribute is used as a reference to the namespace.
t
The root nodes can make multiple appearances in the document.
t
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
The xsl:choose element is used for the purpose of selection between the several possibilities
t
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
W3C DOM uses both tree and object model concepts?
t
Well-formedness of XML documents means that each starting tag has a matching end tag
t
XML DOM - defines a standard set of objects for XML documents only
t
XML allows data exchange as it has no formatting instructions
t
XML can be implemented as middle-tier for client server architectures
t
XML consists of rules to identify and define different parts of the document
t
XML declaration informs the processing agent about the version of XML being
t
XML developer has to ensure the uniqueness of the element names and attributes in a document
t
XML document must be valid?
t
XML forms the basis to create languages like WAP and WML.
t
XML is used for web services
t
XML offers a standard way to add markup to documents
t
XML parser is a software package, library or module that reads XML document
t
XML parser is calculated against its speed and performance
t
XML parser reads the document after it is created.
t
XML preserves white spaces
t
XML syntax is colored
t
XML tags are case sensitive
t
XML was designed to describe data.
t
XPath can be thought of as a query language like SQL.
t
XPath is used to navigate through elements and attributes in an XML document
t
XPath provides a common syntax for features shared by XSLT and XQuery
t
XSL describes how the XML document should be displayed,
t
XSL elements can be used to perform complex calculations
t
XSLT allows any kind of data to be transformed into a boolean value
t
XSLT and CSS are compatible standards.
t
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
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
You should use a SAX parser if a DOM parser is unable to load the XML document into memory.
t
new ActiveXObject("Microsoft.XMLDOM"); creates an XML document object.
t
ownerDocument attribute associates a child node with the parent node
t
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>
testB
A simple element is an XML element that can contain only
text
The @ character is referred to as a________.
text qualifier
Text style sheets use which of the following MIME types
text/css
Text style sheets use which of the following MIME types?
text/css
text style sheets use which of the following MIME types?
text/css
The JavaScript keyword this always refers to ________.
the element in which the statement resides.
When two values are specified for the margin then
the first value is set as the top and bottom margins.
When the TDC is bound to an element, the element's DATASRC attribute should be set to ________.
the name of the TDC object preceded by a #
Event bubbling is _______.
the process of child elements passing events to their parent elements.
The word top in the term top-down stepwise refinement refers to which of the following?
the single statement that completely represents the program
Match the xml data against its corresponding data type in XSD schema? <start>05:30:10.5</start>
time
Match the xml data againts its corresponding data type in Schema? <start>05:30:10.5</start>
time
The __________ structure of XML is much more powerful than _________ data formats.
tree-based, fixed-length
The DOM treats the XML document as
treestructure
DOM considers all items present in XML document as node?
true
DTD defines the document structure with a list of legal elements
true
Each XML document can be represented as a tree structure?
true
For each element type associated with a sequence element, there must be an element in the XML instance in the same order?
true
The ContentHandler class provides implementations for the core interface of SAX
true
The ContentHandler class provides implementations for the core interface of SAX:
true
The item() method of XMLDOMNodeList and XMLDOMNamedNodeMap return the node present at specified index
true
The xsl:attribute do generates the elements in the time of processing.
true
The xsl:element generates the elements in at time of processing
true
The xsl:element generates the elements in at time of processing.
true
W3C DOM uses both tree and object model concepts:
true
XML developer has to ensure the uniqueness of the element names and attributes in a document?
true
XML parser checks for validity and well formed ness?
true
XSLT takes two things as input: an XSLT stylesheet and an xml input document
true
Xpath can be thought of as a query language like SQL
true
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
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
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
Call-by- ________ is the method of passing a copy of the argument's value to a function
value
Call-by- ________ is the method of passing a copy of the argument's value to a function.
value
In JavaScript, numbers and boolean values are passed to functions by ________.
value
Which of the following elements is not valid inside a group element in an XBRL document?
value
Which of the following methods does the JavaScript Number object not possess?
valueOf
Which of the following is the proper method to dynamically allocate memory to an array of 100 elements?
var c = new Array( 100 );
You define an array using
var myarray = new Array();
Which of the following is an illegal array initialization statement?
var n = new Array( 5 ); n = [ 10, 20, 30, 40, 50 ];
What is the correct way to write a JavaScript array?
var txt = new Array("tim","shaq","kobe")
Which of the following is not a VBScript sub-type?
variant
What kind of clause is used to specify the filter criteria?
where clause
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
There are differences between Internet Explorer's DOM and Mozilla's DOM. The most important difference is that how they handle
whitespace text nodes
CDATA is text that _____ be parsed by a parser
will not
Which property would you use to redirect visitor to another page?
window.location.href
Which of these is the command to enable error handling on a Web page?
window.onError
What is the correct JavaScript syntax for opening a new window called "window5" ?
window.open("http://www.ex-designz.net","window5")
Which method will open a new window?
window.open(PageURL,WindowName,settings);
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
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" );
x is <= 13
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" );
x is <= 13x
Internal DTD and XML code are stored in a document with the file extension
xml
In the attribute-type the value which is pre-defined is indicated by:
xml;
The ________ element generates the markup for an element of the specified name in the output HTML.
xsl:element
A _____ instruction do contains the template, which is been applied to each node selected with the select attribute.
xsl:foreach
The ____ instruction do enables the conditional processing.
xsl:if
Which top level XSLT elements is used to define a variable in a stylesheet or template and to assign it a value
xsl:variable
Value of the local variable is bounded to which element
xsl:when
Which of the following strings are a correct XML name
xslNewElement
Which of the following strings are a correct XML name?
xslNewElement
Are XML and DTD comments in the same format
y
Can you nest DTD conditional sections
y
Can you nest attribute groups inside other attribute groups
y
Is it legal to have an element and a complex type with the same name?
y
You can specify a series of valid values for an element by using which of the following in a regular expression?
|