cs2006_2024T3_Q1_AN.pdf
Application Development - 2 · Quiz 1 · Sep 2024
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
Question 150 MCQ · 2.0 marks
[[IMAGE:31f8ffbe501217de_2_1]]

box
active
box active
box inactive
A published solution is not available for this question yet.
Question 151 MCQ · 2.0 marks
Which of the following is an example of ephemeral state in a web application?
A user's authentication token stored in local storage
A form input value that changes as the user types
The list of favorite items saved in a user's profile
A shopping cart saved between sessions
A published solution is not available for this question yet.
Question 152 MCQ · 3.0 marks
[[IMAGE:31f8ffbe501217de_3_2]]

[[IMAGE:31f8ffbe501217de_3_3]]

[[IMAGE:31f8ffbe501217de_3_4]]

[[IMAGE:31f8ffbe501217de_4_5]]

[[IMAGE:31f8ffbe501217de_4_6]]

A published solution is not available for this question yet.
Question 153 MCQ · 3.0 marks
[[IMAGE:31f8ffbe501217de_4_7]]

undefined says Hello!
Jeremy says Hello!
Taylor says Hello!
ReferenceError
A published solution is not available for this question yet.
Question 154 MCQ · 3.0 marks
[[IMAGE:31f8ffbe501217de_5_8]]

[[IMAGE:31f8ffbe501217de_5_9]]

[[IMAGE:31f8ffbe501217de_5_10]]

[[IMAGE:31f8ffbe501217de_5_11]]

[[IMAGE:31f8ffbe501217de_5_12]]

A published solution is not available for this question yet.
Question 155 MCQ · 3.0 marks
[[IMAGE:31f8ffbe501217de_6_13]]

10 10
undefined 10
10 undefined
undefined undefined
Error
A published solution is not available for this question yet.
Question 156 MCQ · 3.0 marks
[[IMAGE:31f8ffbe501217de_7_14]]

"Initial - Computed"
"Updated - Computed"
"Initial - Computed Updated"
"Updated"
A published solution is not available for this question yet.
Question 157 MCQ · 4.5 marks
[[IMAGE:31f8ffbe501217de_8_15]]

40
80
4040
undefined
A published solution is not available for this question yet.
Question 158 MCQ · 4.5 marks
[[IMAGE:31f8ffbe501217de_9_16]]

[[IMAGE:31f8ffbe501217de_9_17]]

[[IMAGE:31f8ffbe501217de_9_18]]

[[IMAGE:31f8ffbe501217de_10_19]]

[[IMAGE:31f8ffbe501217de_10_20]]

A published solution is not available for this question yet.
Question 159 MCQ · 4.5 marks
[[IMAGE:31f8ffbe501217de_10_21]]

[]
[10, 20, 30]
[20, 40, 60]
[40, 60]
[40]
A published solution is not available for this question yet.
Question 160 MCQ · 4.5 marks
[[IMAGE:31f8ffbe501217de_11_22]]

Item 1, Item 3
Item 2
Item 1, Item 2, Item 3
The list will be empty.
A published solution is not available for this question yet.
Question 161 MSQ · 3.0 marks
Which of the following statements is/are true about JavaScript’s “this” keyword behavior in
different contexts?
In a regular function call, “this” refers to the global object in non-strict mode
and “undefined” in strict mode.
In an arrow function, “this” is lexically inherited from the enclosing execution
context.
Inside a method of an object, “this” always refers to the object itself,
regardless of how the method is called.
The value of “this” can be explicitly set using “call()”, apply(), or “bind()”
methods, inside a method of an object.
A published solution is not available for this question yet.
Question 162 MSQ · 3.0 marks
Considering the differences between “var”, “let”, and “const” in terms of scope, hoisting, and
reassignment, which of the following statements is/are true?
“var” is function-scoped, hoisted, and allows reassignments.
“let” is block-scoped, hoisted, and allows reassignments.
“const” is block-scoped, hoisted, does not allow reassignments, and its value
must be assigned at the time of declaration.
“let” and “const” behave identically except that const variables cannot be
redeclared, while let variables can be redeclared in the same block.
A published solution is not available for this question yet.
Question 163 MSQ · 3.0 marks
Which of the following statements is/are true?
call() and apply() immediately invoke the function, while bind() returns a new
function that can be called later.
call() accepts arguments as a comma-separated list, whereas apply() accepts a
single array of arguments.
bind() permanently sets the “this” context for a function, but the resulting
function must still be explicitly called to execute.
All three methods are used to permanently change the “this” context of
functions.
A published solution is not available for this question yet.
Question 164 MSQ · 2.0 marks
Which of the following scenario(s) represent ephemeral state(s) in a web application?
The user's current scroll position on a webpage.
The user's authentication token, saved in localStorage.
The temporary state of a dropdown menu.
All of these
A published solution is not available for this question yet.
Question 165 MSQ · 2.0 marks
What are the differences between Vue's computed properties and methods?
Computed properties are cached based on their reactive dependencies,
whereas methods are recalculated every time they are called.
Methods can be used to perform operations that do not need to be cached.
Computed properties can be used as methods if they require parameters.
Methods are always reactive and update automatically when their
dependencies change.
**CT**
**Section Id :** 64065369410
**Section Number :** 11
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 14
**Number of Questions to be attempted :** 14
**Section Marks :** 50
**Display Number Panel :** Yes
**Section Negative Marks :** 0
**Group All Questions :** No
**Enable Mark as Answered Mark for Review and**
No
**Clear Response :**
**Section Maximum Duration :** 0
**Section Minimum Duration :** 0
**Section Time In :** Minutes
**Maximum Instruction Time :** 0
A published solution is not available for this question yet.