JavaScript

A colorful illustration representing JavaScript programming, featuring elements like coding syntax, regular expressions, and various JavaScript-related icons.

JavaScript Mastery Quiz

Test your knowledge of JavaScript and regular expressions with our engaging 10-question quiz! Designed for developers of all levels, this quiz covers key concepts and best practices in JavaScript programming.

Challenge yourself with questions on:

  • Regular expressions
  • Function scope
  • Class inheritance
  • Webpage manipulation
  • Algorithmic languages
10 Questions2 MinutesCreated by CodingTree142
1. The ‘$’ present in the RegExp object is called a
A. character
B. matcher
C. metacharacter
D. metadata
2. Consider the following statement containing regular expressions " var text = "testing: 1, 2, 3"; var pattern = /\d+/g; " .In order to check if the pattern matches, the statement is
A. text==pattern
B. text.equals(pattern)
C. text.test(pattern)
D. pattern.test(text)
3. The regular expression to match any one character not between the brackets is
A. […].
B. [^].
C. [^…].
D. [\D].
4. What is the return type of typeof for standard JavaScript objects?
A. xml
B. object
C. dom
D. html
5. The scope of a function is also called as
A. The function’s scope
B. Module function
C. Modulated function
D. Private function
6. You can refresh the webpage in JavaScript by using
A. window.reload
B. window.refresh
C. location.reload
D. page.refresh
7. When a class B can extend another class A, we say that
A. A is the superclass and B is the subclass
B. B is the superclass and A is the subclass
C. Both A and B are the superclass
D. Both A and B are the subclass
8. What is the opposite approach to the lexical scoping?
A. Literal scoping
B. Static scoping
C. Dynamic scoping
D. Generic scoping
9. Which of the following uses a lot of CPU cycles?
A. GUI
B. Dynamically generated graphics
C. Statically generated graphics
D. All of the mentioned
10. Which of the algorithmic languages is lexical scoping standardized in?
A. Ada
B. Pascal
C. Modula2
D. All of the mentioned
{"name":"JavaScript", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of JavaScript and regular expressions with our engaging 10-question quiz! Designed for developers of all levels, this quiz covers key concepts and best practices in JavaScript programming.Challenge yourself with questions on:Regular expressionsFunction scopeClass inheritanceWebpage manipulationAlgorithmic languages","img":"https:/images/course4.png"}
Powered by: Quiz Maker