Fresher Drive @ 27 September - HTML, Js

15 Questions | Total Attempts: 58

SettingsSettingsSettings
Please wait...
Fresher Drive @ 27 September - HTML, Js


Questions and Answers
  • 1. 
    Difference b/w confirm and alert
    • A. 

      Both are same

    • B. 

      Confirm provides choice

    • C. 

      Alert provides choice

    • D. 

      None

  • 2. 
    Which one is correct?i) function one(var a)ii) function two(a)
    • A. 

      Both

    • B. 

      I

    • C. 

      Ii

    • D. 

      None

  • 3. 
    Selection change event of html radio button
    • A. 

      Onselectedindexchanged

    • B. 

      Onchange

    • C. 

      Onclick

    • D. 

      Ondbclick

  • 4. 
    GetDate() retruns?
    • A. 

      Date

    • B. 

      Month

    • C. 

      Day of month

    • D. 

      ALL

  • 5. 
    Is JavaScript case sensitive?
    • A. 

      Yes

    • B. 

      No

  • 6. 
    How to create arrays in JavaScript?
    • A. 

      Var arr[];

    • B. 

      Var arr = new Array();

    • C. 

      Var arr[] = new Array();

    • D. 

      Var arr = new Array[];

  • 7. 
    What does "1"+2+4 evaluate to?
    • A. 

      15

    • B. 

      6

    • C. 

      124

    • D. 

      51

  • 8. 
    What does 3+4+"7" evaluate to?
    • A. 

      347

    • B. 

      77

    • C. 

      14

    • D. 

      None

  • 9. 
    Iframe in HTML is used to display -- within a web page.
    • A. 

      Html control

    • B. 

      Html field

    • C. 

      A web page

    • D. 

      ALL

  • 10. 
    Which of the following is true about links by default?
    • A. 

      An unvisited link is underlined and blue.

    • B. 

      A visited link is underlined and red.

    • C. 

      An active link is underlined and purple.

    • D. 

      All the above.

  • 11. 
    The href attribute in the link tag specifies the:
    • A. 

      Destination of a link.

    • B. 

      Link

    • C. 

      Hypertext

    • D. 

      None of the above

  • 12. 
    Which one is correct to assign images path in <img> tag control?
    • A. 

      SRC="http://www.computerhope.com/chguy.gif"

    • B. 

      Url="http://www.computerhope.com/chguy.gif"

    • C. 

      SRCURL="http://www.computerhope.com/chguy.gif"

    • D. 

      Imgurl="http://www.computerhope.com/chguy.gif"

  • 13. 
    HTML Form Events ___________, fires the moment that the element loses focus.
    • A. 

      Onfocus

    • B. 

      Onchange

    • C. 

      Onlostfocus

    • D. 

      Onblur

  • 14. 
    Which of the following tags below are used for a multi-line text input control?
    • A. 

      Textml tag

    • B. 

      Text tag

    • C. 

      Textarea tag

    • D. 

      Both b and c above

  • 15. 
    What is the difference between XML and HTML?
    • A. 

      HTML is used for exchanging data, XML is not.

    • B. 

      XML is used for exchanging data, HTML is not.

    • C. 

      HTML can have user defined tags, XML cannot

    • D. 

      All

Back to Top Back to top