MauryaHub PYQ Practice

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]]
Source diagram or notation
  1. box
  2. active
  3. box active
  4. 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?
  1. A user's authentication token stored in local storage
  2. A form input value that changes as the user types
  3. The list of favorite items saved in a user's profile
  4. 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]]
Source diagram or notation
  1. [[IMAGE:31f8ffbe501217de_3_3]]
    Source diagram or notation
  2. [[IMAGE:31f8ffbe501217de_3_4]]
    Source diagram or notation
  3. [[IMAGE:31f8ffbe501217de_4_5]]
    Source diagram or notation
  4. [[IMAGE:31f8ffbe501217de_4_6]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 153 MCQ · 3.0 marks

[[IMAGE:31f8ffbe501217de_4_7]]
Source diagram or notation
  1. undefined says Hello!
  2. Jeremy says Hello!
  3. Taylor says Hello!
  4. ReferenceError

A published solution is not available for this question yet.

Question 154 MCQ · 3.0 marks

[[IMAGE:31f8ffbe501217de_5_8]]
Source diagram or notation
  1. [[IMAGE:31f8ffbe501217de_5_9]]
    Source diagram or notation
  2. [[IMAGE:31f8ffbe501217de_5_10]]
    Source diagram or notation
  3. [[IMAGE:31f8ffbe501217de_5_11]]
    Source diagram or notation
  4. [[IMAGE:31f8ffbe501217de_5_12]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 155 MCQ · 3.0 marks

[[IMAGE:31f8ffbe501217de_6_13]]
Source diagram or notation
  1. 10 10
  2. undefined 10
  3. 10 undefined
  4. undefined undefined
  5. Error

A published solution is not available for this question yet.

Question 156 MCQ · 3.0 marks

[[IMAGE:31f8ffbe501217de_7_14]]
Source diagram or notation
  1. "Initial - Computed"
  2. "Updated - Computed"
  3. "Initial - Computed Updated"
  4. "Updated"

A published solution is not available for this question yet.

Question 157 MCQ · 4.5 marks

[[IMAGE:31f8ffbe501217de_8_15]]
Source diagram or notation
  1. 40
  2. 80
  3. 4040
  4. undefined

A published solution is not available for this question yet.

Question 158 MCQ · 4.5 marks

[[IMAGE:31f8ffbe501217de_9_16]]
Source diagram or notation
  1. [[IMAGE:31f8ffbe501217de_9_17]]
    Source diagram or notation
  2. [[IMAGE:31f8ffbe501217de_9_18]]
    Source diagram or notation
  3. [[IMAGE:31f8ffbe501217de_10_19]]
    Source diagram or notation
  4. [[IMAGE:31f8ffbe501217de_10_20]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 159 MCQ · 4.5 marks

[[IMAGE:31f8ffbe501217de_10_21]]
Source diagram or notation
  1. []
  2. [10, 20, 30]
  3. [20, 40, 60]
  4. [40, 60]
  5. [40]

A published solution is not available for this question yet.

Question 160 MCQ · 4.5 marks

[[IMAGE:31f8ffbe501217de_11_22]]
Source diagram or notation
  1. Item 1, Item 3
  2. Item 2
  3. Item 1, Item 2, Item 3
  4. 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?
  1. In a regular function call, “this” refers to the global object in non-strict mode and “undefined” in strict mode.
  2. In an arrow function, “this” is lexically inherited from the enclosing execution context.
  3. Inside a method of an object, “this” always refers to the object itself, regardless of how the method is called.
  4. 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?
  1. “var” is function-scoped, hoisted, and allows reassignments.
  2. “let” is block-scoped, hoisted, and allows reassignments.
  3. “const” is block-scoped, hoisted, does not allow reassignments, and its value must be assigned at the time of declaration.
  4. “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?
  1. call() and apply() immediately invoke the function, while bind() returns a new function that can be called later.
  2. call() accepts arguments as a comma-separated list, whereas apply() accepts a single array of arguments.
  3. bind() permanently sets the “this” context for a function, but the resulting function must still be explicitly called to execute.
  4. 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?
  1. The user's current scroll position on a webpage.
  2. The user's authentication token, saved in localStorage.
  3. The temporary state of a dropdown menu.
  4. 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?
  1. Computed properties are cached based on their reactive dependencies, whereas methods are recalculated every time they are called.
  2. Methods can be used to perform operations that do not need to be cached.
  3. Computed properties can be used as methods if they require parameters.
  4. 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.