Similar Collections


    No collections found

questions

Title
Which of the following is correct about JavaScript

Which of the following is correct about JavaScript?


  1. JavaScript is a lightweight, interpreted programming language.
  2. JavaScript has object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages.
  3. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.
  4. All of the above.
discuss
Which of the following is the correct syntax to print a page using JavaScript

Which of the following is the correct syntax to print a page using JavaScript?


  1. window.print();
  2. browser.print();
  3. navigator.print();
  4. document.print();
discuss
Which of the following type of variable is visible only within a function where it is defined

Which of the following type of variable is visible only within a function where it is defined?


  1. global variable
  2. local variable
  3. Both of the above.
  4. None of the above.
discuss
Which built-in method returns the calling string value converted to upper case

Which built-in method returns the calling string value converted to upper case?


  1. toUpperCase()
  2. toUpper()
  3. changeCase(case)
  4. None of the above.
discuss
Which of the following function of Number object returns the number's value

Which of the following function of Number object returns the number's value


  1. toString()
  2. valueOf()
  3. toLocaleString()
  4. toPrecision()
discuss
Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified value

Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified value


  1. substr()
  2. search()
  3. lastIndexOf()
  4. indexOf()
discuss
Which of the following function of String object creates an HTML anchor that is used as a hypertext target

Which of the following function of String object creates an HTML anchor that is used as a hypertext target


  1. anchor()
  2. link()
  3. blink()
  4. big()
discuss
Which of the following function of String object causes a string to be displayed as struck-out text, as if it were in a strike tag

Which of the following function of String object causes a string to be displayed as struck-out text, as if it were in a strike tag?


  1. sup()
  2. small()
  3. strike()
  4. sub()
discuss
Which of the following is true about variable naming conventions in JavaScrip

Which of the following is true about variable naming conventions in JavaScript


  1. You should not use any of the JavaScript reserved keyword as variable name.
  2. JavaScript variable names should not start with a numeral (0-9).
  3. Both of the above.
  4. None of the above.
discuss
Which of the following is the correct syntax to redirect a url using JavaScript

Which of the following is the correct syntax to redirect a url using JavaScript


  1. document.location='http://www.mcqgeek.com';
  2. browser.location='http://www.mcqgeek.com';
  3. navigator.location='http://www.mcqgeek.com';
  4. window.location='http://www.mcqgeek.com';
discuss
Which built-in method returns the character at the specified index

Which built-in method returns the character at the specified index?


  1. characterAt()
  2. getCharAt()
  3. charAt()
  4. None of the above.
discuss
Which of the following function of String object returns a number indicating the Unicode value of the character at the given index

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


  1. charAt()
  2. charCodeAt()
  3. concat()
  4. indexOf()
discuss
Which of the following function of String object executes the search for a match between a regular expression and a specified string

Which of the following function of String object executes the search for a match between a regular expression and a specified string?


  1. concat()
  2. match()
  3. replace()
  4. search()
discuss
Which of the following function of String object returns the calling string value converted to upper case while respecting the current locale

Which of the following function of String object returns the calling string value converted to upper case while respecting the current locale?


  1. toLocaleUpperCase()
  2. toUpperCase()
  3. toString()
  4. substring()
discuss
Which of the following is a valid type of function javascript supports

Which of the following is a valid type of function javascript supports


  1. named function
  2. anonymous function
  3. Both of the above
  4. None of the above
discuss
How can you get the type of arguments passed to a function

How can you get the type of arguments passed to a function


  1. using typeof operator
  2. using getType function
  3. Both of the above.
  4. None of the above.
discuss
Which of the following function of Array object removes the first element from an array and returns that element

Which of the following function of Array object removes the first element from an array and returns that element


  1. reverse()
  2. shift()
  3. slice()
  4. some()
discuss
___________is a built - in JavaScript function which can be used to execute another function after a given time interval

....................... is a built - in JavaScript function which can be used to execute another function after a given time interval.


  1. Timeout( )
  2. TimeInterval( )
  3. setTimeout ( )
  4. All of the above
discuss
Java Script entities start with ___________and end with _____________

Java Script entities start with ___________and end with _____________.


  1. Semicolon, colon
  2. Semicolon, Ampersand
  3. Ampersand, colon
  4. Ampersand, semicolon
discuss
Which of the following is a server-side Java Script object

Which of the following is a server-side Java Script object


  1. Function
  2. File
  3. FileUpload
  4. Date
discuss
total MCQs: 107

MCQs

107

Views

215

Best Answers

299

Points

5