QUANTUM ACADEMY, KHAMGAON
Polytechnic & Engineering Classes
*Test Series*
Course Code: CO5I Subject & Code: 22519
Date & Time: 14/01/2023 (3:00hr) Max Marks: 70
Unit – 1 , 2 and 3
Instructions: i) All Questions are compulsory.
ii) Illustrate your answers with neat sketches whenever necessary.
iii) Figures to the right indicate full marks.
iv)Assume suitable data, if necessary.
v) Preferably, write the answers in sequential order.
----------------------------------------------------------------------------------------------------------------------------------------------
Q.1 Attempt any Five of the following . 10 Marks
a) Enlist any 4 features of javascript.
b) Define Function and Array with syntax.
c) Write a javascript program to demonstrate the use of charAt() , charCodeAt() and
concat() function.
d) Design a simple login page using form elements.
e) Explain Read-Only element in javascript with example.
f) What is form elements.
g) What is conditional operator in javascript with syntax.
Q.2 Attempt any Three of the following. 12 Marks
a) Explain intrinsic functions with program.
b) Define string in javascript ? Explain any 4 methods with suitable example.
c) write a javascript code to convert a string to a number.
d) Explain all Mouse Events in javascript.
Q.3 Attempt any Three of the following. 12 Marks
a) Explain the control flow statements with their syntax.
b) Explain getter and setter properties in javascript with suitable example.
c) Insert an image into a webpage .Write a script which displays the message when the mouse
is over the image .The co-ordinates of the mouse should be displayed if click attempted on
the image.
d) Explain the following methods of an array.
i. Shift() ii. Pop() iii. Unshift() iv. Push()
Q.4 Attempt any Three of the following. 12 Marks
a) Write a javascript code to demonstrate objects as an associative array.
b) Write a javascript code to changing the background color of the text box as the user enters
some data in it.
c) Explain form tag with all its attributes in details.
d) write a javascript code to evaluate checkbox selected by user.
Q.5 Attempt any TWO of the following. 12 Marks
a) Write a JS code to create three categories – Fruit , Flower and Colour. Based on the
selection of category the items in the option list must get changed.
b) Write a JS code to display 10 elements of an array in sorted order.(Ascending /
Descending)
c) Differentiate between concat() and join() methods of array object with example.
Q.6 Attempt any TWO of the following. 12 Marks
a) Explain confirm() , prompt() and alert() function in details with example.
b) List the operators in javascript and explain logical and comparison operators with example.
c) Write a javascript program which computes , the average marks of the following students
then,this average is used to determine the corresponding grade.
StudentName Marks Range Grade
Shubham 98 <60 E
Vishal 85 <70 D
Pankaj 75 <80 C
Suraj 59 <90 B
Sachin 60 <100 A
========================================================================
*ALL THE BEST*
Shubham Sir’s
Quantum Academy
Polytechnic & Engineering Classes
8421302295 / 9284758917