JavaScript Trivia: MCQ Quiz!

10 Questions | Total Attempts: 309

SettingsSettingsSettings
Please wait...
JavaScript Trivia: MCQ Quiz!

.


Questions and Answers
  • 1. 
    Which of the following is correct about the features of JavaScript?
    • A. 

      JavaScript is is complementary to and integrated with HTML.

    • B. 

      JavaScript is open and cross-platform.

    • C. 

      Both of the above.

    • D. 

      All of the above.

  • 2. 
    How can you get the type of arguments passed to a function?
    • A. 

      Using typeof operator

    • B. 

      Using getType function

    • C. 

      Both of the above.

    • D. 

      None of the above.

  • 3. 
    Which built-in method returns the character at the specified index?
    • A. 

      CharacterAt()

    • B. 

      GetCharAt()

    • C. 

      CharAt()

    • D. 

      None of the above.

  • 4. 
    Which built-in method returns the string representation of the number's value?
    • A. 

      ToValue()

    • B. 

      ToNumber()

    • C. 

      ToString()

    • D. 

      None of the above.

  • 5. 
    Which of the following function of the String object returns a number indicating the Unicode value of the character at the given index?
    • A. 

      CharAt()

    • B. 

      CharCodeAt()

    • C. 

      Concat()

    • D. 

      IndexOf()

  • 6. 
    Which of the following function of the String object returns the index within the calling String object of the last occurrence of the specified value?
    • A. 

      LastIndexOf()

    • B. 

      Search()

    • C. 

      Substr()

    • D. 

      IndexOf()

  • 7. 
    Which of the following function of the String object creates a string to be displayed in a big font as if it were in a <big> tag?
    • A. 

      Anchor()

    • B. 

      Big()

    • C. 

      Blink()

    • D. 

      Italics()

  • 8. 
    Which of the following function of the String object causes a string to be displayed as a subscript as if it were in a <sub> tag?
    • A. 

      Sup()

    • B. 

      Small()

    • C. 

      Strike()

    • D. 

      Sub()

  • 9. 
    Which of the following function of Array object returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found?
    • A. 

      IndexOf()

    • B. 

      Join()

    • C. 

      LastIndexOf()

    • D. 

      Map()

  • 10. 
    Which of the following function of the Array object returns a string representing the array and its elements?
    • A. 

      ToSource()

    • B. 

      Sort()

    • C. 

      Splice()

    • D. 

      ToString()