MCQOPTIONS
Saved Bookmarks
This section includes 43 Mcqs, each offering curated multiple-choice questions to sharpen your Bachelor Multimedia Communication (B.M.M.C.) knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
JavaScript is can be written – |
| A. | directly into html pages |
| B. | directly into js file and included into html |
| C. | none of these |
| D. | directly on the server script |
| Answer» B. directly into js file and included into html | |
| 2. |
JavaScript is designed for following purpose – |
| A. | to add interactivity to html pages. |
| B. | to execute query related to db on server |
| C. | to perform server side scripting opertion |
| D. | to style html pages |
| Answer» B. to execute query related to db on server | |
| 3. |
What should appear at the very end of your JavaScript?The tag |
| A. | the </script> |
| B. | the <script> |
| C. | the end statement |
| D. | none of the above |
| Answer» B. the <script> | |
| 4. |
Select all the correct option(s). State the correct place of JS Code inside HTML – |
| A. | inside body |
| B. | inside head |
| C. | all of these |
| D. | inside single javascript file |
| Answer» D. inside single javascript file | |
| 5. |
var s = "9123456 or 80000?";var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); |
| A. | 9123 |
| B. | 91234 |
| C. | 80000 |
| D. | none of the above |
| Answer» B. 91234 | |
| 6. |
function x(){document.write(2+5+"8");} |
| A. | 258 |
| B. | error |
| C. | 7 |
| D. | 78 |
| Answer» E. | |
| 7. |
Which of the following event fires when the form element loses the focus: , ,, , ? |
| A. | onfocus |
| B. | onblur |
| C. | onclick |
| D. | ondblclick |
| Answer» C. onclick | |
| 8. |
When a user views a page containing a JavaScript program, which machine actually executesthe script? |
| A. | the user\s machine running a web browser |
| B. | the web server |
| C. | a central machine deep within netscape\s corporate offices |
| D. | none of the above |
| Answer» C. a central machine deep within netscape\s corporate offices | |
| 9. |
_____ JavaScript statements embedded in an HTML page can respond to user events such asmouse-clicks, form input, and page navigation. |
| A. | client-side |
| B. | server-side |
| C. | local |
| D. | native |
| Answer» B. server-side | |
| 10. |
Social sites |
| A. | a web portal |
| B. | platform for social relations |
| C. | a web sites dealing for social issues |
| D. | none of the above |
| Answer» B. platform for social relations | |
| 11. |
Protocol |
| A. | a system for web programming |
| B. | a system for message exchange |
| C. | name of a server |
| D. | none of the above |
| Answer» C. name of a server | |
| 12. |
FTP |
| A. | file transfer protocol |
| B. | file testing programme |
| C. | film technology project |
| D. | none of the above |
| Answer» B. file testing programme | |
| 13. |
HTTP |
| A. | hypermedia text transfer protocol |
| B. | hypertext transfer protocol. |
| C. | html testing programme |
| D. | none of the above |
| Answer» C. html testing programme | |
| 14. |
SMTP |
| A. | simple mail transfer protocol |
| B. | synchronized mail transferring programme |
| C. | system |
| D. | none of the above |
| Answer» B. synchronized mail transferring programme | |
| 15. |
Online Shopping |
| A. | e-commerce |
| B. | computerization of commerce |
| C. | computer trade |
| D. | none of the above |
| Answer» B. computerization of commerce | |
| 16. |
XML |
| A. | extensible markup language. |
| B. | embedded markup language |
| C. | electronic markup language |
| D. | none of the above |
| Answer» B. embedded markup language | |
| 17. |
Select all the correct option(s). State the correct place of JS Code inside HTML – |
| A. | inside body |
| B. | inside head |
| C. | all of these |
| D. | inside single javascript file |
| Answer» D. inside single javascript file | |
| 18. |
Local Browser used for validations on the Web Pages uses __________. |
| A. | java |
| B. | css |
| C. | js |
| D. | html |
| Answer» D. html | |
| 19. |
JavaScript is can be written – |
| A. | directly into html pages |
| B. | directly into js file and included into html |
| C. | none of these |
| D. | directly on the server script |
| Answer» B. directly into js file and included into html | |
| 20. |
JavaScript is designed for following purpose – |
| A. | to add interactivity to html pages. |
| B. | to execute query related to db on server |
| C. | to perform server side scripting opertion |
| D. | to style html pages |
| Answer» B. to execute query related to db on server | |
| 21. |
JavaScript is ______ Side Scripting Language. |
| A. | browser |
| B. | isp |
| C. | noneof these |
| D. | server |
| Answer» B. isp | |
| 22. |
Choose the client-side JavaScript object: |
| A. | database |
| B. | cursor |
| C. | client |
| D. | fileupload |
| Answer» E. | |
| 23. |
The syntax of close method for document object is ______________ |
| A. | close(doc. |
| B. | close(object) |
| C. | close(val) |
| D. | close() |
| Answer» E. | |
| 24. |
The syntax of a blur method in a button object is ______________ |
| A. | blur() |
| B. | blur(contrast) |
| C. | blur(value) |
| D. | blur(depth) |
| Answer» B. blur(contrast) | |
| 25. |
The syntax of capture events method for document object is ______________ |
| A. | captureevents() |
| B. | captureevents(argseventtype) |
| C. | captureevents(eventtype) |
| D. | captureevents(eventval) |
| Answer» D. captureevents(eventval) | |
| 26. |
How to create a Date object in JavaScript? |
| A. | dateobjectname = new date([parameters]) |
| B. | dateobjectname.newdate([parameters]) |
| C. | dateobjectname := new date([parameters]) |
| D. | dateobjectname date([parameters]) |
| Answer» B. dateobjectname.newdate([parameters]) | |
| 27. |
JavaScript is interpreted by _________ |
| A. | client |
| B. | server |
| C. | object |
| D. | none of the above |
| Answer» B. server | |
| 28. |
Which of the following event fires when the form element loses the focus: , , , , ? |
| A. | onfocus |
| B. | onblur |
| C. | onclick |
| D. | ondblclick |
| Answer» C. onclick | |
| 29. |
Which of the following best describes JavaScript? |
| 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» E. | |
| 30. |
JavaScript entities start with _______ and end with _________. |
| A. | semicolon, colon |
| B. | semicolon, ampersand |
| C. | ampersand, colon |
| D. | ampersand, semicolon |
| Answer» E. | |
| 31. |
What does the 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» B. prevents scripts on the page from executing. | |
| 32. |
What is the correct JavaScript syntax to write "Hello World"? |
| A. | system.out.println("hello world") |
| B. | println (“hello worldâ€) |
| C. | document.write("hello world") |
| D. | response.write("hello world") |
| Answer» D. response.write("hello world") | |
| 33. |
Which of the following way can be used to indicate the LANGUAGE attribute? |
| A. | <language="javascriptversion"> |
| B. | <script language="javascriptversion"> |
| C. | <script language="javascriptversion"> javascript statements…</script> |
| D. | <script language="javascriptversion"!> javascript |
| Answer» D. <script language="javascriptversion"!> javascript | |
| 34. |
Inside which HTML element do we put the JavaScript? |
| A. | <js> |
| B. | <scripting> |
| C. | <script> |
| D. | <javascript> |
| Answer» D. <javascript> | |
| 35. |
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» D. none of the above | |
| 36. |
Which of the following attribute can hold the JavaScript version? |
| A. | language |
| B. | script |
| C. | version |
| D. | none of the above |
| Answer» B. script | |
| 37. |
Which of the following are capabilities of functions in JavaScript? |
| A. | return a value |
| B. | accept parameters and return a value |
| C. | accept parameters |
| D. | none of the above |
| Answer» D. none of the above | |
| 38. |
______ tag is an extension to HTML that can enclose any number of JavaScript statements. |
| A. | <script> |
| B. | <body> |
| C. | <head> |
| D. | <title> |
| Answer» B. <body> | |
| 39. |
Which of the following can't be done with client-side JavaScript? |
| A. | validating a form |
| B. | sending a form\s contents by email |
| C. | storing the form\s contents to a database file on the server |
| D. | none of the above |
| Answer» D. none of the above | |
| 40. |
What should appear at the very end of your JavaScript? The tag |
| A. | the </script> |
| B. | the <script> |
| C. | the end statement |
| D. | none of the above |
| Answer» B. the <script> | |
| 41. |
When a user views a page containing a JavaScript program, which machine actually executes the script? |
| A. | the user\s machine running a web browser |
| B. | the web server |
| C. | a central machine deep within netscape\s corporate offices |
| D. | none of the above |
| Answer» C. a central machine deep within netscape\s corporate offices | |
| 42. |
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation. |
| A. | client-side |
| B. | server-side |
| C. | local |
| D. | native |
| Answer» B. server-side | |
| 43. |
Javascript is _________ language. |
| A. | application |
| B. | programming |
| C. | scripting |
| D. | none of these |
| Answer» D. none of these | |