NODE.JS MOCK TEST NODE.JS MOCK TEST II

Similar documents
NODE.JS MOCK TEST NODE.JS MOCK TEST I

NODE.JS MOCK TEST NODE.JS MOCK TEST IV

MAVEN MOCK TEST MAVEN MOCK TEST I

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST II

PERL MOCK TEST PERL MOCK TEST II

NODE.JS MOCK TEST NODE.JS MOCK TEST III

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

C# MOCK TEST C# MOCK TEST II

MAVEN MOCK TEST MAVEN MOCK TEST IV

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST III

JSP MOCK TEST JSP MOCK TEST III

DB2 MOCK TEST DB2 MOCK TEST I

COBOL MOCK TEST COBOL MOCK TEST III

JAVA MOCK TEST JAVA MOCK TEST II

JAVA MOCK TEST JAVA MOCK TEST IV

JAVA MOCK TEST JAVA MOCK TEST III

HTML5 MOCK TEST HTML5 MOCK TEST I

PYTHON MOCK TEST PYTHON MOCK TEST III

CICS MOCK TEST CICS MOCK TEST I

C# MOCK TEST C# MOCK TEST I

GO MOCK TEST GO MOCK TEST I

HIBERNATE MOCK TEST HIBERNATE MOCK TEST IV

QTP MOCK TEST QTP MOCK TEST II

HIVE MOCK TEST HIVE MOCK TEST III

GWT MOCK TEST GWT MOCK TEST I

JQUERY MOCK TEST JQUERY MOCK TEST III

JAVASCRIPT MOCK TEST JAVASCRIPT MOCK TEST I

MAVEN MOCK TEST MAVEN MOCK TEST III

HIBERNATE MOCK TEST HIBERNATE MOCK TEST I

CSS MOCK TEST CSS MOCK TEST III

EJB MOCK TEST EJB MOCK TEST IV

QC MOCK TEST QC MOCK TEST

ANDROID MOCK TEST ANDROID MOCK TEST IV

HTML5 MOCK TEST HTML5 MOCK TEST IV

VB.NET MOCK TEST VB.NET MOCK TEST III

JDBC MOCK TEST JDBC MOCK TEST IV

Lecture 2 Callbacks, Events, and Asynchronous Programming

VB.NET MOCK TEST VB.NET MOCK TEST I

JCL MOCK TEST JCL MOCK TEST IV

HIBERNATE MOCK TEST HIBERNATE MOCK TEST II

JCL MOCK TEST JCL MOCK TEST III

JSP MOCK TEST JSP MOCK TEST IV

PL/SQL MOCK TEST PL/SQL MOCK TEST IV

MEAN Stack. 1. Introduction. 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts

HBASE MOCK TEST HBASE MOCK TEST III

CSCI 4210 Operating Systems CSCI 6140 Computer Operating Systems Homework 4 (document version 1.1) Sockets and Server Programming using C

NODE.JS - NET MODULE

SERVLETS MOCK TEST SERVLETS MOCK TEST III

QTP MOCK TEST QTP MOCK TEST I

Node.js. Mendel Rosenblum. CS142 Lecture Notes - Node.js

Talend User Component truntask

File Organization Sheet

Files and the Filesystems. Linux Files

Copyright by Object Computing, Inc. (OCI). All rights reserved. Strata

CS609 Final Term Solved MCQs with References Without Repetitions 14/02/2013

Dotstack Porting Guide.

GRAPH THEORY - CONNECTIVITY

