0% found this document useful (0 votes)
31 views

Advance Javascript

Uploaded by

suryajoshi617
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Advance Javascript

Uploaded by

suryajoshi617
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Roll No. …………………..

MCA–303(DE1)
M. C. A. (Third Semester)
EXAMINATION, 2023-24
ADVANCE JAVASCRIPT
1
Time : 22 Hours

Maximum Marks : 60

Note : Attempt all questions.

Section—A

1. Multiple choice questions : 1 each

(i) Which of the following statements is correct ?

(CO1, BL-2)

(a) js is Server Side Language.

(b) js is the Client Side Language.

(c) js is both Server Side and Client Side


Language.

(d) None of the above

P. T. O.
[2] MCA–303(DE1)

(ii) In which language is Node.js written ?

(CO1, BL-1)

(a) JavaScript

(b) C

(c) C++

(d) All of the above

(iii) The Node.js modules can be exposed using :

(CO-2, BL-2)

(a) expose

(b) module

(c) exports

(d) All of the above

(iv) What is the best practice to do in your code to


improve the performance of your application ?

(CO2, BL-2)

(a) Using gzip compression.

(b) Don’t use synchronous functions.

(c) Do logging correctly.

(d) Handle exceptions properly.


[3] MCA–303(DE1)

(v) A query may include a ................. that specifies


the fields from the matching documents to return.
(CO3, BL-1)
(a) selection
(b) projection
(c) union
(d) None of the mentioned
(vi) In MongoDB, write operations are atomic at the
................. level. (CO3, BL-3)
(a) collection
(b) row
(c) documents
(d) All of the mentioned
(vii) Which of the following is not a NoSQL database ?
(CO4, BL-2)
(a) SQL Server
(b) MongoDB
(c) Cassandra
(d) None of the mentioned
(viii) Who is credited as the developer of Express.js ?
(CO3, BL-2)
(a) Larry Wall
(b) Rich Hickey
(c) T. J. Holowaychuk
(d) Rob Pike

P. T. O.
[4] MCA–303(DE1)

(ix) What is the way to store local variables that can


be accessed within the application ? (CO3, BL-3)

(a) Using Config file

(b) Using database

(c) Using app.locals

(d) Using app.storage

(x) In Express.js, the method app.all(path, callback


[, callback ...]) can accept all HTTP methods.

(CO5, BL-2)

(a) False

(b) True

(c) Insufficient data

(d) None of the above

(xi) What is the meaning of templating in Express.js ?

(CO5, BL-2)

(a) Pug

(b) EJS

(c) Mustache

(d) All of the above


[5] MCA–303(DE1)

(xii) Which of the following is the correct syntax for


writing AngularJS expressions ? (CO5, BL-3)
(a) (expression)
(b) {{expression}}
(c) {{{expression}}}
(d) [expression]

2. Attempt any four of the following (Short answer type


questions) : 3 each
(a) Discuss about Node.js modules. (CO1, BL-3)
(b) How is JSON objected handled in JavaScript ?
(CO2, BL-4)
(c) How is data model created in mongoDB ?
(CO3, BL-2)
(d) Discuss the role of express.js. (CO4, BL-3)
(e) Describe the process of dependency injection in
Angular. (CO5, BL-2)

Section—B

3. Attempt any two of the following : 6 each


(a) Discuss callback function in JavaScript. Write
script to implement the callback functions.
(CO1, BL-6)

P. T. O.
[6] MCA–303(DE1)

(b) Write a Node.js Script to implement Client-


Server Model. (CO2, BL-6)

(c) Discuss the process of creating data model,


collections and documents in mongoDB.

(CO3, BL-6)

4. Attempt any two of the following : 6 each

(a) How request and response objects are handled in


express.js ? Also write a script to implement
request and response object. (CO4, BL-4)

(b) Explain in detail the life cycle of angular.js.

(CO5, BL-2)

(c) How JavaScript objects are created and handled ?


Write JavaScript to implement objects.

(CO1, BL-4)

5. Attempt any two of the following : 6 each

(a) Discuss the ‘fs’ module in Node.js. Write a script


to implement read and write operations.

(CO2, BL-5)
[7] MCA–303(DE1)

(b) Differentiate between MongoDB and Mongoose.


Write script to implement database connection
using Mongoose. (CO3, BL-5)

(c) How are POST and GET requests implemented in


express.js ? (CO5, BL-3)

MCA–303(DE1) 50

P. T. O.

You might also like