1. Question: Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time?

    A
    setElapsedTime()

    B
    Timeout()

    C
    setTimeout()

    D
    setTime()

    Note: Not available
    1. Report
  2. Question: You are working on a JavaScript project. What is used to restart the inner most loop?

    A
    Abort

    B
    Breakloop

    C
    Stop

    D
    Continue

    Note: Not available
    1. Report
  3. Question: You work on a JavaScript project. Which of the following correctly describe the relationships of JavaScript and "objects"?

    A
    JavaScript is Object-oriented

    B
    JavaScript is Object-based

    C
    JavaScript is Object-driven

    D
    JavaScript has no relationship with objects

    Note: Not available
    1. Report
  4. Question: You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs?

    A
    alert()

    B
    display()

    C
    prompt()

    D
    input()

    Note: Not available
    1. Report
  5. Question: Which of the following is the correct syntax of FOR?

    A
    for ( increment; initialize; test)

    B
    for ( initialize; test), increment

    C
    for ( initialize; test; increment)

    D
    for ( test; initalize; increment)

    Note: Not available
    1. Report
  6. Question: In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"?

    A
    Substring()

    B
    String()

    C
    Stringlength()

    D
    CharAt()

    Note: Not available
    1. Report
  7. Question: In some case, which of the following could be replacement for "if"?

    A
    for

    B
    while

    C
    do-while

    D
    switch-case

    Note: Not available
    1. Report
  8. Question: You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?

    A
    Check for the presence of certain characters

    B
    Check the position of substrings

    C
    Test the length of data

    D
    Check the variable type of the strings

    Note: Not available
    1. Report
  9. Question: Which of the following is the minimum browser version that supports JavaScript

    A
    Navigator v2.0

    B
    Mozilla V1.5

    C
    IE 2.0

    D
    Navigator V1.0

    Note: Not available
    1. Report
  10. Question: Under which of the following conditions will you need to include semi colons on a line of code?

    A
    When you have multiple statements on multiple lines

    B
    When you have multiple statements on a line

    C
    When you have single statement on multiple lines

    D
    When you have single statement on a line

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