Skip to content

Category Archives: Web technologies Questions

Which parse method is used to return the object whose properties represent the path ? (A) path.parse() (B) path.Reset() (C) path.countReset() (D) parse.countReset() Answer: (A)… Read More
Which of the below is temporary memory storage that stores the data when it is being moved from one place to another ? (A) Buffer.copy()… Read More
Which fs module in Node.js is used to get file information ? (A) fs.open(path, flags[, mode], callback) (B) fs.stat(path, callback) (C) fs.readFile(path, flags[, mode], callback)… Read More
Which of the below options is correct about package.json in the node.js application? (A) It is present in the root directory of any Node application.… Read More
Which type of application does not prefer the backend as node.js ? (A) Single Page (B) JSON APIs based (C) CPU intensive (D) Data-Intensive Answer:… Read More
Which of the below is the correct syntax for installing the Nodemon in the Node.js application ? (A) npm install -g nodemon (B) node install… Read More
How do we send the message from one socket to another socket in Node.js ? (A) socket.send() (B) socket.get() (C) socket.post() (D) socket.ref() Answer: (A)… Read More
Which below method is used to check whether the given path is an absolute path or not in Node.js ? (A) path.Query() (B) path.render() (C)… Read More
Which of the below method is used to return the current working directory of the process ? (A) cwd(); (B) cmd(); (C) pwd(); (D) None… Read More
What is the default scope in the Node.js application ? (A) Global (B) Local (C) Global Function (D) Local to object Answer: (B)Explanation: Local is… Read More
How do we return a path string from the given path object in Node.js ? (A) path.get() (B) path.set() (C) path.format() (D) path.return() Answer: (C)… Read More
Which template engines can be used with Node.js ? (A) Jade (B) Vash (C) Handlebars (D) All of the above Answer: (C) Explanation: Handlebars are… Read More
Which of the below fs module is used to truncate a file ? (A) fs.delete(fd, len, callback) (B) fs.remove(fd, len, callback) (C) fs.ftruncate(fd, len, callback)… Read More
Which of the below command will show all the modules installed locally ? (A) npm ls -g (B) npm ls (C) node ls -g (D)… Read More
Which of the below modules is not a built-in module in Node.js ? (A) zlib (B) HTTPS (C) dgram (D) fsread Answer: (D) Explanation: The… Read More

Start Your Coding Journey Now!