Skip to content

Module Quiz: Introduction to JavaScript :Mobile Development and JavaScript (Meta iOS Developer Professional Certificate) Answers 2026

Question 1

Which of the following selections would be a valid input for the DevTools console in your web browser?

❌ console.log(Hello console!)
console.log(“Hello console!”)
❌ console.package(install)
❌ npm install

Explanation:
Strings ko quotes me likhna zaroori hota hai.


Question 2

// is used to indicate what kind of information in JavaScript?

inline comments
❌ unfinished code
❌ test code
❌ multi-line comments

Explanation:
// single-line (inline) comments ke liye use hota hai.


Question 3

Which data type would you use to store the value “Welcome to Javascript!”?

❌ function
❌ booleans
❌ numbers
string


Question 4

Which is the logical AND operator in JavaScript?

❌ &
❌ \
&&
❌ ||


Question 5

== is the operator for what in JavaScript?

❌ Assignment
❌ NOT
Equality
❌ AND


Question 6

How many times will the code print Hello?

Outer loop: i = 0 → 56 times
Inner loop: j = 0 → 23 times

6 × 3 = 18

❌ 8
❌ 15
❌ 0
18


Question 7

What values of X will NOT cause the console to log Hello?

Condition: i == 3 && j <= X
Here j = 5, so 5 <= X must be true

❌ X = 4
❌ X = 5
X = 0
❌ X = 6

Explanation:
Sirf X = 0 pe condition fail hoti hai.


Question 8

What will print out?

i !== 7 → false
j !== 5 → true
false OR true → true

❌ undefined
Hello
❌ Nothing
❌ Goodbye


Question 9

The result of !false is:

❌ false
❌ syntaxError
true
❌ undefined


Question 10

What will be the output of the code block?

The loop prints: 5 4 3 2 1

❌ undefined
❌ It will count to 5.
❌ i = 0
It will count backwards from 5.


🧾 Summary Table

Question Correct Answer
Q1 console.log(“Hello console!”)
Q2 inline comments
Q3 string
Q4 &&
Q5 Equality
Q6 18
Q7 X = 0
Q8 Hello
Q9 true
Q10 It will count backwards from 5