0% found this document useful (0 votes)
205 views17 pages

Web Tech Set 2

The document contains questions and answers related to XML, DTDs, and XML schemas. It tests knowledge of key concepts like XML syntax and structure, well-formed XML, using DTDs to define elements and attributes, and XML schema data types. The questions cover topics such as the XML declaration, attributes, elements, namespaces, validation, and more.

Uploaded by

Manoj Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
205 views17 pages

Web Tech Set 2

The document contains questions and answers related to XML, DTDs, and XML schemas. It tests knowledge of key concepts like XML syntax and structure, well-formed XML, using DTDs to define elements and attributes, and XML schema data types. The questions cover topics such as the XML declaration, attributes, elements, namespaces, validation, and more.

Uploaded by

Manoj Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

1. What is the correct syntax of the declaration which defines the XML version?

:
a. <xml version="1.0" />
b. <?xml version="1.0"?>
c. <?xml version="1.0" />
d. None of the above
Answer: b
2. When processing an output XML, "new line" symbols
a. are copied into output "as is", i.e. "CR+LF" for Windows, CR for Macintosh, LF for Unix.
b. are converted to single LF symbol
c. are converted to single CR symbol
d. are discarded
Answer:b
3. Which of the following strings is a correct XML name?
a. xmlExtension
b. xslNewElement
c. XMLElement#123
d. All
Answer:b
4. Which of the following XML fragments are well-formed?
a. <?xml?>
b. <?xml version="1.0"?>
c. <?xml encoding="JIS"?>
d. <?xml encoding="JIS" version="1.0"?>
Answer:b
5. What are the predefined attributes
a. xml:lang
b. xml:space
c. both
d. none.
Answer:c
6. There is a way of describing XML data, how?
a. XML uses a DTD to describe the data
b. XML uses XSL to describe data
c. XML uses a description node to describe data
d. Both 1 and 3
Answer:d

7. What does DTD stand for?


a. Direct Type Definition
b. Document Type Definition
c. Do The Dance
d. Dynamic Type Definition
Answer:b
8. DTD includes the specifications about the markup that can be used within the document, the
specifications consists of all EXCEPT
a. the browser name
b. the size of element name
c. entity declarations
d. element declarations
Answer:a
9. Which of the following XML documents are well-formed?
a. <firstElement>some text goes here
<secondElement>another text goes here</secondElement>
</firstElement>
b. <firstElement>some text goes here</firstElement>
<secondElement> another text goes here</secondElement>
c. <firstElement>some text goes here
<secondElement> another text goes here</firstElement>
</secondElement>
d. </firstElement>some text goes here
</secondElement>another text goes here<SECONDELEMENT>
<firstElement>
Answer:a
10. Which of the following XML fragments are well-formed?
a. <myElement myAttribute="someValue"/>
b. <myElement myAttribute=someValue/>
c. <myElement myAttribute=someValue>
d. <myElement myAttribute="someValue/>
Answer:c
11. How can we make attributes having multiple values:
a. <myElement myAttribute="value1 value2"/>
b. <myElement myAttribute="value1" myAttribute="value2"/>
c. <myElement myAttribute="value1, value2"/>
d. attributes cannot have multiple values
Answer:d
12. The use of a DTD in XML development is:

a. required when validating XML documents


b. no longer necessary after the XML editor has been customized
c. used to direct conversion using an XSLT processor
d. a good guide to populating a templates to be filled in when generating an XML document automatically
Answer: a
13. Match The Following
1. Inventor of the Web and HTML
2. Marries HTML and XML
3. First line in an XML document
4. Came up with the name XML
5. GML and SGML author
a.
b.
c.
d.

1.C
1.C
1.C
1.D

2.D
2.D
2.D
2.C

3.E
3.E
3.A
3.E

4.A
4.B
4.E
4.A

A. James Clark
B. Goldfarb
C. Berners-Lee
D. XHTML
E. XML declaration
5.B
5.A
5.B
5.B

Answer: a
14. Match The Following
1. Generated if XML is not well formed
2. Value for display property
3. Element that contains no content
4. 72 in an inch
5. Indicates element to apply style to
6. Document Type Definition
a. 1.D
2.E
3.F
4.B
5.A
b. 1.F
2.D
3.E
4.B
5.A
c. 1.F
2.D
3.A
4.E
5.C
d. 1.D
2.F
3.E
4.C
5.B
e.

A. selector
B. points
C. DTD
D. fatal error
E. inline
F. empty element
6.C
6.C
6.B
6.A

Answer: a
15. Match The Following
1. CSS visibility property
2. generic font name
3. zero or more instance repetition operator
4. functional notation
5. Hexadecimal
6. Vertical bar (|)
a. 1.C 2.D
3.F
4.B
5.A
6.E
b. 1.C 2.D
3.B
4.F
5.A
6.E
c. 1.C 2.D
3.F
4.B
5.E
6.A
d. 1.D 2.C
3.F
4.B
5.A
6.E
Answer: a

