Sunteți pe pagina 1din 15

QN=1 (2926) a. b. CHAP: QN=2 (2933) a. b. CHAP: QN=3 (2712) a. b. c. d. CHAP: QN=4 (2722) a. b. c. d. CHAP: QN=5 (2713) a. b. c. d.

CHAP: QN=6 (2934) a. b.

Parameter entities use ampersand (&) and semicolon (;) as delimiters? true false XML, NameSpace An attribute without a prefix is in default namespace? true false XML, NameSpace Which of the following is not an extension of XML? SMIL. MathML. SGML. VoiceXML. XML, NameSpace Which of the following are valid tags? <:FPT> <FPT_UNIV> <FPT UNIV> <_FPTUniv> XML, NameSpace Which of the following XML attribute names is invalid? _notvalid I am not valid not-valid.1 _not1valid2 XML, NameSpace A descendant having a new namespace cannot override the namespace defined by the parrent element? true false

CHAP: QN=7 (2723) a. b. c. d. CHAP: QN=8 (2724) a. b. c. d. CHAP: QN=9 (2928) a. b. CHAP: QN=10 (2734) a. b. c. d. CHAP: QN=11 (2936) a. b. CHAP: QN=12

XML, NameSpace Which of the following defines what is meant by a valid document? A document which meets the XML 1.0 specification A document which is well-formed A document which conforms to the rules of a DTD A document which starts with the declaration <?xml version="1.0"?> XML, NameSpace Which of the following is/are optional in the creation of an XML file? The <?xml version="1.0"?> statement The root element The opening tag in an element Entities XML, NameSpace XML parser checks for validity and well formed ness? true false XML, NameSpace Namespaces are defined using DTDs xmlns:[prefix] attribute namespace attribute Scoping XML, NameSpace Ability to create one's own tags is XML's greatest disadvantage? true false DTD External DTDs use the keyword URL to specify the location of the DTD?

(2938) a. b. CHAP: QN=13 (2730) a. b. c. d. CHAP: QN=14 (2731) a. b. c. d. CHAP: QN=15 (2716) a. b. c. d. CHAP: QN=16 (2761) a. b. c. d. CHAP: QN=17

true false DTD An XML document, which conforms to its DTD, is called a: Well formed Document Valid Document Complete Document XSL Document DTD What does the keyword SYSTEM indicate in the following code? <?xml version =1.0?> <!DOCTYPE Book SYSTEM book.dtd> It is a system generated DTD Book.dtd is an internal DTD Book.dtd is an external DTD Book is a system variable DTD Which of the following things is unspecified in the following line of code? <!DOCTYPE letter SYSTEM "letter.dtd"> The name of the root element to which the DTD should be applied. The type of browser you are using. The DTDs file name. The fact that the DTD is declared in a separate file. DTD The xsl:template is used to define a set of nodes to be processed write or display in the result tree a text string representing the value of the element specified by the select attribute add literal text to the output define a template that can be applied to a node to produce desired output CSS, XSL See the snipset below and choose one answer:

(2771) a. b. c. CHAP: QN=18 (2769) a. b. c. d. CHAP: QN=19 (2950) a. b. CHAP: QN=20 (2719) a. b. c. d. CHAP: QN=21 (2954) a. b. c. d. CHAP: QN=22 (2752) a. <xsl:value-of select=floor(-2.3)/> -2 -2.5 -3 CSS, XSL XSLT allows any kind of data to be tranformed into Node Set Boolean Number String CSS, XSL Document Object Model is platform-dependent? true false DOM Which DOMDocument method is used to create a new attribute? createAttribute load loadAttribute transformNode DOM Builds the document as a in-memory data structures? DOM SAX StAX Event-driven DOM Represents a collection of attribute nodes DOMDocument object

b. c. d. CHAP: QN=23 (2758) a. b. CHAP: QN=24 (2923) a. b. c. CHAP: QN=25 (2959) a. b. CHAP: QN=26 (2782)

