Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
18 views3 pages

Web Programming Assignment Guide

The document outlines a comprehensive programming assignment for the Web Programming course at the University of Global Village, detailing various tasks related to HTML, CSS, JavaScript, PHP, Ruby, and Python. It specifies the submission requirements, including both printed and digital formats, and provides a list of topics and coding tasks to be completed by students. The assignment is due on November 13, 2025.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

Web Programming Assignment Guide

The document outlines a comprehensive programming assignment for the Web Programming course at the University of Global Village, detailing various tasks related to HTML, CSS, JavaScript, PHP, Ruby, and Python. It specifies the submission requirements, including both printed and digital formats, and provides a list of topics and coding tasks to be completed by students. The assignment is due on November 13, 2025.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

University of Global Village (UGV), Barishal

Department of CSE
Course Title: Web Programming
Semester: 4th
Assignment: Comprehensive Programming Assignment on Web and Scripting Languages
Submission Deadline: 09 November 2025

1. Explain the structure of an HTML document. Write a complete HTML code that includes a heading, paragraph,
image, and hyperlink.
2. Differentiate between block-level and inline elements in HTML. Provide at least three examples of each and
explain how they affect webpage layout.
3. Write an HTML and CSS code to create a simple student registration form containing fields for Name, Email,
and Password with styled labels and input boxes.
4. Explain the concept of CSS selectors and their types. Provide examples of class selectors, ID selectors, and
descendant selectors.
5. What are the different types of CSS positioning? Explain static, relative, absolute, and fixed positioning with
short examples showing how each works.
6. Explain the concept of event handling in JavaScript. Give an example using onclick or addEventListener() to
handle a button click event.
7. Differentiate between var, let, and const. Give examples where the difference matters.
8. Write a JavaScript function that takes an array of numbers and returns the sum of even numbers only.
9. What is DOM manipulation? Write JavaScript code to change the text of a <p> element with id "demo" to
"Hello JavaScript".
[Link] the concept of asynchronous programming in JavaScript. Compare callbacks, promises, and
async/await with examples.
[Link] the difference between GET and POST methods in PHP. Provide an example of form submission
using both.
[Link] a PHP script to connect to a MySQL database and display all records from a table named students.
[Link] the concept of sessions and cookies in PHP. Write a short code example showing how to set and
retrieve a session variable.
[Link] the use of arrays in PHP. Write a script that stores names of students in an array and displays them
using a foreach loop.
[Link] are include and require statements in PHP? Explain their differences with an example use case.
[Link] the concept of blocks and iterators in Ruby. Provide an example using .each or .map.
[Link] a Ruby program that checks whether a given number is prime or not.
[Link] object-oriented features in Ruby. Write a simple class named Student with attributes and a method to
display details.
[Link] between puts, print, and p in Ruby with examples.
[Link] exception handling in Ruby. Write a program that handles division by zero error using begin-rescue.
[Link] the difference between mutable and immutable data types in Python with examples.
[Link] a Python program that reads a text file and counts the number of words.
[Link] is a decorator in Python? Write an example that shows how a decorator can modify a function’s behavior.
[Link] inheritance in Python OOP. Write a base class and a derived class to demonstrate single inheritance.
[Link] list comprehension in Python. Write code to generate a list of squares for numbers from 1 to 10.
Submission Type:

 Printed Hard Copy of your answers.


 Soft Copy (PDF) to be uploaded/submitted via the university portal or sent by email

Assignment Cover Page Must Include:

 Course Name: Web Programming & Scripting Languages


 Assignment Title: Comprehensive Programming Assignment on Web and Scripting Languages
 Student Name & ID
 Department
 Semester & Year
 Instructor Name
 Submission Date

Submission Deadline: 13 November 2025

You might also like