MCQOPTIONS
Saved Bookmarks
This section includes 47 Mcqs, each offering curated multiple-choice questions to sharpen your CISCO Certification knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
We can declare all type of variables in JavaScript with the keyword _____________. |
| A. | obj |
| B. | None of these |
| C. | var |
| D. | jvar |
| Answer» D. jvar | |
| 2. |
We can declare ___________ at a time. Select most appropriate option. |
| A. | None of these |
| B. | More than One Variables |
| C. | One or more Variables |
| D. | One Variable Only |
| Answer» D. One Variable Only | |
| 3. |
Variable can hold ________ value at a time |
| A. | Multiple |
| B. | Double |
| C. | Single |
| D. | None of these |
| Answer» D. None of these | |
| 4. |
Which was the first browser to support JavaScript ? |
| A. | Google Chrome |
| B. | Netscape |
| C. | IE |
| D. | Mozilla Firefox |
| Answer» C. IE | |
| 5. |
What will be the Output of the above Code ? |
| A. | Hello |
| B. | None of These |
| C. | Will Throw Error |
| D. | Will not print anything because of Comment |
| Answer» B. None of These | |
| 6. |
We use _______ style comment to prevent showing Java Script as Content in the old browsers. |
| A. | HTML |
| B. | JS |
| C. | C |
| D. | CSS |
| Answer» B. JS | |
| 7. |
All modern browsers supports JS. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 8. |
The async attribute can be set in the following ways - |
| A. | <script async> |
| B. | <script async="async"> |
| C. | <script async=""> |
| D. | All of These |
| Answer» E. | |
| 9. |
______ attribute is used to specify the character encoding used in an external script file. |
| A. | None of These |
| B. | character |
| C. | charset |
| D. | type |
| Answer» D. type | |
| 10. |
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts) |
| A. | defer |
| B. | async |
| C. | type |
| D. | parse |
| Answer» B. async | |
| 11. |
Which of the following Attribute is used to include External JS code inside your HTML Document - |
| A. | script |
| B. | link |
| C. | src |
| D. | ext |
| Answer» D. ext | |
| 12. |
It is good programming procedure to include JS in a external sheet and make it available than writing inside HTML.a |
| A. | I Dont Agree !! |
| B. | I Agree !! |
| Answer» C. | |
| 13. |
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 14. |
JS code included inside head section is loaded before loading page. |
| A. | False |
| B. | True |
| Answer» C. | |
| 15. |
We cannot Place JS Code in the body tag . Say true/false. |
| A. | False |
| B. | True |
| Answer» B. True | |
| 16. |
Is this correct syntax to include JS Code inside HTML Page ? <script type="text/javascript"> ... </script> |
| A. | No |
| B. | Yes |
| Answer» C. | |
| 17. |
Select all the correct option(s). State the correct place of JS Code inside HTML - |
| A. | Inside Body |
| B. | All of these |
| C. | Inside Head |
| D. | Inside Single JavaScript File |
| Answer» D. Inside Single JavaScript File | |
| 18. |
JavaScript Code can be called by using _________. |
| A. | Preprocessor |
| B. | RMI |
| C. | Triggering Event |
| D. | None of these |
| Answer» D. None of these | |
| 19. |
We can embed JS code inside HTML directly ? |
| A. | True |
| B. | False |
| Answer» B. False | |
| 20. |
Local Browser used for validations on the Web Pages uses __________.a |
| A. | Java |
| B. | CSS |
| C. | HTML |
| D. | JS |
| Answer» E. | |
| 21. |
Choose appropriate Option(s) : JavaScript is also called as _____________. |
| A. | None of These |
| B. | Server Side Scripting Language |
| C. | Client Side Scripting Language |
| D. | None of these |
| Answer» D. None of these | |
| 22. |
Why JavaScript is called as Lightweight Programming Language ? |
| A. | because JS can provide programming functionality inside but up to certain extend. |
| B. | because JS is available free of cost. |
| C. | because we can add programming functionality inside JS |
| D. | because JS is client side scripting |
| Answer» B. because JS is available free of cost. | |
| 23. |
JavaScript Code is written inside file having extension __________. |
| A. | .jsc |
| B. | .jvs |
| C. | .javascript |
| D. | .js |
| Answer» E. | |
| 24. |
Cost for Using JavaScript in your HTML is _________ . |
| A. | $15 / Year |
| B. | $5 / Year |
| C. | Its Free !!! |
| D. | $10 / Year |
| Answer» D. $10 / Year | |
| 25. |
JavaScript is an ________ language. |
| A. | compiled |
| B. | interpreted |
| Answer» C. | |
| 26. |
Select Appropriate Option(s) : JavaScript is can be written - |
| A. | None of these |
| B. | directly into JS file and included into HTML |
| C. | directly on the Server Script |
| D. | None of these |
| Answer» C. directly on the Server Script | |
| 27. |
JavaScript is designed for following purpose - |
| A. | To Execute Query Related to DB on Server |
| B. | To Style HTML Pages |
| C. | To add interactivity to HTML Pages |
| D. | To Perform Server Side Scripting Opertion |
| Answer» D. To Perform Server Side Scripting Opertion | |
| 28. |
JavaScript is ______ Side Scripting Language. |
| A. | Browser |
| B. | ISP |
| C. | Server |
| D. | None of These |
| Answer» B. ISP | |
| 29. |
Javascript is _________ language. |
| A. | Programming |
| B. | Scripting |
| C. | None of These |
| D. | Application |
| Answer» C. None of These | |
| 30. |
Which of the following is considered as platform independent code ? |
| A. | Source Code |
| B. | Compiled File |
| Answer» B. Compiled File | |
| 31. |
JRE Stands for ____________. |
| A. | Java Runtime Engine |
| B. | Java Runtime Environment |
| C. | Java Reply Engine |
| D. | Java Running Engine |
| Answer» C. Java Reply Engine | |
| 32. |
JVM Stands for __________________. |
| A. | Java Virtual Machanism |
| B. | Java Virtual Memory |
| C. | Java Virtual Management |
| D. | Java Virtual Machine |
| Answer» E. | |
| 33. |
Platform independent code file created from Source file is understandable by _______________. |
| A. | JVM |
| B. | Compiler |
| C. | JRE |
| D. | Applet |
| Answer» B. Compiler | |
| 34. |
Which of the following converts human readable file into platform independent code file in Java? |
| A. | JRE |
| B. | Compiler |
| C. | JVM |
| D. | Applet |
| Answer» C. JVM | |
| 35. |
Following file is human readable in Java programming language. |
| A. | .Class |
| B. | .Jar |
| C. | Obj |
| D. | .Java |
| Answer» E. | |
| 36. |
Java allow , Same java program program to be executed on multiple operating systems. |
| A. | False |
| B. | True |
| Answer» C. | |
| 37. |
Java Programming promises programmer - "Write Once, Run Anywhere". |
| A. | False |
| B. | True |
| Answer» C. | |
| 38. |
Single line comment starts with _________ in Java. |
| A. | // |
| B. | /** |
| C. | /* |
| D. | None of these |
| Answer» D. None of these | |
| 39. |
Following example of Nested Comments is allowed in Java Programming Language. // /* Nesting Of Comment */ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 40. |
/* /* comment 1 */ comment 2 */ We can write comment like this in Java Programming. |
| A. | False |
| B. | True |
| Answer» B. True | |
| 41. |
Which of the following is not a keyword in Java. |
| A. | emun |
| B. | strictfp |
| C. | transient |
| D. | instanceof |
| Answer» B. strictfp | |
| 42. |
jar stands for _____________. |
| A. | Java Application Runner |
| B. | none of these |
| C. | Java Archive Runner |
| D. | Java Archive |
| Answer» E. | |
| 43. |
HTML based Java Documentary help can be accessed using ______________. |
| A. | javamanual |
| B. | javadoc |
| C. | none of these |
| D. | javahelp |
| Answer» C. none of these | |
| 44. |
Which of the following is used to interpret and execute Java Applet Classes hosted by HTML. |
| A. | appletscreen |
| B. | appletshow |
| C. | appletwatcher |
| D. | appletviewer |
| Answer» E. | |
| 45. |
Which of the following tool used to execute java code. |
| A. | javadoc |
| B. | java |
| C. | rmic |
| D. | javac |
| Answer» C. rmic | |
| 46. |
Which of the tool is used to compile java code ? |
| A. | java |
| B. | javac |
| C. | jar |
| D. | javadoc |
| Answer» C. jar | |
| 47. |
Java Source Code is compiled into ______________. |
| A. | .Obj |
| B. | Bytecode |
| C. | Source Code |
| D. | .Exe |
| Answer» C. Source Code | |