XMLDOMNodeList object XMLDOMNode object XMLDOMNamedNodeMap DOM The ContentHandler class provides implementations for the core interface of SAX false true SAX - StAX The StAX cursor API represents a cursor with which you can walk an XML document from beginning to end. an XML document stream as a set of discrete event objects. an object - based tree in computer memory SAX - StAX SAX makes sequence of call to a handler function? true false SAX - StAX 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> thirdNumber in line 8 must be in quotes. The words Enter an integer in line 7 should not be in quotes. The word var must be placed before secondNumber in line 3. The word var must be placed before thirdNumber in line 4. JavaScript/JScript

a. b. c. d. CHAP:

QN=27 (2788) a. b. c. d. CHAP: QN=28 (2875) a. b. c. d. CHAP: QN=29 (2827)

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 ________. program control a program structure a control structure an algorithm JavaScript/JScript Each object has ________ or data and ________ or behavior. properties, attributes attributes, properties attributes, methods methods, attributes JavaScript/JScript What would the browser display if it executed the following script? <SCRIPT LANGUAGE = "JavaScript"> var total = 0; nextLoop: for ( var i = 0; i < 5; ++i ) { for ( var j = 0; j < 2 ; ++j ) { if ( i < 2 ) continue nextLoop; total++; } total++; } total++; document.writeln( total ); </SCRIPT> 7 8 9 10 JavaScript/JScript The word top in the term top-down stepwise refinement refers to which of the following? the first statement that appears in the program the first statement that appears in the algorithm the single statement that completely represents the program

a. b. c. d. CHAP: QN=30 (2807) a. b. c.

d. CHAP: QN=31 (2838) a. b. c. d. CHAP: QN=32 (2809) a. b. c. d. CHAP: QN=33 (2797) a. b. c. d. CHAP: QN=34 (2879) a. b. c. d. CHAP: QN=35 (2861)

the entire algorithm JavaScript/JScript Function definitions often contain ________ which are considered to be local variables and correspond with the arguments in the function call. parameters static variables register variabless constant variables JavaScript/JScript What is the value of i after the following statements? i = 2; i++; 0 2 3 4 JavaScript/JScript Which of the following is not a JavaScript keyword? break delete sub function JavaScript/JScript 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 Good.luck.on.the.test Good,luck,on,the,test Nothing, the string conversion will generate an error. JavaScript/JScript What would the browser display if this script was executed? <SCRIPT LANGUAGE = "JavaScript"> var c = new Array(8);

a. b. c. d. CHAP: QN=36 (2837) a. b. c. d. CHAP: QN=37 (2866) a. b. c. d. CHAP: QN=38 (2865) a. b. c. d. CHAP: QN=39 (2886) a. b. c. d. CHAP:

for( var i = 0; i < 8; i++ ) c[i] = i; document.write(c[8]); </SCRIPT> undefined 0 7 8 JavaScript/JScript Functions are invoked by writing the name of the function, followed by the function's ________ in closed parenthesis. name static variables arguments constant variables JavaScript/JScript Call-by- ________ is the method of passing a copy of the argument's value to a function. value parameters memory reference JavaScript/JScript In JavaScript, all objects and Arrays are passed to functions by ________. value parameters memory reference JavaScript/JScript Which of the following methods does the JavaScript Boolean object not possess? toString valueOf toInt The JavaScript Boolean object does not possess publicly accessible methods. JavaScript/JScript

QN=40 (2811) a. b. c. d. CHAP: QN=41 (2826)

Which of the following is not required for counter-controlled repetition? final value initial value sentinel increment JavaScript/JScript 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 8 9 10 JavaScript/JScript 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> test.filters.style = fliph; test.filters( fliph ); test.filters( "fliph" ); The filter cannot be applied to this element. JavaScript/JScript ________ is an artificial and informal language that helps programmers develop algorithms.

a. b. c. d. CHAP: QN=42 (2910) a. b. c. d. CHAP: QN=43

