Unit 5: Interactive Web Development - Subjective Questions

CSE326 — Internet Programming • Practice Questions with Detailed Answers

20 questions

1

Explain loops and iterative programming in JavaScript. Describe the syntax, execution flow, and suitable use cases of for, while, and do...while loops.

2

Describe higher-order functions in JavaScript. Explain how map(), filter(), and reduce() operate, with suitable examples.

3

What is a callback function? Explain synchronous and asynchronous callbacks and discuss their use in interactive web applications.

4

Explain the fundamentals of the Document Object Model (DOM). How does the browser represent an HTML document, and how can JavaScript interact with that representation?

5

Compare common DOM selection methods and explain how DOM elements can be manipulated safely and efficiently.

6

Describe event handling in JavaScript. Explain event listeners, event objects, event propagation, and event delegation.

7

Explain how dynamic content is generated and updated using JavaScript. Describe a suitable process for creating a list from an array of data.

8

Explain important JavaScript accessibility practices for interactive web pages. Include keyboard access, semantic HTML, focus management, and accessible status messages.

9

Describe client-side form validation in JavaScript. Explain the difference between constraint validation and custom validation, and discuss why server-side validation is still necessary.

10

What are regular expressions? Explain their structure and describe how they can be used for form validation in JavaScript.

11

Explain date and time handling in JavaScript. Discuss the Date object, timestamps, formatting, time zones, and common problems in date calculations.

12

Describe audio and video events in HTML5. Explain how JavaScript can control media and respond to playback state changes.

13

Compare local storage and session storage in the Web Storage API. Explain their methods, limitations, and appropriate use cases.

14

Explain the Fetch API and JSON processing. Describe the complete flow for retrieving data, checking errors, converting the response, and updating the DOM.

15

Distinguish between JSON and JavaScript objects. Explain JSON serialization and parsing, including common errors and safe processing practices.

16

Explain the Geolocation API. Describe how to request the user's location, handle success and failure, and address privacy and usability concerns.

17

Describe the HTML Drag and Drop API. Explain the roles of dragstart, dragover, and drop events in implementing a draggable interface.

18

Design a client-side interactive registration form that uses DOM manipulation, event handling, regular expressions, and custom validation. Explain the validation and accessibility workflow.

19

Explain how to build a dynamic data dashboard using Fetch API, JSON, higher-order functions, DOM manipulation, and Web Storage.

20

Compare synchronous and asynchronous operations in interactive web development. Explain how loops, callbacks, promises, and async/await affect browser responsiveness.