You are on page 1of 7

MCQ

1.1 first half uses a callback to console log data from input.txt, however
second one waits at that point until the data is read, so it basically
blocks the thread until file is being read
1.2 We access the url parameter id by req.params.id and then we return
the user with the given id. Before returning the user object is
converted to JSON string using json.stringify().
1.3 Search for the customers with the address specified by q and conerts
into array object then prints the object on console else throws error
1.4 uses a middleware to log time at which request logged and sends
back string things as output
1.5 ( c ) It removes whitespace
1.6 ( c ) It provides the ability to asynchronously exchange data between
Webbrowsers and a Web server.
1.7 ( c ) Response Header
1.8 ( b ) To send and receive bits of data.
1.9 ( b ) SOAP
Q2. CRUD Operation

Inserting Values
Displaying Inserted Values

Update Employee
Enter Updated Value

Display Updated Value


Display All Employee
Delete Employee

After Deleting
Screenshot of Files

You might also like