Sie sind auf Seite 1von 15

QN=1 (2934) a. b. CHAP: QN=2 (2711) a. b. c. d. CHAP: QN=3 (2925) a. b. CHAP: QN=4 (2926) a. b. CHAP: QN=5 (2721) a. b. c. d.

A descendant having a new namespace cannot override the namespace defined by the parrent element? true false XML, NameSpace ________ is a markup language for describing how content is rendered and ________ is a markup language for describing structured datacontent is separated from presentation. XML, HTML. HTML, SGML. XML, XSL. HTML, XML. XML, NameSpace Characters like ">" and "&" can be used in PCDATA sections? true false XML, NameSpace Parameter entities use ampersand (&) and semicolon (;) as delimiters? true false XML, NameSpace Which of the following XML code snippets is/are correct? <BOOK> <AUTHOR> abc.. <AUTHOR> </BOOK> <BOOK> <AUTHOR> abc </BOOK> <BOOK> <AUTHOR> abc.. </AUTHOR> </Book> <BOOK> <AUTHOR> abc</AUTHOR> </BOOK>

CHAP: QN=6 (2729) a. b. c. CHAP: QN=7 (2731) a. b. c. d. CHAP: QN=8 (2717) a. b. c. d. CHAP: QN=9 (2935) a. b. CHAP: QN=10 (2728) a. b. c. d.

XML, NameSpace Which statements are true? The DTD specifies the grammatical structure of an XML document. The DTD contains the list of tags allowed within the XML document, and their types and attributes. The DTD does not define the way elements relate to one another within the documents tree structure. 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 The question mark (?) operator indicates either zero or one occurrence. any number of occurrences. one or more occurrences. more than one occurrence. DTD Each XML document can be represented as a tree structure? true false DTD Which of the following statements is not true? The <!DOCTYPE [] > declaration follows the XML declaration Entities that appear anywhere in an XML document are referred to as Parameter entities Attributes are added to an element to provide information about the element Entities must be declared within the document DOCTYPE declaration

CHAP: QN=11 (2947) a. b. c. d. CHAP: QN=12 (2942) a. b. c. d. CHAP: QN=13 (2943) a. b. c. d. CHAP: QN=14 (2920) a. b. c. CHAP: QN=15 (2744) a. b. c. d. CHAP:

DTD Restricts string types using regular expressions? enumeration pattern use fractionDigits SCHEMA Allow to validate documents that use markup from multiple namespaces? Namespace support Attribute grouping Archetypes Open Model SCHEMA Match the xml data againts its corresponding data type in Schema? <start>05:30:10.5</start> time boolean decimal string SCHEMA In schema, the ALL element requires that each element in the group must occur at most once there must be an element in the XML instance in the same order the maxOccurs attribute can be 0 or 1 SCHEMA Which one of the following is the root element of all XML Schema documents? AttributeType ElementType description Schema SCHEMA

QN=16 (2741) a. b. c. d. CHAP: QN=17 (2739)

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? DOMDocument XMLDOMNode XMLDOMText XMLDOMMain DOM 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 = ________________________ CreateXMLDocument() new ActiveXObject("microsoft.XMLDOM") NewXMLDocument New XMLDOMObject DOM DOM considers all items present in XML document as node? true false DOM The item() method of XMLDOMNodeList and XMLDOMNamedNodeMap return the node present at specified index false true DOM Which DOMDocument method is used to create a new attribute? createAttribute load loadAttribute transformNode DOM

a. b. c. d. CHAP: QN=18 (2958) a. b. CHAP: QN=19 (2757) a. b. CHAP: QN=20 (2719) a. b. c. d. CHAP:

QN=21 (2784) a. b. c. d. CHAP: QN=22 (2869) a. b. c. d. CHAP: QN=23 (2843) a. b. c. d. CHAP: QN=24 (2822) a. b. c. d. CHAP: QN=25 (2858) a. b.