Chris Buckett. FOREWORD BY Seth Ladd MANNING 6$03/(&+$37(5

Smashing Node.JS: JavaScript Everywhere

Chapter 7: File-System

File Organization Sheet

Section 3: File I/O, JSON, Generics. Meghan Cowan

Part Four - Storage Management. Chapter 10: File-System Interface

Standards / Extensions C or C++ Dependencies POSIX.1 XPG4 XPG4.2 Single UNIX Specification, Version 3

SystemWorker.exec( )

RCU. ò Walk through two system calls in some detail. ò Open and read. ò Too much code to cover all FS system calls. ò 3 Cases for a dentry:

VFS, Continued. Don Porter CSE 506

C Shell Tutorial. Section 1

Motivation: I/O is Important. CS 537 Lecture 12 File System Interface. File systems

Index. Bare-bones connect application, 125 Binary JSON (BSON), 171. Callback functions asynchronous code ifelse, 199 loops,

Chapter 13: I/O Systems

Chapter 10: File-System Interface

SPRING MOCK TEST SPRING MOCK TEST I

Chapter 10: File-System Interface

Virtual Memory cont d.; File System Interface. 03/30/2007 CSCI 315 Operating Systems Design 1

Introduction. CS3026 Operating Systems Lecture 01

MarkLogic Server. Node.js Application Developer s Guide. MarkLogic 8 February, Copyright 2016 MarkLogic Corporation. All rights reserved.

System that permanently stores data Usually layered on top of a lower-level physical storage medium Divided into logical units called files

Lab 03 - x86-64: atoi

CSCE 156 Computer Science II

bash Execution Control COMP2101 Winter 2019

Lecture 8 (7.5?): Javascript

Institute for Energy Technology OECD Halden Reactor Project. Graphical User Interface Management System. Plugins 1.2.

Acroloop Motion Controller CAcroLite C++ Class

Operating Systems 2014 Assignment 4: File Systems

Intrepid Control Systems, Inc.

VD Interfaces V0.1. Draft 2

System Workers. 1 of 11

1 Apache::File - advanced functions for manipulating

The control of I/O devices is a major concern for OS designers

Chapter 11: File System Implementation. Objectives

OMNIO: A Tool for I/O Recording, Analysis and Replay

File Management. Information Structure 11/5/2013. Why Programmers Need Files

CS 4453 Computer Networks Winter

Alex Young Marc Harter

TOP Server V5 to MicroLogix Using DNP3 Ethernet Driver

Javascript. Some tools for building web- based groupware. Javascript. Javascript. Master Informa-que - Université Paris- Sud 1/15/14

Fundamentals of Python: First Programs. Chapter 4: Strings and Text Files

Contents. Error Message Descriptions... 7

Introduction to I/O. 1-Slide Overview to File Management

Transcription:

http://www.tutorialspoint.com NODE.JS MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Node.js Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. NODE.JS MOCK TEST II Q 1 - Buffer class is a global class and can be accessed in application without importing buffer module. A - true B - false Q 2 - Which of the following code converts a buffer buf to JSON object? A - buf.tojson B - buf.json C - buf.coverttojson D - buf.jsonify Q 3 - Which of the following code gets length of a buffer buf? A - buf.length B - buf.size C - buf.length D - buf.size Q 4 - Which of the following is true about readable stream? A - Readable stream is used for read operation. B - Output of readable stream can be input to a writable stream.

Q 5 - Which of the following is true about writable stream? A - writable stream is used for write operation. B - Output of readable stream can be input to a writable stream. Q 6 - Which of the following is true about Piping streams? A - Piping is a mechanism where we provide output of one stream as the input to another stream. B - Piping is normally used to get data from one stream and to pass output of that stream to another stream. C - There is no limit on piping operations. D - All of the above. Q 7 - Which of the following is true about Chaining streams? A - Chanining is a mechanism to connect output of one stream to another stream and create a chain of multiple stream operations. B - Chanining is normally used with piping operations. Q 8 - Which of the following statement is valid to use a Node module fs in a Node based application? C - package fs; D - import fs; Q 9 - Which of the following is true about File I/O in Node applications? A - Node implements File I/O using simple wrappers around standard POSIX functions. B - Node File System fs module should be imported for File I/O opearations. Q 10 - Which of the following is true about fs module of Node? A - Every method in fs module have synchronous as well as asynchronous form. B - Asynchronous methods of fs module take last parameter as completion function callback and first parameter of the callback function as error.

Q 11 - Which method of fs module is used to open a file? A - fs.openpath, flags[, mode], callback B - fs.openfilepath, flags[, mode], callback C - fs.openpathpath, flags[, mode], callback Q 12 - Which method of fs module is used to get information about file? A - fs.openpath, flags[, mode], callback B - fs.statpath, callback C - fs.readfilepath, flags[, mode], callback Q 13 - Which method of fs module is used to read a file? A - fs.openpath, flags[, mode], callback B - fs.openfilepath, flags[, mode], callback C - fs.openpathpath, flags[, mode], callback D - fs.readfd, buffer, offset, length, position, callback Q 14 - Which method of fs module is used to write a file? A - fs.writepath, flags[, mode], callback B - fs.writefilepath, flags[, mode], callback C - fs.writepathpath, flags[, mode], callback Q 15 - Which method of fs module is used to close a file? A - fs.closefd, callback B - fs.closefilefd, callback C - fs.closepathfd, callback Q 16 - Which method of fs module is used to truncate a file?

A - fs.deletefd, len, callback B - fs.removefd, len, callback C - fs.ftruncatefd, len, callback Q 17 - Which method of fs module is used to delete a file? A - fs.deletefd, len, callback B - fs.removefd, len, callback C - fs.unlinkpath, callback Q 18 - Which method of fs module is used to read a directory? A - fs.readdirectorypath[, mode], callback B - fs.readpath[, mode], callback C - fs.readdirpath, callback Q 19 - Which method of fs module is used to remove a directory? A - fs.deletedirectorypath[, mode], callback B - fs.rmdirpath, callback C - fs.removedirectorypath[, mode], callback Q 20 - Which of the following is true about global objects in Node applications? A - Global objects are global in nature and they are available in all modules. B - Global objects are nore required to be included in application, rather they can be used directly. Q 21 - Which of the following is true about filename global object? A - The filename represents the filename of the code being executed. B - The filename represents the resolved absolute path of code file.

Q 22 - Which of the following is true about dirname global object? A - The dirname represents the name of the directory that the currently executing script resides in. B - The dirname represents the resolved absolute path of code file. Q 23 - Which of the following is true about settimeoutcb, ms global function? A - The settimeoutcb, ms global function is used to run callback cb after at least ms milliseconds. B - The settimeoutcb, ms function returns an opaque value that represents the timer which can be used to clear the timer. Q 24 - Which of the following is true about cleartimeoutt global function? A - The cleartimeoutt global function is used to stop a timer that was previously created with settimeout. B - The cleartimeoutt function returns an opaque value that represents the timer which can be used to clear the timer. Q 25 - Which of the following is true about setintervalcb, ms global function? A - The setintervalcb, ms global function is used to run callback cb repeatedly after at least ms milliseconds. B - The setintervalcb, ms method returns an opaque value that represents the timer which can be used to clear the timer using the function clearintervalt. ANSWER SHEET Question Number Answer Key 1 A 2 A 3 A 4 C

5 C 6 D 7 C 8 A 9 C 10 C 11 A 12 B 13 D 14 B 15 A 16 C 17 C 18 C 19 B 20 C 21 C 22 A 23 C 24 A 25 C Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js