The Modern JavaScript Bootcamp (2019) - Object References

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when an object is passed as an argument to a function?
A new object is created with the same properties.
The original object is cloned.
The object is converted to a string.
A reference to the original object is passed.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the expense manager application, what is the initial value of the 'expenses' property?
50
100
0
Undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'add expense' function in the expense manager?
To create a new account
To reset the expenses to zero
To add a specified amount to the expenses
To delete an account
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you assign a new value to an object reference inside a function?
Both the original and new objects are modified.
The reference is broken and points to a new object.
The function throws an error.
The original object is modified.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If 'otherAccount' is set equal to 'myAccount', what happens when you change a property of 'otherAccount'?
Neither is updated.
Only 'otherAccount' is updated.
Only 'myAccount' is updated.
Both 'myAccount' and 'otherAccount' are updated.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of assigning a new object to 'otherAccount' after it was set equal to 'myAccount'?
An error is thrown.
'myAccount' remains unchanged.
Both 'myAccount' and 'otherAccount' point to the new object.
Both objects are deleted.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main takeaway regarding object references in JavaScript?
Object references can be broken by assignment.
Objects are always cloned when passed to functions.
Objects cannot be modified once created.
Functions cannot accept objects as arguments.
Similar Resources on Wayground
4 questions
Modern Web Design with HTML5, CSS3, and JavaScript - Learning More about JavaScript Objects – Part 2

Interactive video
•
University
8 questions
Cyclic garbage collection: Python memory management, Part 2

Interactive video
•
University
2 questions
Cyclic garbage collection: Python memory management, Part 2

Interactive video
•
University
4 questions
Excel VBA Programming The Complete Guide - The Object Data Type

Interactive video
•
University
2 questions
AWS Certified Solutions Architect Associate (SAA-C03) - Use the System

Interactive video
•
University
8 questions
Mastering the Art of Isometric Room Design in Blender 3 - Blender Project Setup

Interactive video
•
University
6 questions
The Complete Java Developer Course: From Beginner to Master - Section Wrap-Up "Introduction to Classes and Objects"

Interactive video
•
University
2 questions
Complete Modern C++ - Project - Part VIII (Upcasting and Downcasting)

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University