What is the result of the statement 17 % 5? 0 2 3 12 JavaScript/JScript 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 concatenate the values of theArray2 to theArray1. The join method will concatenate the values of theArray1 to theArray2. The join method will create a string from the values in theArray1. The join method will create a string with the values of theArray2 concatenated to the values of theArray1. JavaScript/JScript Where on the browser will the command window.status( "text" ) display output? in the body in an alert dialog box in a status dialog box on the status bar JavaScript/JScript In a switch structure, the ________ case clause is used to process exceptional conditions and is usually listed last. break default else then JavaScript/JScript Which of the following is the proper method to dynamically allocate memory to an array of 100 elements? var c = new c[ 100 ]; var c = new c( 100 );

c. d. CHAP: QN=26 (2866) a. b. c. d. CHAP: QN=27 (2873)

var c = new Array[ 100 ]; var c = new Array( 100 ); 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 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 3 4 5 6 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? document.writeln("Hello World"); nothing Hello World <HTML> <SCRIPT LANGUAGE = "JavaScript"> <!--

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

a. b. c. d.

CHAP: QN=29 (2785) a. b. c. d. CHAP: QN=30 (2781) a. b. c. d. CHAP: QN=31 (2850) a. b. c. d. CHAP: QN=32 (2862)

document.writeln("Hello World"); // --> </SCRIPT> </HTML> JavaScript/JScript Which of the following selections does not follow the rules of operator precedence. Assume that the operators on the left are evaluated first. multiplication, division, addition parentheses, subtraction, modulus division, multiplication, addition parentheses, modulus, subtraction JavaScript/JScript The \n,\t, \r escape sequences do not affect HTML rendering unless they are used between which tags? <SELECT></SELECT> <SCRIPT></SCRIPT> <PRE></PRE> <A></A> JavaScript/JScript Identifiers which have static duration ________. are globally accessible to the script exist while the function in which they are declared is still active exist while the function in which they are declared is no longer active are not automatically destroyed when the function in which they are declared is exited. JavaScript/JScript 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> undefined 0 8 9

a. b. c. d.

CHAP: QN=33 (2885) a. b. c. d. CHAP: QN=34 (2813)

JavaScript/JScript What will value contain after the following code is executed? var value = new Date(); value = value.valueOf(); the current date in the format hh:mm:ss calculated from the number of milliseconds between midnight January 1, 1970 and the current date a large integer representing the number of milliseconds between midnight January 1, 1970 and the current date the current date in the format hh:mm calculated from the number of milliseconds between midnight January 1, 1970 and the current date a large floating point number representing the number of milliseconds between midnight January 1, 1970 and the current date JavaScript/JScript 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 XXXX XXXXX XXXXXX JavaScript/JScript With the ________, scripts can respond to a user moving the mouse, scrolling up or down the screen or entering keystrokes. event model. object model. Document Object Model for XSL. I/O capture model. JavaScript/JScript What is the evaluation of the following expression? ((3+ ( 5 + 4 ) * 7 ) + 4 ) / 5 8 14 17.6 26.4 JavaScript/JScript

a. b. c. d. CHAP: QN=35 (2903) a. b. c. d. CHAP: QN=36 (2786) a. b. c. d. CHAP:

QN=37 (2911) a. b. c. d. CHAP: QN=38 (2908) a. b. c. d. CHAP: QN=39 (2838) a. b. c. d. CHAP: QN=40 (2800)

The chroma filter is used to ________. apply color to an image region apply color to a background apply transparency effects using hard-code antialiasing apply transparency effects dynamically JavaScript/JScript Which of the following statements regarding filters and transitions is false? They are built into Internet Explorer. They are applied on a client computer at run time by the server. They enable portions of pages and entire pages to be faded in an out. They enable 3-d effects. 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 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." ); Passed. Failed. You must take this course again. Failed. You must take this course again. JavaScript/JScript Script-level variables have ________ duration.

a. b. c. d. CHAP: QN=41 (2851)

