/    Sign up×
Community /Pin to ProfileBookmark

A quiz Ive been working on

Please help! Specially questions with ? icons.

  • 1. Event handlers can be associated to both attributes (in an HTML tag) and properties of an object in BOM.

  • >

    True
    False

  • 2. alert(), prompt() and confirm() are methods of the

    a. document object


  • >

    b. window object

    c. navigator object

    d. screen object

  • 3. The root object of the BOM is the document object.

    True


  • >

    False

  • 4. Event handlers are always JavaScript code.

    True


  • >

    False ?

  • 5. In a BOM, the following is the most used object

    a. history

    b. navigator


  • >

    c. document

    d. screen

  • 6. An object may not contain

    a. another object


  • >

    b. an event ?
    c. an array (or a collection)

    d. image

  • 7. Checking browser version is often necessary before an action is taken.

  • >

    True ?
    False

  • 8. What would not be an advantage of using the onclick event instead of the href attribute to navigate a link?

    a. it s less coding

    b. it s possible to navigate to an number of destinations depending on given conditions

    c. it s possible to cancel the navigation to another page altogether


  • >

    d. both b and c

  • 9. Browsers come with native (built-in) objects organized in a tree structure.

  • >

    True
    False

  • 10. We can always write JavaScript code that works for all existing browsers.

    True


  • >

    False ?

    to post a comment
    JavaScript

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @ZnupiMar 26.2007 — [b]By BOM do you mean DOM????[/b]

    3. Then what is? window?... I think that document is the root object, considering that in Firefox, using FireBug, on the DOM tab the first thing is "document".

    4. I'm 90% certain the answer is true. Although there is VBScript and other sorts of client-side scripting languages, these are usually implemented only in Internet Explorer and they are never actually used...

    6. Why not? An event is an object itself, so if a. is true, b. must be true ?.

    7. False. It's needed rarely if you know how to code cross-browser.

    8. You probably mean "What would be an advantage", not "What would [b]not[/b] be an advantage"...

    10. Indeed false. There are browsers that can't handle javascript at all (for e.g. portable devices (PDA's) )

    I hope I'm right about this and not make a fool of myself, lol ?.
    Copy linkTweet thisAlerts:
    @bogdachauthorMar 26.2007 — 
  • 3. The BOM is Browser Object Model and I am pretty sure, the root object is window.

  • 8. The question was original, and thanks for notice.
  • ×

    Success!

    Help @bogdach spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...