A. base16
B. rgb(0,0,0)
C. hidden
D. sans-serif
E. or
F. asterisk (*)

16. Which of the following are two popular protocols that allow home computer users to connect
computers to the internet as per hosts?
i) SLIP ii) PPP
iii) HTTP iv) SMTP
A) iii and iv
B) ii and iii
C) i and ii
D) ii and iii
Answer: C
17. Identify the uses of URL in HTML.
i) Link to another document or resource
ii) Link to external style sheet or script
iii) Create an image map
A) i and ii
B) i and iii
C) ii and iii
D) i , ii and iii
Answer: D

18. <!DOCTYPE root-element ____________ >


A) element-declarations
B) None of these
C) document-declarations
D) root-element-declarations
Answer: A
19. In order to associate External DTD declaration we need to write following syntax
A. <!DOCTYPE "filename">
B. None of these

their

C. <!DOCTYPE SYSTEM "filename">


D. <!DOCTYPE root-element SYSTEM "filename">
Answer: D
20. Attribute standalone="no" should be included in XML declaration if a document:
A. is linked to an external XSL stylesheet
B. has external general references
C. has processing instructions
D. has an external DTD
Answer: D
21. Disadvantages of DTD are
(i)DTDs are not extensible
(ii)DTDs are not in to support for namespaces
(iii)there is no provision for inheritance from one DTDs to another
A. (i) is correct
B. (i),(ii) are correct
C. (ii),(iii) are correct
D. (i),(ii),(iii) are correct
Answer: D
22. The syntax for parameter entity is
A. <! ENTITY % NAME DEFINITION>
B. < ENTITY % NAME DEFINITION>
C. <! ENTITY $ NAME DEFINITION>
D. < ENTITY % NAME DEFINITION>
Answer: A
23. Microsoft XML Schema Data types for Hexadecimal digits representating octates
A. UID
B. UXID
C. UUID
D. XXID
Answer: C
24. Microsoft XML Schema Data Type boolean has values
A. True ,False
B. True ,False or 1,0
C. 1,0
D. any number other then zero and zero
Answer: C
25. In simple type built into XML schema type flat has single precision of ________ floating point
A. 16 bit
B. 32 bit

C. 8 bit
D. 4 bit
Answer: C
26. To create a choise in XML schemas, we use the
A. <xsd:select> element
B. <xsd:multi> element
C. <xsd:choise> element
D. <xsd:single> element
Answer: C
27. To match the specific XML elements child like of parent element is the syntax will be
A. <xsl:template match=PLANET_NAME>
B.<xsl:template match=PLANET/NAME>
C. <xsl:template match=/NAME>
D. <xsl:template match=//>
Answer: B
28. To use XSLT in an XML system:
A. the input and output of the XSLT processor must be unparsed XML documents
B. the input and output of the XSLT processor must be a hierarchical tree representing an XML
document
C. the XSLT processor must be called from a web agent
D. the XSLT processor must be given the DTD as well as the XML document instance
Answer : B
29. What is the role of the XPath language in XSL processing?
A. XPath identifies the order or path of processing to be followed as the XSL language is processed
B. XPath identifies locations in XML data to be transformed in the source tree and the locations to be
generated in output tree specified in XSL translation prescriptions
C. XPath identifies the path to be followed in the execution of XSL translation prescriptions
D. XPath specifies which XSL transform files are to be used in the translation of XML
Answer: B
30. Which statement correctly describes the capabilities of the XSLT language?
A. XSLT uses the DTD to determine how XML documents will be translated
B. XSLT specifies how a hierarchical trees, representable by an XML document may be translated
into non-hierarchical formats
C. XSLT specifies how a hierarchical tree, representable by an XML document, may be translated
into another hierarchical tree, also representable by an XML document
D. XSLT specifies the formatting style to be used to render an XML document
Answer: C
31. The XSLT processor copies the elements of the stylesheet until it finds a command in the format:

A.

SELECT ... FROM ... WHERE.

B.

{item, action}.

C.

{for-each select}.

D.

<HTML>...<\HTML>.
Answer: Option B

32.
With XML:
A.

views are not limited to one multi-valued path only.

B.

documents can automatically be generated from database data only.

C.

database data can automatically be extracted from XML documents only.

D.

With XML, all of the above are true.


Answer: Option D

33.
What is not true about SOAP?
A.

SOAP originally meant Simple Object Access Protocol.

B.

SOAP was defined as an XML-based standard for providing remote procedure calls over
the Internet.

C.

