Title | |
---|---|
Which of the following is correct about JavaScriptWhich of the following is correct about JavaScript?
The answer is:
D. All of the above.
|
|
Which of the following is the correct syntax to print a page using JavaScriptWhich of the following is the correct syntax to print a page using JavaScript?
The answer is:
A. window.print();
|
|
Which of the following type of variable is visible only within a function where it is definedWhich of the following type of variable is visible only within a function where it is defined?
The answer is:
B. local variable
|
|
Which built-in method returns the calling string value converted to upper caseWhich built-in method returns the calling string value converted to upper case?
The answer is:
A. toUpperCase()
|
|
Which of the following function of Number object returns the number's valueWhich of the following function of Number object returns the number's value
The answer is:
B. valueOf()
|
|
Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified valueWhich of the following function of String object returns the index within the calling String object of the first occurrence of the specified value
The answer is:
D. indexOf()
|
|
Which of the following function of String object creates an HTML anchor that is used as a hypertext targetWhich of the following function of String object creates an HTML anchor that is used as a hypertext target
The answer is:
A. anchor()
|
|
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 tagWhich 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?
The answer is:
C. strike()
|
|
Which of the following is true about variable naming conventions in JavaScripWhich of the following is true about variable naming conventions in JavaScript
The answer is:
C. Both of the above.
|
|
Which of the following is the correct syntax to redirect a url using JavaScriptWhich of the following is the correct syntax to redirect a url using JavaScript
The answer is:
D. window.location='http://www.mcqgeek.com';
|
|
Which built-in method returns the character at the specified indexWhich built-in method returns the character at the specified index?
The answer is:
C. charAt()
|
|
Which of the following function of String object returns a number indicating the Unicode value of the character at the given indexWhich of the following function of String object returns a number indicating the Unicode value of the character at the given index?
The answer is:
B. charCodeAt()
|
|
Which of the following function of String object executes the search for a match between a regular expression and a specified stringWhich of the following function of String object executes the search for a match between a regular expression and a specified string?
The answer is:
D. search()
|
|
Which of the following function of String object returns the calling string value converted to upper case while respecting the current localeWhich of the following function of String object returns the calling string value converted to upper case while respecting the current locale?
The answer is:
A. toLocaleUpperCase()
|
|
Which of the following is a valid type of function javascript supportsWhich of the following is a valid type of function javascript supports
The answer is:
C. Both of the above
|
|
How can you get the type of arguments passed to a functionHow can you get the type of arguments passed to a function
The answer is:
A. using typeof operator
|
|
Which of the following function of Array object removes the first element from an array and returns that elementWhich of the following function of Array object removes the first element from an array and returns that element
The answer is:
B. shift()
|
|
___________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.
The answer is:
C. setTimeout ( )
|
|
Java Script entities start with ___________and end with _____________Java Script entities start with ___________and end with _____________.
The answer is:
D. Ampersand, semicolon
|
|
Which of the following is a server-side Java Script objectWhich of the following is a server-side Java Script object
The answer is:
B. File
|
MCQs
Views
Best Answers
Points