Html miscellaneous


  1. jQuery does not contain the _____________ feature.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    jQuery contains many features like CSS manipulation, AJAX, Effects, and animations, Utilities, HTML event methods, HTML/DOM manipulation. There are also jQuery plugins for every given task. jQuery simplifies complicated things in JavaScript.


  1. What is the Boolean value of “” in JavaScript?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    For an empty string (“”), the Boolean value is false. E.g. var t= “ ”; Boolean(t); //it will return false. For -0(minus zero), the Boolean value is false. The Boolean value of undefined is also false. For null and false the Boolean value is also false.



  1. Math.random() returns _______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Math.random() generate any random number between 0 and 1. If we use Math.random() with Math.floor() it returns any random integer. E.g. Math.floor(Math.random * 1000); It will generate any random number between 0 and 999. For the sake of convenience we can also define a random function.


  1. Which method is not used for converting variables to number?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    There are mainly three methods with the help of those we can convert variables to numbers. The methods are the parseFloat() method, the Number() method, the parseInt() method. These are global JavaScript methods. valueOf() method return number as a number only.



  1. By default JavaScript displays the numbers as ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    base 10 decimals are displayed as numbers by default by JavaScript. We can use toString() method for converting numbers as any of the base among 16, 2, 8. E.g var number= 1256; number.toString(6); number.toString(16); number.toString(2).