Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Total No. of Questions: 5] SEAT No.

38
PA-1976 [5954]-404
[Total No. of Pages : 2

ic-
SY B.B.A. (C.A.)

tat
3s
CA - 404 : NODE JS

2:0
(2019 Pattern) (Semester-IV)

31 1
1
3:2
1/2 02
Time : 2 ½Hours] [Max. Marks : 70
Instructions to the candidates:
1
02
1) All questions are compulsory.
8 1 P0

2) Figures to the right indicate full marks.


A
8/0
8.7 CA

Q1) Answer the following (any Eight): [8×2=16]

38
7.3

a) What is the command to initialize node package manager (NPM)? write

ic-
it’s syntax.

tat
3s
.24

b) What is REPL?

2:0
49

11
c) List any four core modules of node. JS. 3:2
02

d) List any two methods included under path module of node. JS.
31

e) For which tasks a File System module is used for?


01
02

f) Write a command to add dependency “express” using NPM.


1/2
AP
8/0

g) Write a command to install MYSOL Package by using NPM.


CA
81

h) Write down steps to handle http requests while creating web server using

38
7.3

node. JS.
-
tic
8.7

i) Write any two advantages of node. JS.


sta
.24

j) Write any two functions of Buffer used in node. JS.


:03
49

11
:22
02
13

Q2) Answer the following (any Four) [4×4=16]


23
1

a) Write a Program to update table records using node. JS and MySQL


8 1 P0
/20

database.
01
A

b) Explain Node.JS Process Model with the help of diagram.


8/
CA

c) How does Node.JS handles a file request.


7.3

d) What is the Purpose of object module experts in node.JS?


8.7

e) Explain LC. readfile () method for all Possible ralves of options?


.24
49

P.T.O.
Q3) Answer the following (any four) [4×4=16]

38
a) Write a Program which uses addlistener ( ) method of Event Emmitter

ic-
class.

tat
b) Write a short note on NPM.

3s
c) Write a Program to delete table records using node.JS and MySQL

2:0
database.

31 1
1
3:2
d) How do you install Packages locally using NPM. Explain with an example.

1/2 02
e) Compare Traditional web. server model and Node.JS Process model.
1
02
8 1 P0
A

Q4) Answer the following (any four) [4×4=16]


8/0
8.7 CA

a) Write a Program to use SoL SELECT very to show data from a table

38
using node. JS and MySoL database.
7.3

ic-
b) Explain steps to install Node.JS on windows.

tat
c) Write a Program to write to a file in node.JS

3s
.24

d) How to add dependency into Package JS on?

2:0
49

e) Write a Program to calcolate factorial of given number using function.


11
3:2
02

Q5) Answer the following (any two) [2×3=6]


31
01

a) Explain the meaning, purpose, steps to execute and output of below


02

program:
1/2
AP

var http = require (‘http’);


8/0
CA

http. create server (function (req, res){


81

res. write head (200, {‘content - Type’ : ‘text/htm’ });

38
7.3

-
res. end (‘Hello world’); tic
8.7

}) listen (8080);
sta
.24

b) Explain working of writeHead ( )


:03
49

c) Explain Inheriting events with suitable example.


11
:22
02
13
23
1


8 1 P0
/20
01
A
8/
CA
7.3
8.7
.24
49

[5954]-404 2

You might also like