(2789) a. b. c. d. CHAP: QN=44 (2863) a. b. c. d. CHAP: QN=45 (2870)

JavaScript ECMAScript Pseudocode AlgorithmCode JavaScript/JScript Which of the following is an illegal array initialization statement? var n = [ 10, 20, 30, 40, 50 ]; var n = new Array( 10, 20, 30, 40, 50 ); var n = new Array( 5 ); n = [ 10, 20, 30, 40, 50 ]; var n = new Array( 5 ); for ( var i = 1; i <= 5; i++ ) n[ i ] = i * 10 ; JavaScript/JScript 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. 123456789 1 2 11 4 5 6 7 8 9 1 2 3 11 5 6 7 8 9 JavaScript/JScript 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?

a. b. c. d. CHAP: QN=46 (2779)

a. b. c. d.

CHAP: QN=47 (2810) a. b. c. d. CHAP: QN=48 (2832) a. b. c. d. CHAP: QN=49 (2902) a. b. c. d. CHAP: QN=50 (2794) a.

document.writeln("Hello World"); nothing Hello World <HTML> <SCRIPT LANGUAGE = "JavaScript"> <!-document.writeln("Hello World"); // --> </SCRIPT> </HTML> JavaScript/JScript What is the value of i after the following statements? i = 2; i- -; i- -; 0 1 -2 -4 JavaScript/JScript The best way to develop and maintain a large program is to construct it from small, simple pieces called ________. scripts modules scriptlets objects JavaScript/JScript What is the significance of the second function argument in the following line? window.setInterval( "run()", 100 ); The value sets how many times to call the function specified in the first argument. The value sets how long the function is run for. The value sets how often to run the function. The value sets the time to wait before calling the function once. JavaScript/JScript Which of the following flowchart symbols indicates that a decision is to be made? diamond

b. c. d. CHAP:

oval/circle rectangle flowline JavaScript/JScript

For Examination Department Only Answer of Paper Code=XML_S104_634876 *************************************************************** [id=2926, Mark=1]1. B [id=2933, Mark=1]2. A [id=2712, Mark=1]3. C [id=2722, Mark=1]4. ABD [id=2713, Mark=1]5. B [id=2934, Mark=1]6. B [id=2723, Mark=1]7. C [id=2724, Mark=1]8. D [id=2928, Mark=1]9. A [id=2734, Mark=1]10. B [id=2936, Mark=1]11. B [id=2938, Mark=1]12. B [id=2730, Mark=1]13. B [id=2731, Mark=1]14. C [id=2716, Mark=1]15. B [id=2761, Mark=1]16. D [id=2771, Mark=1]17. C [id=2769, Mark=1]18. B [id=2950, Mark=1]19. B [id=2719, Mark=1]20. A [id=2954, Mark=1]21. A [id=2752, Mark=1]22. D [id=2758, Mark=1]23. B [id=2923, Mark=1]24. A [id=2959, Mark=1]25. A [id=2782, Mark=1]26. D [id=2788, Mark=1]27. D [id=2875, Mark=1]28. C [id=2827, Mark=1]29. D [id=2807, Mark=1]30. C [id=2838, Mark=1]31. A [id=2809, Mark=1]32. C [id=2797, Mark=1]33. C [id=2879, Mark=1]34. A [id=2861, Mark=1]35. A [id=2837, Mark=1]36. C [id=2866, Mark=1]37. A [id=2865, Mark=1]38. D [id=2886, Mark=1]39. C [id=2811, Mark=1]40. C [id=2826, Mark=1]41. A [id=2910, Mark=1]42. D

[id=2789, Mark=1]43. C [id=2863, Mark=1]44. C [id=2870, Mark=1]45. B [id=2779, Mark=1]46. C [id=2810, Mark=1]47. A [id=2832, Mark=1]48. B [id=2902, Mark=1]49. C [id=2794, Mark=1]50. A ***************************************************************

S-ar putea să vă placă și