Exam Stash

Web Programming: question bank, Modules 1 to 3, with PYQ marks

XLSX readable page or the Excel file · 80 KB

82 questions, converted from the Excel file so it reads on a phone. Colours and notes are the ones Harsh kept in the sheet.

Colour key, as written in this sheet

  • Red means could be 2 marks / 5marks
  • Blue means strictly PYQs

2 marks

  1. 1

    Describe the role of the <canvas> element in HTML5. Provide an example where it might be used.

    CO1 2025+ESE

  2. 2

    Differentiate between the <audio> and <video> tags in HTML5. Also provide their syntax

    CO1

  3. 3

    Describe the role of forms in HTML. Mention two input elements commonly used in forms.

    CO1

  4. 4

    Explain the purpose of semantic elements in HTML5. Provide two examples.

    CO1 2025

  5. 5

    List down HTML Attributes for image tag with example

    CO1 2025

  6. 6

    Write the HTML code to create following table with rows and columns, and add headers for each column.




    CO1

    Picture from the sheet for question 6
  7. 7

    Explain the types of web pages

    CO1

5 marks

  1. 8

    Differentiate between the <div> and <span> tags in HTML. Provide an example of each.

    CO1

  2. 9

    What is Web Messaging in HTML5?

    CO1

  3. 10

    Explain the sturcture of the HTML

    CO1

  4. 11

    Explain in detail about ordered and unordered list in HTML

    CO1

  5. 12

    Examine the advantages of using HTML5 semantic elements over traditional non-semantic elements and analyze how they improve accessibility and SEO with examples.

    CO1

  6. 13

    Design an HTML form with fields for name, email, and a text area for comments. Include validation for the email field to ensure it is in the correct format.

    CO1

    Picture from the sheet for question 13
  7. 14

    Explain the working of the Geolocation API in HTML5 and analyze how it provides location-based information.

    CO1

  8. 15

    Examine the roles of dragstart, dragover, and drop events in the HTML5 Drag & Drop API and illustrate their interactions with an example.

    CO1

  9. 16

    Write an SVG program to generate a circle with coordinates (50,50) and radius 20 within a canvas of 100x100 px.

    CO1 ESE

    Picture from the sheet for question 16
  10. 17


    Draw a red rectangle on an HTML5 <canvas> starting from (0,0) with width 150 and height 75 using JavaScript code.

    CO1

    Picture from the sheet for question 17

10 marks

  1. 18

    Create an SVG (Scalable Vector Graphics) element that draws a simple representation of a house. The house should include a rectangular base for the building, a triangular roof, and at least one rectangular window.

    CO1

  2. 19

    Design and implement an HTML form for user registration with fields for username, password, email, and phone number. Include client-side validation using HTML5 attributes. Describe how each validation attribute improves user input and form reliability.

    CO1

  3. 20

    Discuss the impact of HTML5's Geolocation API on web applications. Provide a code example that requests the user's location and displays it on the webpage.

    CO1

  4. 21

    Explain the process of embedding multimedia content in HTML5. Provide examples of embedding both a video and an audio file, and describe how to handle different formats and browser compatibility.

    CO1

  5. 22

    Describe the purpose and usage of the "meta" tag in HTML. How does it impact the web page?

    CO1

  6. 23

    Create a complete HTML5 webpage that includes a header, navigation bar, main content area with two sections, and a footer. Use semantic elements and ensure the page is responsive. Explain how each part contributes to the structure and functionality of the page.

    CO1

    Picture from the sheet for question 23
  7. 24

    Build a personal portfolio using HTML and CSS to showcase your skills and projects.

    CO1

2 marks

  1. 25

    Discuss what does CSS stand for?

    CO2 2025

  2. 26

    Write a CSS rule to change the background color of a paragraph to blue

    CO2 2025

  3. 27

    What is the purpose of the transform property in CSS?

    CO2

  4. 28

    Discuss is Bootstrap and Discuss is its primary purpose? Name the two main components of Bootstrap's grid system.

    CO2

  5. 29

    Describe the difference between "em" and "rem" units in CSS.

    CO2

  6. 30

    In how many ways can we add CSS to our HTML file?

    CO2

  7. 31

    explain the difference between class and ID selectors

    CO2

  8. 32

    How can you target h3 and h2 with the same styling?

    CO2

  9. 33

    Discuss in detail about Font and Text styles in CSS?

    CO2 ESE

5 marks

  1. 34

    Explain the box model and how margins, borders, padding, and content interact.

    CO2

  2. 35

    Critique the advantages and disadvantages of using inline styles versus external stylesheets

    CO2

  3. 36

    "Describe how you can change the color of hyperlinks in different states (normal, hover, active, and visited) using CSS. Provide an example of CSS code that demonstrates this."

    CO2

  4. 37

    How would you change the font color of a hyperlink when a user hovers over it TO RED COLOR

    CO2

  5. 38

    Specify how hidden, overflowed content should be signaled to the user and how it can be display the content when hover over the element.

    CO2

  6. 39

    Compare and contrast relative and absolute positioning in CSS.

    CO2 ESE

  7. 40

    Explain advance CSS Selectors in CSS

    CO2

  8. 41

    An e-commerce company wants a product listing page with the following requirements:
    A full-width promotional banner at the top.
    A grid layout for products (4 products per row on large screens, 2 per row on tablets, and 1 per row on mobile).
    A sticky navigation bar that stays visible while scrolling.
    A footer with links to policies and contact details.
    Write the HTML and CSS code to implement this layout.

    CO2

  9. 42

    Describe the difference between Bootstrap’s container, container-fluid, and container-{breakpoint} classes. Provide examples of when each should be used.

    CO2

