Skip to content

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

Question 1

Which of the following is a framework that can help you run a unit test?

Jest
❌ JavaTest
❌ JavaFrame
❌ JFrame

Explanation:
Jest JavaScript ka popular testing framework hai jo unit tests run karne ke liye use hota hai.


Question 2

When the following test executes, what will the test result be?

❌ Success.
Fail.

Explanation:
multiply(2,2) function sirf a return kar raha hai (2), jabki expectation 4 hai.


Question 3

Which of the following testing types revolves around the idea of having separate, small pieces of code that are easy to test?

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


Question 4

Which of the following describes a measure of what percentage of your code is covered by tests?

❌ TestMeasure
❌ Code coverage
❌ Test%
Test coverage

Explanation:
Test coverage batata hai kitna code tests ke through execute ho raha hai.


Question 5

Node.js is typically used to do which of the following?

❌ Run unit tests
❌ Estimate code coverage
Build web application backends
❌ Download and manage packages


Question 6

Which of the following is testing how parts of your system interact with other parts of your system?

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


Question 7

True or False: You can install packages from the npm repository using the node command.

❌ True
False

Explanation:
Packages install karne ke liye npm command use hota hai, node nahi.


Question 8

Which file lists all your application’s required node packages?

❌ node.json
package.json
❌ pkg.json
❌ npm.json


Question 9

A person on your team wants to help with testing. However, they are not a developer and cannot write code. What type of testing is most suited for them?

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

Explanation:
End-to-end testing real user flow test karta hai, jisme coding knowledge zaroori nahi hoti.


Question 10

Which of the below statements would NOT be a benefit of Mocking?

❌ You can test the front end functionality of your web app by mocking the data as if it came back from a server.
Mocking is a substitute for testing.
❌ Mocks allow you to pretend that users are already there if the backend hasn’t been built yet.
❌ Mocking allows you to separate the code that you are testing from its related dependencies.

Explanation:
Mocking testing ka substitute nahi, balki testing ko easier banata hai.


🧾 Summary Table

Question Correct Answer
Q1 Jest
Q2 Fail
Q3 Unit testing
Q4 Test coverage
Q5 Build web application backends
Q6 Integration testing
Q7 False
Q8 package.json
Q9 End-to-end testing
Q10 Mocking is a substitute for testing