CS201 lec 23 to 45 BY ORANGE MONKEY-converted-1.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS201 – Introduction to Programming
Faculty
Computer Science
Format
PDF
Type
Study Resource
Coverage
Full Course Curriculum

Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.

What this file covers — CS201 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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS201 lec 23 to 45 BY ORANGE MONKEY-converted-1.pdf for free?

You can preview and download "CS201 lec 23 to 45 BY ORANGE MONKEY-converted-1.pdf" (CS201 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-lec-23-to-45-by-orange-monkey-converted-1-pdf-3) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS201 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 CS201 solved past papers and handouts verified for 2026 exams?

Yes. All CS201 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

                               CS201 FINAL TERM NOTES

                                    LECTURE 23 TO 45

                        PROVIDE BY ORANGE MONKEY TEAM

Lecher number # 1

What is programming?

`       Computer programming is a medium for us to communicate with computers. Just
like we use “Urdu” or “English” to communicate with each other, programming is a way
for us to deliver our instructions to the computer.

What is C programming?

 C is a programming language. C is one of the oldest and finest programming language. C
was developed by the Dennis Ritchie of AT & T‟S Bell labs USA in 1971.

The BCPL language was developed in 1967 by Martin Richards as a language for writing
operating systems software and compilers.

What is C++?

  C++ is an update version of C. It is also called C with close. It is an object and oriented
language. It was developed by at AT& T‟S Bell lobs

Uses of C and C++

    C and C++ language is used to program a wide variety of system. Some of the uses of
the C and C ++ are as follows:

   ❖ Major parts of windows, Linux and operating system are written in C.
   ❖ C and C++ are used to write drive programs for devices like tablets, printers etc.
   ❖ C and C++ language is used to program embedded system where properly need to
     run faster in limited memory (Microwave, Camera etc.).
   ❖ C and C++ used to develop fames an area where latency is very important. I.e.
     Computer has to react quickly on user input.

Variables, Constant, and Keywords Variables:

A variable is a constant which stores ‟ value‟

For example

In kitchen, we have containers storing Rice, Dal, Sugar, etc. Similar to that variable in C
stores value of a constant.

Means that

a = 3;          // a is assigned “3”

b = 4.7;        // b is assigned “4.7”

c = „A‟;         // c is assigned “A”

Rules for naming variables in C

First character must be an alphabet or underscore (_) No commas, blanks allowed.

No special symbol other than (_) allowed. Variables names are case sensitive.

We must create meaning variables names in our programs. This enhances read easily in
our programs constant.

An entity whose value does not change is called as a constant.

A variable is an entity whose value can be changed.

Lecher number # 02

Categories of software

   •     System Software
   •     Application Software

System software

System software is a type of computer program that is designed to run a computer's
hardware and application programs

Sub categories of system software are:

    •      Operating system
    •      Device drivers

    •   Utilities

What is operating system?

Operating System controls the basic operations of the computer. It prepares the computer
to provide an environment in which user communicates with the computer.

What is a Device Driver?

We will see that the operating system has installed special software to control these devices.
This piece of software is called device driver software.

TWAIN stands for Technol
Utility software is software designed to help to analyze, configure, optimize or maintain a
computer.

Application Software
Application software (app for short) is computing software designed to carry out a specific
task other than one relating to the operation of the computer itself, typically to be used by
end-users.

What is an Editor?

First of all we need a tool for writing the code of a program. For this purpose we used
Editors in which we write our code.

What are Compiler and Interpreter? Or Difference b/w Compiler and Interpreter?

InterpreterThe drawback of the interpreter is that the program executes slowly as the
interpreter translates the program line by line. Another drawback is that as interpreters
are reading the program line by line so they cannot get the overall picture of the program
hence cannot optimize the program making it efficient.

Compiler Compilers also translate the English like language (Code written in C) into a
language. The Compiler read the whole program and translates it into machine language
completely. The difference between interpreter and compiler is that compiler will stop
translating if it finds an error.

IDES stand for (Integrated Development Environment)

These IDEs contain editor, compilers, debugger, linker and loader. The benefit of an IDE is
that we have all these things at the same place

made by orange monkey team🥰

made by orange monkey team🥰

Lecture No # 3

So here is our very first program in C.

                                                       Program shape

1 #include<iostream>

2 using namespace std;

3 int main ()

4{

5

6

7

8      return 0;

9}

#include: This is a pre-processor directive. The sign # is known as HASH and also called
SHARP.

Next, there is a curly bracket also called braces ("{ }").

There is a semicolon (;) at the end of the above statement.

What is cout?

 This is known as output stream in C and C++. cout takes data from computer and sends it
to the output. The sign <<indicates the direction of data.

The thing between the double quotes (“”) is known as character string.

What isVariables?

During programming we need to store data.

In a program every variable has

1. Name 2. Type      3. Size    4. Value

What is Assignment Operator?

In C language equal-to-sign (=) is used as assignment operator.
Example

Where as in C language X = 2 (where X is a variable name)

Define Data Types?

A variable must have a data type associated with it, for example it can have data types like
integer, decimal number characters etc.

1. Define int Data Type?

The data type int is used to store whole numbers (integers). Space of 4 bytes in memory.
In programming before using any variable name we have to declare that variable with its
data type. Example

int x ;    x = 5;              The declaration statement int i ; reserves 4 bytes of memory

Define short Data type/ long Data Type?

Short Data type

The C provides another data type for storing small whole numbers which is called short.

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank