0% found this document useful (0 votes)
2 views3 pages

Web Programming Assignment Questions

The document outlines a web programming assignment consisting of various questions divided into two groups. Group A focuses on HTML, CSS, and JavaScript concepts, while Group B covers server-side programming, databases, and web application architecture. Each question requires explanations, code examples, or practical implementations related to web development.

Uploaded by

remaxsznmgt
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)
2 views3 pages

Web Programming Assignment Questions

The document outlines a web programming assignment consisting of various questions divided into two groups. Group A focuses on HTML, CSS, and JavaScript concepts, while Group B covers server-side programming, databases, and web application architecture. Each question requires explanations, code examples, or practical implementations related to web development.

Uploaded by

remaxsznmgt
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/ 3

Web Programming Assignment

Questions
Group A:
1. Explain the difference between id and class in HTML. Give examples of when you'd use
each.

2. Create a responsive web page layout using Flexbox that includes a header, sidebar,
content area, and footer.

3. What are semantic HTML elements? Name five and explain their use.

4. Write a JavaScript function to validate a form with name, email, and password fields.

5. Describe the box model in CSS and illustrate it with a diagram.

6. Create a drop-down navigation menu using HTML and CSS (no JavaScript).

7. How does event bubbling work in JavaScript? Provide an example.

8. Explain the purpose of media queries in CSS. Create a rule to change font size on screens
smaller than 768px.

9. Use JavaScript to create a simple to-do list that allows users to add and remove items.

10. Differentiate between == and === in JavaScript. Provide examples of both.

1. What does HTML stand for and what is its primary purpose in web development?

2. List five commonly used HTML tags and describe what each one does.

3. Write the HTML code to create a table with 3 rows and 2 columns.

4. Differentiate between internal, inline, and external CSS. Which one is more maintainable
and why?

5. Design a basic HTML form with fields for name, age, and gender (dropdown), and a
submit button.

6. What is the use of the <meta> tag in HTML? Give two examples.

7. Use CSS to style a paragraph with blue text, 16px font size, and 20px padding.

8. Describe the difference between var, let, and const in JavaScript with examples.
9. Create a simple JavaScript function that calculates the square of a number and displays
the result.

10. Explain what the DOM is and how JavaScript can manipulate it. Provide a basic example.

Group B:
1. What is a web server, and name two commonly used ones?

2. Describe how a browser retrieves and displays a webpage. (From typing the URL to
seeing the page)

3. Write a simple PHP script that displays "Welcome to Web Programming".

4. How is data sent from a form to the server using GET vs POST methods? Explain with
examples.

5. What is the use of SQL in web development? Write a query to select all users from a users
table.

6. What are HTTP status codes? Explain the meaning of 200, 404, and 500.

7. Create a login form in HTML and write the PHP code to check if username is 'admin' and
password is '1234'.

8. What is a database? Name two relational databases used in web applications.

9. Define API. Why are APIs important in modern web development?

10. Explain the concept of MVC (Model-View-Controller) in web applications.

1. Explain the request-response cycle in web applications. Illustrate with a diagram.

2. Create a simple contact form in HTML and write the PHP code to process the form data
and send an email.

3. What is AJAX and how does it enhance user experience in web applications? Provide a
basic example using JavaScript.

4. Write a PHP or Node.js script to connect to a database and retrieve user data from a table.

5. Explain the concept of RESTful APIs. Give an example of a typical GET and POST endpoint.

6. Describe how sessions and cookies work in web development. How do they differ?

7. Build a simple login system using PHP or Node.js that validates user credentials from a
database.
8. What is the role of JSON in web development? Convert a simple JavaScript object to JSON
format and back.

9. Explain Cross-Origin Resource Sharing (CORS). Why is it important in web development?

10. Compare client-side rendering vs server-side rendering. Which is better in what


scenarios?

You might also like