Skip to content

Graded Quiz :D Post published. View post Dismiss this notice. Add titleeveloping Back-End Apps with Node.js and Express (Cloud Application Development Foundations Specialization) Answers 2025

1. Which of the following is a back-end technology?

❌ CSS
Web API
❌ HTML
❌ Browser

Explanation:
A Web API runs on the server and handles backend logic, unlike CSS/HTML/Browser which are front-end.


2. What quality makes it possible to run JavaScript without compiling?

❌ You can use a text editor
❌ Syntax resembles Java
JavaScript is an interpreted language
❌ All modern browsers support JavaScript

Explanation:
JavaScript is executed directly by an engine (like V8) without compilation.


3. Which application intercepts the call when JS sends a request to Node.js?

❌ JSON
❌ CSS
REST Web Service
❌ Enterprise Java

Explanation:
The Node.js server exposes REST endpoints which intercept and handle client requests.


4. Difference between ES and CommonJS modules

❌ CommonJS is a language, ES is a spec
❌ CommonJS uses .mjs, ES uses .js
ES modules use import, CommonJS uses require()
❌ ES modules are not written in JS

Explanation:

  • ES modules → import/export

  • CommonJS → require/module.exports


5. How to handle operation results in Node.js?

❌ Specify relative path
❌ Block asynchronous I/O
❌ Create web server instance
Write callback functions to handle results when operations complete

Explanation:
Node.js is asynchronous and uses callbacks (and promises) to handle results.


6. Purpose of http.createServer

❌ Specify main script
Create a web server instance
❌ Develop anonymous function only
❌ Import a module

Explanation:
http.createServer() creates a server object that listens for HTTP requests.


7. Which core module is used for I/O?

❌ URL
fs
❌ util
❌ http

Explanation:
fs (File System) provides I/O operations for reading and writing files.


8. Aspect of Node Package Manager (NPM)

❌ Writes metadata to package.json
❌ Creates package.json automatically
Functions as a CLI for installing packages
❌ Manages versioning of source code

Explanation:
NPM’s primary role is installing, removing, and managing packages via CLI.


9. What is the require function used for?

To import a Node.js module
❌ Specify main script
❌ Handle requests/responses
❌ Create a web server

Explanation:
require() loads modules, JSON files, or built-in libraries.


10. What happens when a module does not have package.json?

❌ Relative path becomes absolute
❌ No module manifest
Node.js assumes the main script is index.js
❌ require assumes .js extension

Explanation:
Without package.json, Node defaults to index.js as the entry point.


🧾 SUMMARY TABLE

Q# Correct Answer
1 Web API
2 JavaScript is interpreted
3 REST Web Service
4 ES uses import, CommonJS uses require()
5 Callback functions
6 Create a web server
7 fs
8 CLI for installing packages
9 Import a Node.js module
10 Assumes index.js