CS521 Current Midterm Subjective by MS-Team.pdf.pdf

Verified academic study resource for CS521 (Data Science Principles) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS521 – Data Science Principles
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
SUBJECTIVE, CURRENT, MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS521.

What this file covers — CS521 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)

Frequently asked questions

Where can I download CS521 Current Midterm Subjective by MS-Team.pdf.pdf for free?

You can preview and download "CS521 Current Midterm Subjective by MS-Team.pdf.pdf" (CS521 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs521-current-midterm-subjective-by-ms-team-pdf-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS521 file?

This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS521 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS521 solved past papers and handouts verified for 2026 exams?

Yes. All CS521 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

By Maha Rana

CS521 - Short Questions & Answers

1. CSS Code for Virtual University of Pakistan

.vu-pakistan {
    background-color: #007bff;
    color: #ffffff;
    padding: 20px;
    border: 1px solid #0069d9;
}

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];

4. Difference Between Static and Dynamic Server?

By Maha Rana

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

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

CS521 - Short Questions & Answers

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

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|

By Maha Rana

|--------|
| Padding|
|--------|
| Content|

CS521 - Long Questions & Answers

1. JavaScript Array - 5 Students ke Marks Calculate Karna

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:

Ali scored 85 marks.
Sara scored 90 marks.
Ahmed scored 78 marks.
Zain scored 88 marks.
Aisha scored 95 marks.

2. Five CSS Selectors & Pseudo-Classes

   By Maha Rana

May Allah grant you success, ease your efforts,
and bless you with wisdom and perseverance.
Keep your faith strong, for with prayer, every
challenge becomes an opportunity. And please
remember us in your prayers.

I hope this file helps you a lot; I have tried my
best to find the most relevant and authenticated
answers for the questions. However, in some cases,
the questions might slightly differ from the ones
in your slides. I recommend that every student
kindly verify the answers on their own before
using them. I am not responsible for any
discrepancies.

Best wishes for Mids!

More CS521 files

All CS521 files · Midterm Prep 2026 · MCQs Bank