Developing Cloud Apps with Node.js and React All Week Quiz Answers | IBM

Developing Cloud Apps with Node.js and React All Week Quiz Answers  IBM

Developing Cloud Apps with Node.js and React 

All Week Quiz Answers | IBM


Graded Quiz


Question 1)

What quality makes it possible for you to run JavaScript applications without compiling ?

  • JavaScript is an interpreted language. 



Question 2)

True or false: With client-side JavaScript, Node.js applications process and route web service requests from the client.

  • False



Question 3)

Which of the following applications intercepts the call when JavaScript sends a web service request to the Node.js server ?

  • REST Web Service


Question 4)

What is the best description of Node.js ?

  • A server-side programming framework that uses JavaScript as its programming language 



Question 5)

How do you handle operation results with Node.js ?

  • Write callback functions to handle results when the operations complete



Question 6)

What do you use the http.createServer function for ?

  • To create an instance of a web server



Question 7)

What is the correspondence between a Node.js module and a script file ?

  • 1:1



Question 8)

What do you use the require function for ?

  • To import a Node.js module



Question 9)

What does adding a property to the implicit exports object do ?

  • A function becomes available to Node.js applications that import your module. 


Question 10)

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

  • Node.js assumes that the main class is named index.js. 







Graded Quiz


Question 1)
What best describes the network operations that Node.js makes ?
  • Non-blocked operations return immediately without added processing time on the server


Question 2)
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 ?
  • A request is in progress.


Question 3)
What might you need to use when sending a request call from a function inside a Node.js module ?
  • HTTPS


Question 4)
What parameter is optional in an http.request ?
  • Callback function parameter


Question 5)
What object do Node.js modules in the SDK pass as the first parameter in a callback function ?
  • Error


Question 6)
What do you pass back in the callback handler to indicate a successful return ?
  • Null object


Question 7)
Which function calls the resultCallback callback function to return results to the main application ?
  • http.request()


Question 8)
JSON is the standard format for API data exchange. What relationship does JSON have with Node.js ?
  • Standard representation of native JavaScript objects


Question 9)
When an error occurs, which state is the promise at ?
  • Rejected


Question 10)
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 ?
  • then






Graded Quiz



Question 1)
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


Question 2)
Node.js doesn't provide a parsing function for which language ?
  • XML 



Question 3)
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 tree of the data



Question 4
Which Node.js package can parse a string of XML elements into a JavaScript object ?
  • xml2js


Question 5)
Which web application framework is based on the Node.js runtime environment ?
  • Express


Question 6)
The Node.js framework treats HTTP requests at a lower network level. In contrast, Express implements an app class for what purpose ?
  • Map to a web resource path


Question 7
Which function relies on custom callback functions to parse across web resource path ?
  • http.createServer


Question 8)
After creating the new route handler to handle web application requests, what occurs next ?
Listen to incoming HTTP GET requests



Question 9)
What do you call to create a web server object to listen for incoming requests on a port ?
  • app.listen


Question 10)
After you've imported a copy of the Express web application framework, what must you do next ?
  • Create an instance of the app JavaScript object






Graded Quiz



Question 1)
What is EcmaScript or ES ?
  • JavaScript Standard


Question 2)
What is one of the new features in JavaScript ES6 ?
  • Arrow functions


Question 3)
What is the state of a promise object when the operation executes successfully ?
  • fulfilled


Question 4)
React is an open source library created and maintained by Facebook and community developers. What is it mainly used to build ?
  • Frontend Applications


Question 5)
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 ?
  • Node.js


Question 6)
Functional components are most useful when the component has properties, but what is the restriction ?
  • The component lifecycle does not require management.


Question 7)
What makes class components more preferable than functional components ?
  • Versatility


Question 8)
In the Working with React Components video, what does the incrementCounter method do in the React app ?
  • Updates state so component is rendered again


Question 9)
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()


Question 10)
As components are updated, five methods are called in the same order. Which method is called every time a change in state occurs ?
  • shouldComponentUpdate()





Post a Comment

1 Comments

  1. Nicely Described! To support the demand for node.js app development, I would also like to share that, 43% of Node JS devs use it for enterprise applications and 85% use it primarily for web app development in 2022. Constantly, node js development companies are rising rapidly with the increasing demand of node.js development services.

    ReplyDelete