10 marks

  1. 43

    Design a CSS layout for a two-column webpage with a header, navigation bar, content area, and footer FOR GROCERY SHOPPING

    CO2

  2. 44

    Design a Portfolio Page: A portfolio page is a creative way to present your resume. Design a professional and attractive page using semantic HTML5 elements. Include following Key Features: Header section with name and personal information,Photo, links, videos, or images of your works,Section for areas of interest and Footer with social media handles

    CO2

  3. 45

    Develop a CSS rule to center an image horizontally within its container

    CO2

  4. 46

    Develop a CSS animation for a button that includes a smooth transition for hover effects, such as changing color, scaling, and adding a shadow. Provide the CSS code for the animation and explain the keyframes and transition properties used.

    CO2

  5. 47

    Design a webpage layout that combines fixed, fluid, and responsive elements using advanced positioning techniques in CSS.

    CO2

  6. 48

    Implement a table style using CSS to alternate the background colors of even and odd rows in terms of BLACK (ODD) & RED (EVEN)

    CO2

  7. 49

    You are tasked with designing a simple webpage that contains a navigation bar at the top and a footer at the bottom, with a responsive layout that adapts to different screen sizes.
    Instructions:
    Create the basic structure of the webpage using HTML, including the navigation bar and footer.
    Apply CSS styles to ensure the navigation bar is horizontally aligned and fixed at the top of the page.

    CO2 2025

  8. 50

    You are tasked with designing a navigation bar for a website using Bootstrap that includes a dropdown menu for "Services" and "About Us".

    CO2

  9. 51

    Develop a responsive student profile card using HTML5 and CSS3. The card should display the following information:
    Student's name, profile image, .
    biodata section for Grades and Achievements.
    GitHub project links section

    CO2

  10. 52

    You are designing a webpage with a form that contains multiple input fields (e.g., name, email, password) and a submit button. The form is required to have a clean, aligned look with each input field labeled clearly.
    Instructions:
    Write the HTML code for the form, including appropriate labels for each input field.
    Apply CSS to ensure that the input fields are aligned vertically with consistent spacing and that the submit button is styled to stand out.

    CO2 2025

  11. 53

    Design College Information Site: Describes activities happening on campus, including academic and cultural events. This could also feature a special page for alumni.
    Include following Key Elements: Headings, paragraphs, line breaks, bold, italics , Navigation tags and Hyperlinks

    CO2 ESE

2 marks

  1. 54

    List 5 features of JavaScript.

    CO3

  2. 55

    How does JavaScript function differently on the client side versus the server side? Discuss the roles and use cases for each.

    CO3

  3. 56

    Justify “JavaScript” is an event-driven programming”

    CO3

  4. 57

    What is React?

    CO3

  5. 58

    What are the major features of React?

    CO3

  6. 59

    What Do you mean by events and event handlers in JavaScript?

    CO3

  7. 60

    Explain the difference between Javascript and Typescript

    CO3

  8. 61

    Explain why TypeScript code needs to be converted (transpiled) into JavaScript before execution in web browsers

    CO3

  9. 62

    What is the use of pop up boxes in java script?

    CO3 ESE

5 marks

  1. 63

    Where is JavaScript written? Write an example demonstrating the “welcome” message in JavaScript

    CO3

  2. 64

    Create a registration form using HTML5 and validate the form using JavaScript.

    CO3

  3. 65

    How to loop an array in JavaScript? Give example

    CO3

  4. 66

    Discuss what are functions in JavaScript?

    CO3

  5. 67

    Design a BMI calculator using Javascript

    CO3 2025

  6. 68

    Discuss in detail about How to create components in React?

    CO3 ESE

  7. 69

    Which decision-making statements are used in JavaScript?

    CO3

  8. 70

    Explain the concepts of Interfaces and Classes in TypeScript with suitable examples.

    CO3

  9. 71

    Explain the concept of React Hooks in detail with suitable examples.

    CO3

  10. 72

    You are tasked with creating a simple React application that allows users to add items to a shopping list. The application should display a list of items and allow users to add new items through an input field. When a user submits the form, the new item should appear in the list.

    CO3 2025

  11. 73

    Write a JavaScript function calculateBMI that takes a person's weight (in kilograms) and height (in meters) and calculates their BMI. The function should return the BMI value rounded to two decimal places.

    CO3

  12. 74

    For To-Do List Create a functional component App using REACT with:
    A text input field to enter a task.
    A button to add the task to the list.
    A list that displays added tasks.
    Each task should have a checkbox to mark it as completed.
    Optionally, a button to clear completed tasks.

    CO3

  13. 75

    Develop a basic HTML form and validate the input using JavaScript. Ensure that:
    The name field is not empty.
    The email field contains a valid email format.
    The phone number field contains only numbers and is of a valid length.

    CO3

10 marks

  1. 76

    Write JavaScript code that validates a username and password against user name "Siddhi" and password "abc"

    CO3

  2. 77

    List out Difference between Element and Component in React JS

    CO3

  3. 78

    Explain briefly about Built in Java script Objects?

    CO3

  4. 79

    Write a JavaScript program to find greatest of three given numbers?

    CO3 ESE

  5. 80

    Explain in detail about the difference between HTML and React event handling? with suitable example

    CO3

  6. 81

    Expalin in detailabout Function in JavaScript? Write a program using functions with arguments?

    CO3

  7. 82

    Write a JavaScript code to change a background color using buttons.

    CO3

Send feedback

Ratings, corrections and requests are all welcome, and every message is read. To share a paper, question bank or notes, pick that topic and paste a link.

How useful is Exam Stash for you? (optional)

Sent to Harsh by email through Web3Forms. See Privacy and use.