0% found this document useful (0 votes)
3 views1 page

Assignment2 WT(MCA312B) Unit 2

Assignment 2

Uploaded by

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

Assignment2 WT(MCA312B) Unit 2

Assignment 2

Uploaded by

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

JECRC University, Jaipur

School of Computer Applications


Assignment II
MCA IIIrd Semester
Subject Name: -Web Technologies
Course Code:MCA312B

Date of Allotment: 13/9/2024


Date of Submission: 19/9/2024

Maximum Marks: 64

Note: Late submissions will not be accepted and will be given zero marks.
Instructions:
1. Attempt all the questions.
2. Illustrate your answers with suitable examples and diagrams, wherever necessary.
3. Write relevant question numbers before writing the answer.

Section 1. (Answer the following questions) (5x2=10marks)

Q.1. What is method to check object is an array or not.


Q.2. Explain internal and external Java script files.
Q.3 Write a JavaScript program that prints "Hello, World!"
Q.4. Define client side and server side scripting.
Q.5. Differentiate between ‘let’ and ‘var’.

Section 2. (Answer the following questions) (3x7=21 marks)


Q.1 a)What is importance of function? Write a function that takes an array of numbers and returns the sum of all its
elements.
b) Write a function that takes a string and returns it reversed. For example, the input "hello" should return "olleh".
Q.2 Create an object representing a person with properties firstName, lastName, and age. Write a function that takes
this object and returns a string introducing the person (e.g., "Hi, I'm John Doe and I'm 25 years old.").
Q.3. Write a function that filters an array of numbers and returns a new array containing only the even numbers.

Section 3. (Answer the following questions) (3x11=33 marks)


Q.1. By using HTML, CSS and JavaScript implement a shopping cart system with features to add items, remove items and
calculate the total price. Use objects to represent items, including properties for the item name, price and quantity.
Implement features to add items to the cart,remove items and calculate the total cost.

Q.2 a) Create a simple HTML page with a button. Write JavaScript to change the button's text when it is clicked.
b) Write a script that creates a new list item and appends it to an existing unordered list in the HTML document.

Q.3 a) Explain with example 2D shapes drawing.


b) Explain in detail the AJAX and dynamic webpage.

You might also like