You are on page 1of 3

UCA20D01J- Web Development Using Node.

js and Mongo
Practical Examination - Oct/Nov 2022
Question Bank

Q.No Questions

1 A. Write a JavaScript function for a basic calculator


B. Implement EventEmitter Class & its Methods in Node.js

2 A. Write a JavaScript program where the program takes a random


integer between 1 to 10, the user is then prompted to input a guess
number. If the user input matches with guess number, the program
will display a message "Good Work" otherwise display a message
"Not matched".
B. Write a Node.js program to add two numbers using Express.js

3 A. Write a JavaScript program to implement a Digital Clock


B. Write a web application to find factorial of a number using
express.js

4 A. Generate Fibonacci Series using Javascript function.


B. Write a Program to demonstrate Buffer Class and its methods in
Node.js

5 A. Print Triangle of Stars in using Javascript


*
* *
* * *
* *
*
B. Write a web application program Using Query String, Pass two
numbers and perform addition.
6 A. Write a JavaScript program to demonstrate Array Class and its
methods.
B. Write MQL for the following:
(a) Create a Staff Database
(b) Insert 5 documents
(c) delete the staff with id 123
(d) Display all the staff who work in 'CA' department
(e) Display only the Staff id and name fields alone.

7 A. Write a Javascript progam to handle mouse events.


B. Write MQL for the following:
(a) Create a Student Database
(b) Insert 3 documents using Bulk Writing
(c) Project only the name of the students
(d) Display all the students in 'CA' and 'CS' department
(e) List all the collections in the current database

8 A. Write a Node js program to implement Emitter Class


B. Write MQL for the following:
(a) Create a Student Database with Regno, name, age, dept, dob,
cgpa
(b) Insert at least 3 documents using Bulk Writing
(c) Display students whose age is > 20
(d) Sort the students in descending order of their names
(e) Find the students whose name starts with the letter ‘A’
9 A. Write a Write a JavaScript function that reverses a number.
B. Write MongoDB Query for the following:
(a) Create an Employee Database and insert documents
(b) Insert at least 3 documents using Bulk Writing
(c) Display emp who belong to 'Quality' department
(d) Extract the highly paid employee
(e) Drop the Collection

10 A. Develop a Quiz Page using Javascript.


B. Write MongoDB Query for the following:
(a) Create an Employee Database and insert documents
(b) Find the sum of salary paid to all employees
(c) Find all employees whose age is > 25 and < 45
(d) Update the sal of employees by adding Rs.1000 as a bonus
(e) Create an index on empid field

ALL THE BEST

You might also like