Skip to content

Final Graded Quiz: Programming with JavaScript :Mobile Development and JavaScript (Meta iOS Developer Professional Certificate) Answers 2026

Question 1

What will be the output of the following JavaScript?

Green
❌ Blue
❌ syntaxError
❌ Nothing

Explanation:
Condition a == 7 || b == 5 me b == 5 true hai, isliye Green print hoga.


Question 2

❌ 5
❌ 2
7
❌ 3

Explanation:
x += 52 + 5 = 7.


Question 3

❌ Boolean
❌ String
Number
❌ BigInt


Question 4

❌ undefined
❌ Pear
❌ Orange
Apple

Explanation:
x = 20 aur x >= 10 true hai.


Question 5

❌ 2
❌ 0
❌ 5
10

Explanation:
Loop 5 times chala, har baar +25 × 2 = 10.


Question 6

❌ null
❌ result()
undefined
❌ 7

Explanation:
Hoisting ke kaaran var result undefined hota hai jab access kiya jata hai.


Question 7

The function name.
❌ The bracket notation
❌ The dot notation
❌ The assignment operator


Question 8

❌ 100
200
❌ Mileage
❌ 300


Question 9

❌ False
True


Question 10

❌ The name of the method
❌ The target of the event
A string describing the type of event (such as, ‘click’)
❌ A function that will handle the event


Question 11

❌ document.addElement(‘h2’)
document.createElement(‘h2’)
❌ document.buildElement(‘h2’)


Question 12

❌ This syntax is invalid
❌ Invoke function without parentheses
❌ Invoke without unnecessary code
Defines and exports addFive as a Node module


Question 13

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


Question 14

❌ /* * Comment 4 */
❌ \ Comment 1
// Comment 2
❌ ## ## Comment 3 ##


Question 15

❌ booleans
function
❌ numbers
❌ string


Question 16

❌ == compares value & type
❌ === compares & == assigns
❌ == for numbers, === for strings
== compares values, === compares values + data types


Question 17

Jest
❌ JavaFrame
❌ JFrame
❌ JavaTest


Question 18

❌ True
False


Question 19

npm
❌ node
❌ package
❌ pkg


Question 20

❌ False
True


Question 21

Jest Mock functions
❌ Jest Fakes
❌ External mock libraries
❌ Jest Snapshot


Question 22

End-to-end testing
❌ Unit testing
❌ Post-hoc testing
❌ Integration testing


Question 23

❌ let
❌ var
❌ No such declaration
const


Question 24

❌ Bonus overrides getLayers
❌ Console.log prints 2
❌ Bonus cannot be updated
Constructor error → undefined output


Question 25

❌ undefined
meow is replaced by growl
❌ growl replaced by meow
❌ syntaxError


Question 26

2
❌ undefined
❌ [1,2,3,4]
❌ 1


Question 27

True
❌ False


Question 28

❌ JSON.toString
❌ JSON.stringify
❌ JSON.fromString
JSON.parse


Question 29

❌ Object literal
❌ Specific object
❌ Instance of class
Function that creates an object instance


Question 30

Keeps data and functionality grouped in objects
❌ Keeps them separate
❌ Only data grouped
❌ Writing efficient code


🧾 Summary Table

Q Answer
1 Green
2 7
3 Number
4 Apple
5 10
6 undefined
7 Function name missing
8 200
9 True
10 Event type string
11 document.createElement
12 Export Node module
13 console.log(“Hello console!”)
14 // Comment
15 function
16 === compares value & type
17 Jest
18 False
19 npm
20 True
21 Jest Mock functions
22 End-to-end testing
23 const
24 Constructor error
25 growl
26 2
27 True
28 JSON.parse
29 Constructor
30 OOP groups data + behavior