CS521 Midterm Current Subjective by MS Team
- Type
- Midterm past paper
- Course
- CS521 Web Systems and Technologies
- Size
- PDF 618 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
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
- Presentation Layer (User Interface)
- Application Layer (Business Logic)
- Business Layer (Data Processing)
- Data Access Layer (Database Interaction)
- 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:
- Content – Jahaan text ya images hote hain
- Padding – Content aur border ke darmiyan ka space
- Border – Element ka edge jo padding ke baad aata hai
- 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.");
Related CS521 files
All CS521 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.