Skip to content
VUBuddy

CS521 Midterm Current Subjective by MS Team

Web Systems and Technologies PDF 618 KBUpdated 23 Oct 2026
Midterm past paper CS521 Midterm Current Subjective by MS Team PDF 618 KB
vubuddy.com
Type
Midterm past paper
Course
CS521 Web Systems and Technologies
Size
PDF 618 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 618 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 4. Download the file for all 4 pages.

1. CSS Code for Virtual University of Pakistan

.vu-pakistan {

Q4. Difference Between Static and Dynamic Server?

2. Components of Application Stack

  1. Presentation Layer (User Interface)
  2. Application Layer (Business Logic)
  3. Business Layer (Data Processing)
  4. Data Access Layer (Database Interaction)
  5. Infrastructure Layer (Networking and Storage)

3. JavaScript Code - Array Declaration

let array = [1, 2, 3, 4, 5]; background-color: #007bff; color: #ffffff; padding: 20px; border: 1px solid #0069d9;

1. JavaScript Program to Sum Two Numbers

let num1 = 5; let num2 = 10; let sum = num1 + num2; console.log(" The sum is: " + sum); // Output: The sum is: 15

5. JavaScript Code - Function to Calculate Sum of an Array

3. Box Model Diagram Explanation

The CSS Box Model ek structure define karta hai jo har HTML element ke around hoti hai. Ismein 4 main parts hote hain:

  1. Content – Jahaan text ya images hote hain
  2. Padding – Content aur border ke darmiyan ka space
  3. Border – Element ka edge jo padding ke baad aata hai
  4. Margin – Border aur doosray elements ke darmiyan ka space

💡 Diagram Example:

| Margin| |----

| Border| functionsumArray(array) { let sum = 0; for(leti=0; i < array.length; i++) { sum+=array[i];

return sum;

console.log(sumArray([1, 2, 3, 4, 5])); // Output: 15 | Padding|

| Content|

Ali scored 85 marks. Sara scored 90 marks. Ahmed scored 78 marks. Zain scored 88 marks. Aisha scored 95 marks. let students = [" Ali", " Sara", " Ahmed", " Zain", " Aisha"]; let marks = [85, 90, 78, 88, 95];

for (let i = 0; i < students.length; i++) { console.log(students[i] + " scored " + marks[i]+" marks.");

Output: · 2. Five CSS Selectors & Pseudo-Classes · CS521 - Long Questions & Answers · 1. JavaScript Array - 5 Students ke Marks Calculate Karna

All CS521 files →
CS521 Web Systems and Technologies All CS521 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.