Home › MCQs › JavaScript › Module 4 Final Quiz: Objects & Arrays
Back to Topics
PRACTICE • LEARN • GROW

Module 4 Final Quiz: Objects & Arrays MCQs

Solve topic-wise placement questions and improve your skills.

Module 4 Final Quiz: Objects & Arrays Progress
0 of 12 completed
0% Topic Track
You are viewing MCQs in preview mode. Log in to select options, submit answers, and track your progress.
Log In to Answer
1
What is the difference between Array.prototype.slice() and Array.prototype.splice()?
A. slice modifies the array in-place; splice returns a copy
B. slice returns a shallow copy of a portion of an array (non-mutating); splice modifies the array in-place by removing/replacing elements (mutating)
C. They are aliases for the exact same method
D. splice can only add elements; slice can only remove elements

Question Palette

Answered
Current
Not Attempted
Wrong

Quick Actions

Yukti Mascot