SOAP now is just a name, not an acronym

D.

SOAP was an early form of XML.

Answer: Option D

34. What is not true about XSLT?


A.

XSLT is a declarative transformation language.

B.

XSLT uses a set of rules that govern how a document is to be materialized is created.

C.

XSLT uses a set of procedures that specify how a document is to be programmed.

D.

XSLT is used to transform the input document into another document.

Answer: Option C

35.

XML DSOs has the property for the number of pages of data the recordset contains
A. Count

B. Number

C. Pagecount

D. Pagenumber

Answer: Option C

36. Which of the following attributes of text box control allow to limit the maximum character?
A.

size

B.

len

C.

maxlength

D.

all of these

Answer: Option C
37. Which of the following is a container?
A.

<SELECT>

B.

<Value>

C.

<INPUT>

D.

<BODY>

Answer: Option A
38. <DT> tag is designed to fit a single line of our web page but <DD> tag will accept a
A.

line of text

B.

full paragraph

C.

word

D.

request

Answer: Option B

39. Character encoding is


A.

C.

method used to represent numbers in a


character

a system that consists of a code which


pairs each character with a
pattern,sequence of natural numbers or
electrical pulse in order to transmit the
data

B.

method used to represent character in a


number

D.

none of these

Answer: Option C

40. Can the element <First> be replaced with <first>


A.

No, they represent different elements


altogether

B.

Both are same

C.

First is correct only

D.

first is only correct

Answer: Option A

41. Any part of the graphic that is not included in another hot zone is considered to be part of
A.

rect

B.

point

C.

default

D.

polygon

Answer: Option C

42. In CSS filters, ........................... will be used to create a shadow of object at the specified horizontal
and vertical offset and color.
A) Drop shadow effect
B) Chroma filter

C) Shadow object effect


D) Shadow filter
Ans: A
43. ............................. will be used to create attenuated shadow in the direction and color specified.

A) Drop shadow effect


B) Chroma filter
C) Shadow object effect
D) Shadow filter
Ans: D
44. State whether the statements are true or false.
i) Glow effect will be used to create a glow around the object.
ii) The two parameters used in glow effect are color and intensity.
iii) Invert effect will be used to create a negative image
A) i-true, ii-true, iii-true
B) i- true, ii-false, iii-true
C) i-false, ii-true, iii-true
D) i-false, ii-false, iii-true
Ans: B
45. Which of the following are the parameters used in wave effect of CSS filter property?
i) add

ii) freq

A) i, ii, iii and iv only

iii) light

iv) phase

v) intensity

B) i, ii, iii and v only


C) i, ii, iv and v only
D) All i, ii, iii, iv and v
Ans: A

46. Match the different CSS media types with their descriptions.
i) all

a) Intended for speech synthesizers.

ii) aural

b) Intended primary for color computer screen.

iii) screen

c) Intended for paged braille printers.

iv) embossed

d) Suitable for all devices

A) i-a, ii-b, iii-c, iv-d


B) i-c, ii-d, iii-a, iv-b
C) i-d, ii-a, iii-b, iv-c
D) i-b, ii-c, iii-d, iv-a
Ans: C
47. The ................... property allows you to specify the content for a <caption> element should be
placed in relationship to the table.
A) Caption
B) Caption-side
C) Caption-position
D) Caption-align
Ans: B
48. The ........................... property indicates whether a cell without any content should have a border
displayed.
A) empty-row

B) empty-column
C) empty-cell
D) empty
Ans: C
49. The ........................ property for HTML tables in CSS specifies whether the browser should control
the appearance of adjacent borders that touch each other.
A) border-spacing
B) border-collapse
C) caption-side
D) table-layout
Ans: B
50. The ................. property indicates whether the marker should appear inside or outside of the box
containing the bullet points.
A) list-style-align
B) list-style-type
C) list-style-position
D) list-style-appearance
Ans: C
51 . The overflow property of CSS can take one of the following values.
i) visible

ii) invisible

A) i, ii, iii and iv only


B) i, iii, iv and v only
C) i, ii, iv and v only
D) All i, ii, iii, iv and v

iii) hidden

iv) scroll

v) auto

Ans: B
51. Identify the uses of URI in HTML.
i) Link to another document or resource
ii) Link to external style sheet or script
iii) Create an image map
A) i and ii
B) i and iii
C) ii and iii
D) i , ii and iii
ANS: D
52. XML stands for ......................
A) Extensible Markup Language
B) Eccessive Markup Language
C) Executive Markup Language
D) Extensible Managing Language
ANS: A
53. The XML format has a simpler set of ........................ than HTML.
A) loader rule
B) parsing rules
C) generator rule
D) logical rule
ANS: B
54. All information in XML is .....................
A) Unicode text
B) multi code
C) multi text
D) simple text
ANS: A
55. An entity in XML is a ................................
A) class
B) logical information
C) simple information

