Table of Contents
Developing Cloud Apps with Node.js and React Week 01 Quiz Answers
Quiz : Graded Quiz
Q1. What quality makes it possible for you to run JavaScript applications without compiling?
- You can use a text editor to develop JavaScript applications.
- All modern browsers support JavaScript.
- JavaScript is an interpreted language.
- The language syntax resembles Java.
Q2. True or false: With client-side JavaScript, Node.js applications process and route web service requests from the client.
- True
- False
Q3. Which of the following applications intercepts the call when JavaScript sends a web service request to the Node.js server?
- JSON
- REST Web Service
- Enterprise Java
- CSS
Q4. What is the best description of Node.js?
- A multithreaded application environment that handles operations through events
- A package for a script file that corresponds to a module
- A server-side programming framework that uses JavaScript as its programming language
- A simple web server that listens to HTTP requests and returns HTTP response messages
Q5. How do you handle operation results with Node.js?
- Use blocking on asynchronous I/O operations
- Write callback functions to handle results when the operations complete
- Specify a relative path to the Node.js script from the module directory
- Create an instance of a web server application
Q6. What do you use the http.createServer function for?
- To create an instance of a web server
- To import a Node.js module
- To specify a main script for your module
- To develop an anonymous function to handle requests and responses
Q7. What is the correspondence between a Node.js module and a script file?
- None
- 4:1
- 1:1
- 2:1
Q8. What do you use the require function for?
- To specify a main script for your module
- To develop an anonymous function to handle requests and responses
- To create an instance of a web server
- To import a Node.js module
Q9. What does adding a property to the implicit exports object do?
- A function returns details about your module.
- An anonymous function is blocked on the Node.js server.
- A function becomes available to Node.js applications that import your module.
- A function returns an object that represents an instance of your module.
Q10. What happens when a module does not have a package.json file?
- The require statement assumes that scripts have a file extension of js.
- Node.js assumes that the main class is named index.js.
- The relative path to the Node.js script changes to an absolute path from the module directory.
- There is no module manifest.
Developing Cloud Apps with Node.js and React Week 02 Quiz Answers
Quiz : Graded Quiz
Q1. What best describes the network operations that Node.js makes?
- Non-blocked operations return immediately without added processing time on the server
- Non-blocked operations return in a synchronized manner with added processing time on the server
- Applications block every network operation to complete at the same time on the server
- Blocked operations return immediately without added processing time on the server
Q2. Before the Node.js framework receives the HTTP response message from the remote web server, it immediately returns a result for the http.request function call. What does this result state?
- The return message will be sent successfully.
- A request is in progress.
- The callback function was called successfully.
- The response message will be sent successfully.
Q3. What might you need to use when sending a request call from a function inside a Node.js module?
- HTTPS
- Markdown
- HTML
- CSS
Q4. What parameter is optional in an http.request?
- Resource variable parameter
- Location function parameter
- Event variable parameter
- Callback function parameter
Q5. What object do Node.js modules in the SDK pass as the first parameter in a callback function?
- Error
- Identity
- Destination
- Location
Q6. What do you pass back in the callback handler to indicate a successful return?
- Error
- Null object
- 404 status code
- Empty string
Q7. Which function calls the resultCallback callback function to return results to the main application?
- http.request()
- aggregate_context()
- step()
- result()
Q8. JSON is the standard format for API data exchange. What relationship does JSON have with Node.js?
- Standard representation of native JavaScript objects
- Common data model folder
- Metadata file
- JSON_SET
Q9. When an error occurs, which state is the promise at?
- Rejected
- Pending
- Aborted
- Resolved
Q10. The axios package handles HTTP requests in Node.js and returns a promise object. The promise object has a method that is called after the promise completes. What method does the promise object use?
- else
- then
- or
- if
Developing Cloud Apps with Node.js and React Week 03 Quiz Answers
Quiz : Graded Quiz
Q1. The Node.js framework doesn’t provide many features for building web apps. What do developers rely on to extend Node.js features?
- External libraries and packages
- JavaScript
- Timely updates
- JSON
Q2. Node.js doesn’t provide a parsing function for which language?
- XML
- JavaScript
- HTML
- JSON
Q3. One disadvantage of manual parsing is that string matching ignores the XML data structure. However, depending on XML data complexity, string matching might be more efficient than what?
- An XML attribute structure
- An XML tree of the data
- No alternative: string matching is never more efficient.
- An XML root element
Q4. Which Node.js package can parse a string of XML elements into a JavaScript object?
- XML-JS
- Async.js
- xml2js
- Expressjs
Q5. Which web application framework is based on the Node.js runtime environment?
- XML-JS
- Express
- Async.js
- JSON
Q6. The Node.js framework treats HTTP requests at a lower network level. In contrast, Express implements an app class for what purpose?
- Access a URL
- Parse through a network path
- Map to a web resource path
- Look up web services
Q7. Which function relies on custom callback functions to parse across web resource path?
- ReadableStream
- createServer()
- http.createServer
- http.IncomingMessage
Q8. After creating the new route handler to handle web application requests, what occurs next?
- Listen to incoming HTTP GET requests
- Pass the parameter location
- Access a variable in the path
- Store values in a location variable
Q9. What do you call to create a web server object to listen for incoming requests on a port?
- app.listen
- http.name
- http.view
- app.request
Q10. After you’ve imported a copy of the Express web application framework, what must you do next?
- Configure a route handler
- Write code
- Reconfigure Node.js
- Create an instance of the app JavaScript object
Developing Cloud Apps with Node.js and React Week 04 Quiz Answers
Quiz : Graded Quiz
Q1. What is EcmaScript or ES?
- Communication standard
- JavaScript Standard
- Programming organization
- Regulated name for JSON
Q2. What is one of the new features in JavaScript ES6?
- Object
- Get
- Arrow functions
- Find
Q3. What is the state of a promise object when the operation executes successfully?
- end
- constant
- pending
- fulfilled
Q4. React is an open source library created and maintained by Facebook and community developers. What is it mainly used to build?
- Frontend Applications
- AI questions
- Accessibility messages
- Error messages
Q5. Facebook provides the Create React App to simplify creating React apps. What must be installed in order to run npx create-react-app with the name of the app you want to create?
- XML editor
- JavaScript
- Node.js
Q6. Functional components are most useful when the component has properties, but what is the restriction?
- Properties can’t have uppercase characters.
- Properties can’t be user-defined.
- The component lifecycle does not require management.
- Properties can’t be passed as parameters to the function.
Q7. What makes class components more preferable than functional components?
- Versatility
- Definition
- Simplicity
- Rigidity
Q8. In the Working with React Components video, what does the incrementCounter method do in the React app?
- Stops the application
- Passes value to the GUI
- Updates state so component is rendered again
- Routes command through component
Q9. As components are mounted there are four methods called, all in the same order. Which method only returns one root element, even if it has or doesn’t have many nested child elements
- render()
- componentDidMount()
- constructor()
- getDerivedStateFromProps()
Q10. As components are updated, five methods are called in the same order. Which method is called every time a change in state occurs?
- getSnapshotBeforeUpdate()
- getDerivedStateFromProps()
- render()
- shouldComponentUpdate()
Get all IBM Full Stack Cloud Developer Professional Certificate Quiz Answers
Introduction to Cloud Computing Coursera Quiz Answers
Introduction to Web Development with HTML, CSS, JavaScript Quiz Answers
Developing Cloud Native Applications Coursera Quiz Answers
Developing Cloud Apps with Node.js and React Coursera Quiz Answers
Introduction to Containers w/ Docker, Kubernetes & OpenShift Quiz Answers
Python for Data Science, AI & Development Coursera Quiz Answers
Python Project for AI & Application Development Coursera Quiz Answers
Developing Applications with SQL, Databases, and Django Quiz Answers
Application Development using Microservices and Serverless Quiz Answers
Full Stack Cloud Development Capstone Project Coursera Quiz Answers