Home /University Of Sargodha (UOS) /Web Technologies

Web Technologies ADP University Of Sargodha (UOS) 2026

Web Technologies ADP University Of Sargodha (UOS) 2026 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

More Web Technologies papers

See all

Paper text

Universit of Sargodha

ADP/ BS 3 mester E amination 2026

Subject: Computer Scicnce paper: Web Technologies Lab (CSDE.-50,

Time Allowed: 2:30 Hours Maximum Marks; 49 ~~

Note: Objective Part is Compulsory. Attempt a0Y three Question form Subjective Part,

Objective Part (Compulsory)

QI. Write short answers of the following in 2-3 lines €ach On your answer sheet. (54g)

i. How does a NoSQL database (like MongoDB) typically store its data records?

ii. What is the primary mechanism used to prevent an SQL Injection?

fii. Write a CSS rule using an id sclector #box that changes the background color to yellow,

iv. Write a JavaScript statement that yses document-getElementByld to select an element

with the ID main-title and changes its text color to red.

Vv. Explain the concept of a CSS pseudo-class.

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:

EE rrrr—

: | Email: {Input here... |

| passuore |

| Gender ®Male ©Female

|

—— ee

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 | Catego [Price |

10] _ Mouse Electronics 25.00

102 [ Desk Camp | Home 39.99

wore 1K-9554 1 106-2026 (F-24) meme ,