19 Questions
What is the main characteristic of objects in object-oriented programming?
They have individual attributes and responsibilities
What is the advantage of using object-oriented programming?
Encapsulation/information hiding
What is the weakness of using object-oriented programming?
Can be overkill for limited applications
What are the attributes of objects in JavaScript?
Object prototype, class, extensible flag
Which category do arrays and functions belong to in JavaScript?
Native objects
What is the purpose of an extensible flag for objects?
Specifies whether new properties can be added
What is JSON primarily used for?
Data interchange
What is the main benefit of defining your own objects in JavaScript?
To represent data more accurately and efficiently
What does 'message passing' refer to in object-oriented programming?
The way objects communicate by sending and receiving data
What does the object prototype reference in JavaScript?
The object properties inherited from its parent object
What is the purpose of property attributes in JavaScript?
To control the behavior of the property like writeability, enumerability, and configurability
In JavaScript, what is the purpose of dot notation when accessing object properties?
To access existing object properties
What is the purpose of the 'hasOwnProperty' method in JavaScript when looping through object properties?
To check if a specific property exists on the object
What is unique about JavaScript strings compared to other programming languages?
They have a property called length
What does the 'modifier' in regular expressions specify?
Various matching behaviors such as case-insensitive or multi-line matching
What is the purpose of predefined character classes in regular expressions?
To represent special characters like space or digits
What is the purpose of using the 'new' keyword when creating JavaScript strings?
To convert existing strings into objects
What is the purpose of the 'loop' in JavaScript arrays?
To perform a set of instructions repeatedly for each element in the array
10
This one is correct.
Recap last week's topics, share your learning and discuss the lab session. Learn about the characteristics of objects, defining your own objects, JSON, and Ajax in today's session.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free