Upload
sanju1t
View
225
Download
0
Embed Size (px)
Citation preview
8/14/2019 xml and data structre sem b mt1.xlsx
1/88
ZZ XX XX XX XX
SBM001
Which of the following markup languages is used for
data description and definition? 1, HTML 2, WML 3, SGML
SBM002Which of the following models focuses on the roles ofpeople and organizations in getting work done?
1, Process and workflowmodels 2, Data flow models 3, Use cases
1,
2,
3,
JOHN
JOHN
JOHN
NORTON
NORTON
NORTON
SBM004
Cybershoppe sells toys and books in the United States.
Cybershoppe is currently using EDI to interchange data
across Accounts and Sales departments. The format
1, Bob should use HTML
instead of EDI
2, Bob should use XML
instead of EDI
3, Bob should use SGM
instead of EDI
SBM005
Which of the following data types in XML schemas is
derived from the atomic and list data types? 1 Union data types 2 Primitive data types 3 Derived data types
SBM003 Which of the following options is a valid XML document?
8/14/2019 xml and data structre sem b mt1.xlsx
2/88
SBM005 derived from the atomic and list data types? 1 Union data types 2 Primitive data types 3 Derived data types
SBM007
Which of the following values of the use attribute
ensures that an attribute is always set to some value? 1, optional 2, default 3, required
SBM008
Joe has created a global attribute named basicPay.
Which of the following attributes will he use to access
basicPay? 1, use 2, name 3, ref
SBM009
Which of the following statements is NOT true about
XML namespaces?
method of preventing
conflicts between
elements with the same
virtual space that is
assigned or recognized
by a URI.
3, A namespace URI i
same as a Web URI
SBM010
Which of the following keywords is used to declare a
namespace in an XSD document? 1, xmlns 2, xsd 3, xmlau
SBM011
Which of the following options is NOT true about include
element?
is used to include or
refer to an external
schema that is located
contains the
schemaLocation
attribute.
can have multiple
occurrences in an XSD
document.
SBM012
common name in an XML schema. Which of the
following elements can be incorporated into a complex
data type to achieve this? 1, sequence 2, group 3, attributeGroup
SBM013
Which of the following text properties can be applied
only to inline elements? 1, vertical-align 2, text-transform 3, text-align
SBM014
Which of the following statements is NOT true about
XSLT? 1, Uses less memory
2, Written using XML
and follows XML syntax 3, Complex to use
SBM015
Which of the following characters in Xpath expressions
searches for the specified element at any node level? 1, // 2, / 3, .
SBM016
Which of the following operators is used to check
whether a value of price is greater than or equal to 20? 1, PRICE[ . &>= 20] 2, PRICE[ . &>= 20] 3, PRICE[ . &>=; 20
SBM017Which of the following HTML tags is used as a parentfor the TR and TD elements? 1, THead 2, TBody 3, TH
Which of the following XML DOM Objects represents a
collection of Node objects and is used to iterate through
8/14/2019 xml and data structre sem b mt1.xlsx
3/88
What will be the output of the following string function:
substring('MM/DD/YY',2)
SBM021
XMLSchemaCache method that returns the namespace
associated with the schema at the specified index
number?
1, namespaceURI(index
number) 2, get(namespaceURI) 3, get()
SBM022
Joe wants to write a script that will be used to access
an XSLT stylesheet. Which of the following DOM objects
Joe needs to use to achieve this? 1, XSLTemplate object 2, XSLProcessor Object 3, DOMDocument
namespace=xmlDoc.doc
umentElement.namespa
ceURI;
namespace=xmlDoc.doc
umentElement.namespa
ceURI;
3, var
namespace=xmlDoc.n
mespaceURI;
xmlDoc.validateOnParse
=true;
xmlDoc.validateOnParse
=true;
xmlDoc.validateOnPa
=true;
new
ActiveXObject("Msxml2.
XMLSchemaCache.6.0")
var xsdschemacache =
new ActiveXObject();
new
ActiveXObject("Msxm
XMLSchemaCache.6.0
xsdschemacache.add(na
mespace,document.frm
Transform.
xsdschemacache.add(na
mespace,document.frm
Transform.
xsdschemacache.add(
mespace,document.fr
Transform.
TxtXSDFileName.value); TxtXSDFileName.value); TxtXSDFileName.valu
xmlDoc.schemas=xsdschemacache;
xmlDoc.schemas=xsdschemacache;
xmlDoc.schemas=xsdhemacache;
xmlDoc.load(document.f
rmTransform.TxtXMLFile
xmlDoc.load(document.f
rmTransform.TxtXMLFile
xmlDoc.load(documen
rmTransform.TxtXMLF
Bob is working as an EDP head in CyberShoppe. He has
to ensure that the data sent in the form of XMLdocuments is consistent. For this, he wants to write a
script that validates the data stored in an XML
document against a schema. Identify the correct code
that Bob should write that will associate the XML
SBM020 1, M/DD/YY 2, MM 3, DD/YY
8/14/2019 xml and data structre sem b mt1.xlsx
4/88
var docobj=new
ActiveXObject("Msxml2.DOMDocument.6.0");
var docobj = new
ActiveXObject("Msxml2.
DOMDocument.6.0");
var docobj = new
ActiveXObject("Msxml2.
DOMDocument.6.0");
var docobj = new
ActiveXObject("Msxm
DOMDocument.6.0");
docobj.async=false; docobj.async=false; docobj.async=false; docobj.async=false;
if (docobj.childNodes.length==0)
if
(docobj.childNodes.leng
th==0)
if
(docobj.childNodes.leng
th==0)
if
(docobj.childNodes.le
th==0)
{ { { {
myroot=docobj.createNode("Product");
myroot=docobj.createN
ode(2,"Product","");
myroot=docobj.createN
ode(1,"Product");
myroot=docobj.create
ode(2,"Product");
docobj.appendChild(myroot);
docobj.appendChild(myr
oot);
docobj.appendChild(myr
oot);
docobj.appendChild(m
oot);
docobj.save("d:\Prod.xml");
docobj.save("d:\Prod.x
ml");
docobj.save("d:\Prod.x
ml");
docobj.save("d:\Prod
ml");
} } } }
But on executing the code snippet, it resulted in anerror. Identify the error in the code.
1, var myxmldoc=new
ActiveXObject("Msxml2.
2, var myxmldoc=new
ActiveXObject("Msxml2.
3, var myxmldoc=new
ActiveXObject("Msxm
SBM024
8/14/2019 xml and data structre sem b mt1.xlsx
5/88
myxmldoc.async=false; myxmldoc.async=false; myxmldoc.async=fals
myxmldoc.load("C:\\em
p.xml");
myxmldoc.load("C:\\em
p.xml");
myxmldoc.load("C:\\e
p.xml");
(myxmldoc.readyState
== 4 &&
myxmldoc.parseError.e
(myxmldoc.readyState
== 1 &&
myxmldoc.parseError.e
(myxmldoc.readyStat
== 3 &&
myxmldoc.parseErro
John Rambo { { {
Texas
var
root=myxmldoc.docume
ntElement;
var
root=myxmldoc.docume
ntElement;
var
root=myxmldoc.docu
ntElement;
for (i=0; i