Ebazhanov / linkedin-skill-assessments-quizzes

Full reference of LinkedIn answers 2024 for skill assessments (aws-lambda, rest-api, javascript, react, git, html, jquery, mongodb, java, Go, python, machine-learning, power-point) linkedin excel test lösungen, linkedin machine learning test LinkedIn test questions and answers
https://ebazhanov.github.io/linkedin-skill-assessments-quizzes/
GNU Affero General Public License v3.0
28.47k stars 13.36k forks source link

Some critiques of the Node.js tests... Might be useful reading for some.Do not close! #1471

Closed velociwabbit closed 3 years ago

velociwabbit commented 3 years ago

Some of my WTF comments are a bit colorful but this type of test really does nothing but waste time. (apologies for the misspellings but I have to go)

Node.js

Q1. When a javaScript function is invoked (called) in Node, where is a new frame placed?

WTF: This question is ill formed. a javascript function when invoked places an execution context on the stack. The term frame in this context is imprecise and misleading

Q2. Which of the following is a core module in Node?

Q4. Which of the following modules is NOT a built-in module in Node?

Q5. Which fs module method can be used to read the content of a file without buffering it in memory?

Explanation:

From official docs: https://nodejs.org/api/fs.html#fs_dir_read To minimize memory costs, when possible prefer streaming via fs.createReadStream().

Q6. Which of the following DNS module methods uses the underlying OS facilities and does not necessarily perform any network communication?

This is about

Q7. How do you check that a value is a date object in Node?

Q8. Can you create an https web server with Node.js?

Q9. What is the Api that is designed to insulate Addons from changes in the underlying JavaScript engine?

WTF: There is absolutely no reason for any user of Node to have memorized this. This is a perfect example of a question that would only be answered correctly by someone who knows that they do not understand node but read the docs. Which is exactly what the test generators do as well.

Q10. Which CLI option can you use to debug a node script in Chrome DevTools?

Q12. Which of the following is a method on the console object?

Q13. Which object is used to manage the cache of required modules?

Q14. What is the command to silence all process warnings?

Q15. How can you use the promise API with a callback-based function like child_process.exec?

Q16. Which of the following is NOT a Node repl command?

Q17. Which statement is true when you run the code shown below?

require('child_process').fork('script.js');

Q18. If EventEmitter is in scope, which of the following lines of code will have an event emitter emitting a change event?

Q19. Which of the following objects is a stream

Q20. Which module variable holds the resolved aboslute path of the current module file?

21. If the child_process module methods are in scope, what is a current way to execute the command ps -ef using a child process?

Q22.Which console method can be used to print the stack trace to the point of its execution?

Q23.When you run JavaScript in a Node.js application, which of the following elements in a Node.js stack actually executes that JavaScript?

Q24. Looking at the code below, what does the console show?

const http = require('http');
 const hostname = '127.0.0.1'; const port = 3000;
 const server = http.createServer((req, res) => {
  res.statusCode = 200;  res.setHeader("Content-Type", "text/plain");  res.end("Hello World\n");
});
server.listen(port, hostname, () => { console.log(`server running at http://${hostname}:${port}/`); });

Q25.What is the purpose of the path module?

Q26.How do you make an HTTP server object active and listen to requests on certain ports?

Q27.What does the code shown below do?

const fs = require('fs'); const os = require('os');
const system = os.platform(); const user = os.userInfo().username;
fs.appendFile('hello.txt', `Hello ${user} on ${system}`, (err) => { if (err) throw err; console.log('The data was appended to file!');}
);

Q28.How do you start a Node application, if the entry file is indexjs?

Q29.What is the purpose of the file system (fs) module?

Q31. Which of the following is NOT a valid stream in Node?

Q32. You have a script.js file with the single line of code shown here. What will be the output of executing script.js with the node command?

console.log(arguments);

Q33. Which choice is not a valid method on event emitters?

Q34. Which special object is an instance of EventEmitter?Which special object is an instance of null?

Q37. What are the arguments passed to the module wrapper function?

Q39. What does the .node file extension represent?

Q40. What can you export with module.exports?

Q41. Which core module in Node can you use to take advantage of multicore systems?

Q42. Which core Node module has wrappers for OpenSSL methods?

Q43. Which line imports a promise-based version of the readFile method?

Q44. According to the rules of semantic versioning, what does a release incrementing the third number in an npm version string communicate to users about the release changes?

Q45. What does REPL stand for?

WTF: who cares what it stands for... what does it do? That is the correct question

What is missing from this test (assuming that Node is used for fullstack not just as a replacment for the command line)

- any composing related to handling io to a client - use of koa or express for processing client requests - ssl and other certificate handline - debugging using chrome - database interactions - routing - how to respond to http/s requests - basic http header handling - cors , file size, upload download

This is a shallow useless test of transient functionality: An experience node developer would have to look up most of these questions and would have likely never had to use many of them. This is not a good test of the use of node but instead a test of whether someone read the node online docs. In fact it reminds me of a DMV test in which there are deliberately wrong answers to make sure that you read the entire DMV drivers guide before taking the test.

github-actions[bot] commented 3 years ago

Hello @velociwabbit , thank you for submitting an issue! 👍 We highly appreciate it if you work on it as well.