D) flexible information storage unit


ANS: D
56. A tool for reading XML documents is popularly called a .....................
A) XML delimiters
B) XML processor
C) XML parser
D) Both b and c
ANS: D
57. XSL stands for
A) Extensible Style sheet Language
B) Extensible Style Language
C) Exclusive Stylesheet Language
D) Exclusive Style Language
ANS: A
58. XML tabs are .............................
A) case sensitive
B) case insnesitive
C) easy
D) deficult
ANS: A
59. In XML the attribute value must always be quoted with .................
A) double quotes
B) single quotes
C) both a and b
D) name of attributes
ANS: A
60. Elements from the HTML namespace are displayed as they would in .......................
A) DHTML
B) XML
C) HTML
D) DXML
ANS: C
61. An .................... block can be to embed a CSS style sheet within an XML document.
A) <bk:Book>
B) <Element Type>
C) <HTML:STYLE>
D) <XML:STYLE>
ANS: C
62. Which of the following allows multiple request/response interactions to take place before the connection
is closed?
(a) Persistent Connections
(c) Cache validation commands
Ans: a

(b) Pipelining
(d) Hyperlinks

63. Which of the following is needed for sending asynchronous alerts and notifications to operators?
(a) SNMPv3
(b) Email and MOM services
(c) DCOM
(d) RPC
Ans: b
64. Which among the following contains real-time information describing the function provided by a server
and their parameters?
(a) Interface Repository
(b) CORBA Facilities
(c) Replication Agent
(d) Implementation Repository
Ans: a
65. Which of the following supports the capability of returning pointers to other interfaces through COM
object?
(a) Hardware interface
(b) Software interface
(c) Transient interface
(d) Query interface.
Ans: d
66. JavaBeans Event Model is also known as
(a) The Event Beans Model
(b) The Event Service Model
(c) The Event Delegation Model
(d) The Event Foundation Model
Ans: c
67. Families of software ICs that play together are called .
(a) Roles
(b) Suites
(c) Objects
(d) Components
Ans: b
68. Which among the following tools can set software parameters and fine-tune complex systems such as
relational databases or operating systems?
(a) Performance monitoring and trending tools
(b) Inventory management tools
(c) Application performance monitoring tools
(d) Configuration management tools.
Ans: Ans: d
69. What request is issued by a managing station to read the value of a managed object?
(a) GET-NEXT
(b) SET
Ans: c
70. The default port address for HTTP is

(c) GET

(d) TRAP

(a) 60
(b) 70
(c) 80
(d) 90
Ans: c
71. Which of the following are variables that represent the data elements in a managed object?
(a) Notifications
Ans: b

(b) Attributes

(c) Operations

72. In 3-tier client/server applications, the business logic lies at------(a) The client
(b) The Database Server
(c) Divided between client and server alternatively
(d) Middle Tier
Ans: d

(d) Subscripts

73. Which among the following are used to create very concurrent, event-driven server programs
(a) Threads
(c) Binary Large Objects
Ans: a

(b) Semaphores
(d) Inter-process Communications

74. is a Non - GUI client


(a) Windows 3.x
(c) Automatic Teller Machine
Ans: c

(b) Windows NT 3.5


(d) MAC OS. X

75. In 3-tier computing, the request/response protocol between the clients and web servers is
(a) NNTP
Ans: c

(b) SMTP

(c) HTTP

(d) POP3

76. The IPX network number is-------- bits long


(a) 4
Ans: c

(b) 8

(c) 32

(d) 16

79. NetBEUI is an enhanced version of ----------- protocol


(a) IPX
Ans: c

(b) SPX

(c) NetBIOS

(d) TCP/IP

80. Which of the following does not refer to middleware?


(a) COM
Ans: b

(b) Java

(c) DCOM

(d) CORBA

81. Which of the following DO NOT allow multiple applications to participate in a transaction?
(a) Firewalls
Ans: c
82.

(b) Routers

(c) Gateways

(d) Switches

(e) Net Beans.

FAT server is a server which


(a) Is connected to number of clients
(b) Has File Allocation Table.
(c) Places more functions on the server.
(d) Has high processing power.
(e) Has low processing power.
Ans: c

83. In nested transactions, if the parent transaction issues the rollback then what about ists descendent?
(a) All are committed if they issue commit
(b) Some are committed and some are roll backed
(c) All are roll backed regardless of whether they issue any one
(d) All are roll backed if they issue rollback

ANS: C
84. TP monitor done its responsibilities with the help of which protocol?
(a) TCP/IP
(d) SNA
ANS: B

(b) Two-Phase Commit Protocol

(c) IP

You might also like