Web Development MCQs Quiz 2
WEB QUIZ-2 Web Application Development Marks: 20
- Select JavaScript pre-defined functions. (Select all appropriate) System.write() Alert() Console.write() Printf()
- What output will the following display?
- External scripts are practical when the same code is used in many different web pages. So External JavaScript files have the file extension ____. .Jscript .Java .JS .JavaS
- Code after ____is treated as a comment in JavaScript. <-- \\ */ //
- To use an external script, put the name of the script file in the ___ attribute of a <script> tag. link src href rel
- JavaScript code is inserted between ____ tags. <Jscript> and </Jscript>
- What output will the following display?
- How many number of scripts can be added in an HTML document? Two Any number One None
- The following code will display any random number on browser ___?
- <button onclick="myFunction()" type="button">Try it</button>; What do you understand the above html code. When click on button “Try it” myFunction() function will call.
- Using _____ after an HTML document is loaded, will delete all existing HTML: innerHTML window.alert()
- Adding two numbers, will return the sum, and adding a number and a string will return ____. error exception
- JavaScript is an/a _____ based language. Interpreter Object-Oriented
- Placing scripts in external files has some advantages: (Select all appropriate) It makes HTML and JavaScript and maintain
- What output will the following display?
- JavaScript can "display" data in different ways: Select all appropriate Writing into an alert box, using window.alert().<,br> Writing into the HTML output using document.write().
- Scripts can be placed in the ____ section of an HTML page. Body
- JavaScript uses the __ keyword to declare variables. (Select all appropriate) Var Consider Let Int or string
Orange, Apple, Mango, Grapes
Banana, Orange, Apple, Mango
Banana, Orange, Apple, Mango, Grapes
Orange, Apple, Mango
<JavaScript> and </JavaScript>
<Script> and </script>
<js> and </js>
Banana, Orange, Apple, Mango, Grapes, Kiwi
Banana, Orange, Apple, Mango, Grapes
Kiwi, Banana, Orange, Apple, Mango, Grapes
Kiwi, Banana, Orange, Apple, Mango, Grapes, Kiwi
Between 0 to 99 Between 1 to 100 Between 0 to 100 Between 1 to 99
When moue hover on button “Try it” myFunction() function will call.
When button “Try it” will load on page myFunction() function will call.
Function will not call, there are some errors found.
console.log() document.write()
string number
Assembler Compiler
Cached JavaScript files can speed up page loads
If two javascript files are dependent on one another, then a failure in one file may affect the execution of the other dependent file.
easier to read It separates HTML and code
100 A 165 100 65 100+A
Writing into an HTML element, using innerHTML.
Writing into the browser console, using console.log().
Head
Both head and Body
Either Head or Body
For Solution Attempt Quiz for free and see answers
Click Here to StartWeb Development MCQs QUIZ-3
Comments
Post a Comment