1. Question: What is the final value of the variable apt? var apt=2; apt=apt<<2;

    A
    2

    B
    4

    C
    6

    D
    8

    E
    16

    Note: Not available
    1. Report
  2. Question: Which of the following is not a valid JavaScript operator?

    A
    *=

    B
    /=

    C
    %=

    D
    ^+

    Note: Not available
    1. Report
  3. Question: What would be the value of ' ind ' after execution of the following code? var msg=" Welcome to ExpertRating " var ind= msg.substr(3, 3)

    A
    lco

    B
    com

    C
    ome

    D
    Welcome

    Note: Not available
    1. Report
  4. Question: You want to ascertain the page from which the user has navigated to the current page. How would you accomplish this?

    A
    It is not possible in JavaScript. This can be done only through server side scripting

    B
    Use document.referrer property

    C
    Use the window object

    D
    None of the above

    Note: Not available
    1. Report
  5. Question: You declared an array. What value would JavaScript assign to an uninitialized array element?

    A
    NaN

    B
    null

    C
    undefined

    D
    false

    Note: Not available
    1. Report
  6. Question: Which of the following built-in functions is used when you want to access the form elements using their ids?

    A
    getItem(id)

    B
    getFormElement(id)

    C
    getElementById(id)

    D
    All of the above

    Note: Not available
    1. Report
  7. Question: You are displaying image thumbnails on a page. Upon clicking a thumbnail, the image is being displayed in its actual size. You do not want the user to be able to click the thumbnails unless they are completely downloaded. What event would you use to prevent the user from clicking on the thumbnails until they are completely downloaded?

    A
    OnLoad

    B
    OnKeyPress

    C
    OnKeyUp

    D
    onClick

    Note: Not available
    1. Report
  8. Question: The statement navigator.platform indicates 'Win16', but you are running Windows NT. Which of the following is true?

    A
    navigator.platform is supposed to show 'Win16' on Windows NT

    B
    The userAgent property reflects the correct operating system

    C
    The property can be modified

    D
    navigator.platform shows the operating system for which the browser was compiled

    E
    The browser version is outdated

    Note: Not available
    1. Report
  9. Question: Which of the following can be used for disabling the right click event in Internet Explorer?

    A
    event.button == 2

    B
    event.button == 4

    C
    event.click == 2

    D
    event.click == 4

    Note: Not available
    1. Report
  10. Question: You want to create a popup window that closes after n seconds. How would you do it?

    A
    You cannot program a window to close automatically after n seconds. The user will have to manually close it

    B
    You would use the setTimeout function

    C
    You would use the exit function of the window object

    D
    You would use the terminate function

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd