Following quiz provides Multiple Choice Questions (MCQs) related to Javascript Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following is true about variable naming conventions in JavaScript?
A - JavaScript variable names must begin with a letter or the underscore character.
Both of the above options are correct.
Q 2 - How can you get the total number of arguments passed to a function?
A - Using args.length property
Using arguments.length property, we can get the total number of arguments passed to a function.
Q 3 - Which built-in method returns the length of the string?
length() method returns the length of the string.
Q 4 - All user-defined objects and built-in objects are descendants of an object called Object?
All user-defined objects and built-in objects are descendants of an object called Object.
Q 5 - Which of the following function of String object returns the character at the specified index?
charAt() − Returns the character at the specified index.
Q 6 - Which of the following function of String object is used to find a match between a regular expression and a string, and to replace the matched substring with a new substring?
replace() − Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
Q 7 - Which of the following function of String object creates a string to be displayed as bold as if it were in a <b> tag?
bold() − Creates a string to be displayed as bold as if it were in a <b> tag.
Q 8 - Which of the following function of String object causes a string to be displayed as a subscript, as if it were in a <sub> tag?
sub() − Causes a string to be displayed as a subscript, as if it were in a <sub> tag.
Q 9 - Which of the following function of Array object creates a new array with the results of calling a provided function on every element in this array?
map() − Creates a new array with the results of calling a provided function on every element in this array.
Q 10 - Which of the following function of Array object applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value?
reduceRight() − Applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.