1. The JavaScript language is of …………. type?
A) Object-Oriented
B) Object-based
C) Assembly-language
D) High-level
Correct Answer: Object-based
Explanation : Is JavaScript language an object-based?
2. Which of the following is not a core angular js directive?
A) ng-app
B) ng-model
C) ng-bind
D) ng-state
Correct Answer: ng-state
Explanation : Following are the most common directives: ng-app: This directive starts an AngularJS Application. ng-init: This directive initializes application data. ng-model: This directive defines the model that is variable to be used in AngularJS.
3. AngularJS provides reusable components.
A) True
B) False
Correct Answer: True
Explanation : AngularJS provides reusable components. - True
4. JavaScript is case-sensitive?
A) True
B) False
Correct Answer: True
Explanation : JavaScript is case-sensitive. - True
5. The keyword or property you use to refer to an object is _________
A) object
B) from
C) thes
D) this
Correct Answer: this
Explanation : The keyword or property you use to refer to an object is this.
6. Jquery is a JavaScript library?
A) True
B) False
Correct Answer: True
Explanation : Jquery is a JavaScript library - True
7. What is JavaScript?
A) JavaScript is an assembly language used to make the website interactive
B) JavaScript is a compiled language used to make the website interactive
C) JavaScript is a scripting language used to make the website interactive
D) None of the mentioned
Correct Answer: JavaScript is a scripting language used to make the website interactive
Explanation : JavaScript is a scripting language used to make the website interactive.
8. Which of the following is true about JavaScript?
A) JavaScript is an Object-Based language
B) JavaScript is an Object-Oriented language
C) JavaScript is Assembly-language
D) JavaScript is a High-level language
Correct Answer: JavaScript is an Object-Based language
Explanation : JavaScript is an Object-Based language.
9. Which of the following is not a JavaScript data type?
A) Number type
B) Null type
C) Undefined type
D) All of the mentioned
Correct Answer: All of the mentioned
10. Which of the following can be used to call JavaScript Code Snippet?
A) Triggering Event
B) RMI
C) Function/Method
D) Preprocessor
Correct Answer: Function/Method
Explanation : Can Function/Method be used to call JavaScript Code Snippet.
11. What is the difference between JavaScript and Java?
A) Variables are specific
B) Functions are considered as fields
C) Functions are values, and there is no hard distinction between methods and fields
D) There is no difference
Correct Answer: Functions are values, and there is no hard distinction between methods and fields
Explanation : Functions are values, and there is no hard distinction between methods and fields
12. Which of the following is not an error in JavaScript?
A) Missing of Bracket
B) Syntax error
C) Missing of semicolons
D) Division by zero
Correct Answer: Division by zero
13. the extension of JavaScript file?
A) .htm
B) .js
C) .ajs
D) .css
Correct Answer: .js
Explanation : The extension of the JavaScript file is .js.
14. We cannot put JS code in body tag.
A) True
B) False
Correct Answer: False
15. JavaScript is executed on the web server?
A) True
B) False
Correct Answer: False