Skip to content

Module Quiz: The Building Blocks of a Program :Mobile Development and JavaScript (Meta iOS Developer Professional Certificate) Answers 2026

Question 1

In the following code snippet, type, model, and color are examples of what?

❌ Arrays
Properties
❌ Strings
❌ Objects

Explanation:
Object ke andar jo key–value pairs hote hain unhe properties kehte hain.


Question 2

True or False: SyntaxError in JavaScript cannot be caught using the try-catch block.

True
❌ False

Explanation:
SyntaxError compile-time par hota hai, isliye try-catch use catch nahi kar sakta.


Question 3

What index for the burger array would return a value of tomato sauce?

❌ 4
❌ 0
3
❌ 1

Explanation:
Arrays zero-indexed hote hain → "tomato sauce" index 3 par hai.


Question 4

In the following code, what data type does start: function() {} represent?

❌ Array
Method
❌ Property
❌ Object

Explanation:
Object ke andar function ko method kehte hain.


Question 5

When the error is thrown, the code will do what?

❌ Print the type of error to the console.
❌ Execute the code inside the throw statement.
❌ Print new Error to the console.
Execute the code inside the catch statement.


Question 6

What error gets thrown when using variables that haven’t been declared?

❌ SyntaxError
❌ RangeError
ReferenceError
❌ TypeError


Question 7

What will be the output of the following code?

(10).toString(100);

❌ .1
❌ undefined
❌ SyntaxError
RangeError

Explanation:
toString() radix sirf 2 se 36 ke beech valid hota hai.


Question 8

The statement below evaluates to which of the following?

const value = null;
console.log(value);

❌ error
❌ undefined
❌ value
null


Question 9

What will be the output of the following code?

var str = "Hello"; str.match("jello");

❌ undefined
❌ SyntaxError
❌ “”
null

Explanation:
match na milne par null return hota hai.


Question 10

The following code block will return what value?

function addTwoNums(a,b) {
try {
console.log(a + b)
} catch(err) {
console.log(err)
}
}

❌ err
❌ ab
❌ There was an error
undefined

Explanation:
Function me koi return statement nahi hai, isliye return value undefined hoti hai.


🧾 Summary Table

Question Correct Answer
Q1 Properties
Q2 True
Q3 3
Q4 Method
Q5 Execute the code inside the catch statement
Q6 ReferenceError
Q7 RangeError
Q8 null
Q9 null
Q10 undefined