Web Technologies/Web System and Technologies ADP/BS/MPhil Computer Science 3 Semester/Term University Of Sargodha (UOS) 2026
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
More Web System and Technologies papers
See allPaper text
. ‘ 0
Universit of Sar dha
ADP/ BS ys geester Examination 2026
Subject: Computer Scicnee paper: Web Technologies Lab (CSDE-5202
Time Allowed: 2:30 Hours - Maximum Marks: 40
Note: Objective Part is Compulsory. Agtempt #0Y HF Question form Subjective Part. |
Objective Part (Compulsory) |
Q.1. Write short answers of the following in 2-3 lines cach On your answer sheet. (24g)
i. How does a NoSQL database (like MongoDB) typically N-S its data records?
ii. What is the primary mechanism used to prevent an SQL Injection?
fil. Write a CSS rule using an id selector #box that changes the background color to yellow.
iv. Write a JavaScript statement that uses document.getElementByld to select an element
with the ID main-title and changes its text color 10 red.
v. Explain the concept of a CSS pseudo-class. Co
vi. What is the difference between synchronous and asynchronous programming in
JavaScript?
vii. Explain the difference between HTTP GET and POST methods.
viii. What does an HTTP 200 status code represent?
Subjective Part (3*8)
Q.2. Write HTML code for a user registration form given below:
Univergjty of Sargodha
ADP/ BS 3rd semester Examination 2026
Subject: Computer Science paper: Web Technologies Lab (CSDg.52¢,
Time Allowed: 2:30 Hours -
Maximum Marks; 49
Note: Objective Part is Compulsory. Attempt a0Y three Question form Subjective Part,
Objective Part (Compulsory)
Q.I. Write short answers of the following in 2-3 lines each on your answer sheet, (2*8)
ii.
How does a NoSQL database (like MongoDB) typically wa oe data records?
What is the primary mechanism used to prevent an SQL Injection?
Write a CSS rule using an id sclector #box that changes the background color to yellow,
Write a JavaScript statement that uses document.getElementByld to select an element
with the ID main-title and changes its text color to red.
Explain the concept of a CSS pseudo-class.
What is the difference between synchronous and asynchronous programming in
Explain the difference between HTTP GET and POST methods.
What does an HTTP 200 status code represent?
Username: (input here... Il
Email: {Input here... ]
Password: levecenss Ze = PE [F—
Gender @Male ©Female i
Q.3. Explain the fundamental differences between the roles of HTML, CSS, and a server-side
language in modern web architecture.
Q.4. How do you center a div element both horizontally and vertically on the webpage? Describe
the exact CSS properties and values you would apply to the parent container using CSS to
achieve this.
Q.5. Differentiate between the use of cookies and sessions in a website. Write code to set a session
. variable, retrieve the values from a session variable, and then destroy the session data.
Q.6. Write backend code (Node.js, Python, PHP) to connect to a MySQL database named
"STOREDB". Build and execute a query to fetch all records from the "PRODUCTS" table
shown below:
ProductID ProductName Category Price
10] Mouse Electronics 25.00
102 Desk Lamp Home 39.99
RE~1K-9554/1 1-06-2026--(F-24)---m=rmrmrmmmmemenes ’
ustadni.com