

McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Bachelor of Business Administration in Computer Applications (BBA [CA]) .
Chapters
51. |
Inside which HTML element do we put the JavaScript? |
A. | <js> |
B. | <scripting> |
C. | <script> |
D. | <javascript> |
Answer» C. <script> |
52. |
What is the correct syntax for referring to an external script called " abc.js"? |
A. | <script href=" abc.js"> |
B. | <script name=" abc.js"> |
C. | <script src=" abc.js"> |
D. | None of the above |
Answer» C. <script src=" abc.js"> |
53. |
Which types of image maps can be used with JavaScript? |
A. | Server-side image maps |
B. | Client-side image maps |
C. | Server-side image maps and Client-side image maps |
D. | None of the above |
Answer» B. Client-side image maps |
54. |
Which of the following navigator object properties is the same in both Netscape
|
A. | navigator.appCodeName |
B. | navigator.appName |
C. | navigator.appVersion |
D. | None of the above |
Answer» A. navigator.appCodeName |
55. |
Which is the correct way to write a JavaScript array? |
A. | var txt = new Array(1:"tim",2:"kim",3:"jim") |
B. | var txt = new Array:1=("tim")2=("kim")3=("jim") |
C. | var txt = new Array("tim","kim","jim") |
D. | var txt = new Array="tim","kim","jim" |
Answer» C. var txt = new Array("tim","kim","jim") |
56. |
What does the <noscript> tag do? |
A. | Enclose text to be displayed by non-JavaScript browsers. |
B. | Prevents scripts on the page from executing. |
C. | Describes certain low-budget movies. |
D. | None of the above |
Answer» A. Enclose text to be displayed by non-JavaScript browsers. |
57. |
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph? |
A. | "New Text"? |
B. | para1.value="New Text"; |
C. | para1.innerText = "New Text |
D. | para1.nodeValue="New Text"; |
Answer» C. para1.innerText = "New Text |
58. |
JavaScript entities start with _______ and end with _________. |
A. | Semicolon, colon |
B. | Semicolon, Ampersand |
C. | Ampersand, colon |
D. | Ampersand, semicolon |
Answer» D. Ampersand, semicolon |
59. |
Which of the following best describes JavaScript? |
A. | a low-level programming language. |
B. | a scripting language precompiled in the browser. |
C. | a compiled scripting language. |
D. | an object-oriented scripting language. |
Answer» D. an object-oriented scripting language. |
60. |
Choose the server-side JavaScript object? |
A. | FileUpLoad |
B. | Function |
C. | File |
D. | Date |
Answer» C. File |
61. |
Choose the client-side JavaScript object? |
A. | Database |
B. | Cursor |
C. | Client |
D. | FileUpLoad |
Answer» D. FileUpLoad |
62. |
Which of the following is not considered a JavaScript operator? |
A. | new |
B. | this |
C. | delete |
D. | typeof |
Answer» B. this |
63. |
______method evaluates a string of JavaScript code in the context of the
|
A. | Eval |
B. | ParseInt |
C. | ParseFloat |
D. | Efloat |
Answer» A. Eval |
64. |
Which of the following event fires when the form element loses the focus:
|
A. | onfocus |
B. | onblur |
C. | onclick |
D. | ondblclick |
Answer» B. onblur |
65. |
The syntax of Eval is _______. |
A. | [objectName.]eval(numeriC. |
B. | [objectName.]eval(string) |
C. | [EvalName.]eval(string) |
D. | [EvalName.]eval(numeriC. |
Answer» B. [objectName.]eval(string) |
66. |
JavaScript is interpreted by ______
|
A. | Client |
B. | Server |
C. | Object |
D. | None of the above |
Answer» A. Client |
67. |
Using _______ statement is how you test for a specific condition. |
A. | Select |
B. | If |
C. | Switch |
D. | For |
Answer» B. If |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.