Question: 7 What does the following statement do? Math.floorMath.random 12 a) This creates a random number from 0 up to and including 12. b) This creates
7 What does the following statement do? Math.floorMath.random 12 a) This creates a random number from 0 up to and including 12. b) This creates a random number from 0 up to but not including 12. c) This creates a random number from 1 up to and ineluding 12. d) This creates a random number from 1 up to but not including 12 8 What does the variable string contain after the following code is executed? var string "Good luck on the test" string-string.split a) an array containing the strings "Good", "luck "on "the" and "test" b) the string Good.1uck.on.the.test c) the string Good,1uck, on,the,test" d) Nothing, the string conversion will generate an error. are stored by the browser on the user's computer to maintain client- specific information during and between browser sessions a) Files b) Documents c) Cookies d) Substrings 10 What does the following script do? Here pid is an id of a paragraph element on the web page. var value 0: function startTiner window.setInterval ( "updateTime)", 1000 function updateTine0 value+4 document.getElementByld( "pid".innerHLvalue a) It counts the number of seconds elapsed while loading the page b) It counts the number of milliseconds elapsed while loading the page c) It counts the number of seconds elapsed viewing the page. d) It counts the number of milliseconds elapsed while viewing the page. 11. Event a) mousedrages fires whenever a mouse cursor moves into an element. b) mouseover c) mouseout d) all of these 12. The function convert a string into integer in Javascript. a) parseInt b) converInt e) transfer Int d) int
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