a. b. c. d. CHAP: QN=42 (2787) a. b. c. d. CHAP: QN=43 (2797) a. b. c. d. CHAP: QN=44 (2915) a. b. c. d. CHAP: QN=45 (2830) a. b. c. d. CHAP:

local global automatic static JavaScript/JScript Which of the following is not a valid equality or relational operator? = < > != JavaScript/JScript Which of the following is not a JavaScript keyword? break delete sub function JavaScript/JScript Which of the following is not a property of the glow filter? color strength direction All of the above are properties of the glow filter. JavaScript/JScript Which of the following is false? In any flowchart, any rectangle (action) can be replaced by 2 rectangle (actions) in sequence. In any flowchart, any rectangle (action) can be replaced by any control structure (sequence, if, if/else, switch, while, do/while or for). In any flowchart, control structure (sequence, if, if/else, switch, while, do/while or for) can be replaced by 2 rectangle (actions) in sequence. Connecting control structures in sequence is called control structure stacking JavaScript/JScript

QN=46 (2904) a. b. c. d. CHAP: QN=47 (2774) a. b. c. d. CHAP: QN=48 (2827)

The ________ attribute of the ________ element specifies another element that is identified by its ________ attribute. ONCLICK, SCRIPT, ID. FOR, ID, SCRIPT. ID, SCRIPT, ONCLICK. FOR, SCRIPT, ID. JavaScript/JScript Microsoft's version of scripting that uses the Java syntax is called ________. JavaScript JScript ECMAScript J++ 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 Which of the following is the proper method to access the length of the array arr[]? arr[].length arr[subscript].length arr.length

a. b. c. d. CHAP: QN=49 (2856) a. b. c.

d. CHAP: QN=50 (2842) a. b. c. d. CHAP:

arr(length) JavaScript/JScript The value a in the following statement is called the ________ and the value b is called the ________. face = Math.floor( a + Math.random() * b ); scaling factor, shifting value shifting value, scaling factor scaling value, shifting factor shifting factor, scaling value JavaScript/JScript

For Examination Department Only Answer of Paper Code= *************************************************************** [id=2934, Mark=1]1. B [id=2711, Mark=1]2. D [id=2925, Mark=1]3. B [id=2926, Mark=1]4. B [id=2721, Mark=1]5. D [id=2729, Mark=1]6. AB [id=2731, Mark=1]7. C [id=2717, Mark=1]8. A [id=2935, Mark=1]9. A [id=2728, Mark=1]10. B [id=2947, Mark=1]11. B [id=2942, Mark=1]12. A [id=2943, Mark=1]13. A [id=2920, Mark=1]14. A [id=2744, Mark=1]15. D [id=2741, Mark=1]16. B [id=2739, Mark=1]17. B [id=2958, Mark=1]18. A [id=2757, Mark=1]19. B [id=2719, Mark=1]20. A [id=2784, Mark=1]21. B [id=2869, Mark=1]22. C [id=2843, Mark=1]23. D [id=2822, Mark=1]24. B [id=2858, Mark=1]25. D [id=2866, Mark=1]26. A [id=2873, Mark=1]27. C [id=2779, Mark=1]28. C [id=2785, Mark=1]29. B [id=2781, Mark=1]30. C [id=2850, Mark=1]31. A [id=2862, Mark=1]32. D [id=2885, Mark=1]33. B [id=2813, Mark=1]34. A [id=2903, Mark=1]35. A [id=2786, Mark=1]36. B [id=2911, Mark=1]37. D [id=2908, Mark=1]38. B [id=2838, Mark=1]39. A [id=2800, Mark=1]40. B [id=2851, Mark=1]41. D [id=2787, Mark=1]42. A

[id=2797, Mark=1]43. C [id=2915, Mark=1]44. C [id=2830, Mark=1]45. C [id=2904, Mark=1]46. D [id=2774, Mark=1]47. B [id=2827, Mark=1]48. D [id=2856, Mark=1]49. C [id=2842, Mark=1]50. B ***************************************************************

Das könnte Ihnen auch gefallen