CS101 Assignment 1 2021 Solution by VU Answer.pdf

Verified academic study resource for CS101 (Introduction to Computing) under the Computer Science at Virtual University of Pakistan. This PDF document (2026 Assignment & GDB Solution Guide) covers Active 2026 Semester Graded Activities spanning approximately 18 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS101 – Introduction to Computing
Faculty
Computer Science
Format
PDF
Type
Assignment
Coverage
Active 2026 Semester Graded Activities
Tags
ASSIGNMENT

Always personalize your submission by rewriting explanations and renaming code variables. Keep Turnitin similarity under 19% and leverage the official 24-hour grace period with zero marks penalty.

What this file covers — CS101 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 CS101 Assignment 1 2021 Solution by VU Answer.pdf for free?

You can preview and download "CS101 Assignment 1 2021 Solution by VU Answer.pdf" (CS101 PDF, ~18 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs101-assignment-1-2021-solution-by-vu-answer-pdf) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Active 2026 Semester Graded Activities 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 CS101 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 CS101 solved past papers and handouts verified for 2026 exams?

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

          VISIT ANY MORE SOLUTIONS FREE

                 www.vuanswer.com

        CS101 ASSIGNMENT 1 SOLUTION SPRING 2021
                   Provided by VU Answer

SUBMIT ASSIGNMENT FORMAT

Submit your assignment in .doc or docx
format only.

QUESTION NO 1:
Given is a snapshot of memory addresses E2 to F4 and CPU
registers 0 to F. All bit patterns in the memory cells are
represented in hexadecimal notation.

             SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

                WHATSAPP GROUP JOIN
   https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

        VISIT ANY MORE SOLUTIONS FREE

              www.vuanswer.com

          SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

             WHATSAPP GROUP JOIN
  https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

          VISIT ANY MORE SOLUTIONS FREE

                  www.vuanswer.com

Assume that the Program Counter has E2 as its initial value.
Using the information provided in the above Figure 1, answer the
following questions.

Note: Use the table provided in Appendix C at page 581 of book.

SOLUTION:
Q.1) Determine the contents of register 1 when the machine halts.
     ANSWER:
     15

Q.2) Write down the bit pattern (in hexa decimal) at memory
address F3 when the Halt instruction is executed.
     ANSWER:
     0705
Q.3) How many times the machine instruction at address EE is
executed before the machine halts

              SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

                WHATSAPP GROUP JOIN
   https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

           VISIT ANY MORE SOLUTIONS FREE

                   www.vuanswer.com

     ANSWER:
     6

Q.4) Determine the contents of register 0 after the instruction at
address EC is executed.
     ANSWER:
     91

Q.5) Determine the contents of register 2 when the instruction at
address F0 is executed.
     ANSWER:
     07

               SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

                 WHATSAPP GROUP JOIN
   https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

                  VISIT ANY MORE SOLUTIONS FREE

                            www.vuanswer.com

QUESTION NO 2:

a. Perform binary addition on given numbers:

SOLUTION:
              𝟏
𝑭𝒊𝒏𝒅 𝟐𝟎
             𝟏𝟔

         24       23       22    21   20     Radix 2-1    2-2  2-3             2-4
         16       8        4     2    1              1⁄2 1⁄4 1⁄8               1⁄16
         1        0        1     0    0             0     0    0               1
                                               𝟏
                            Final Answer is 𝟐𝟎   = 𝟏𝟎𝟏𝟎𝟎. 𝟎𝟎𝟎𝟏
                                              𝟏𝟔

         𝟏
𝑭𝒊𝒏𝒅 𝟕
         𝟒
         22            21          20        Radix           2-1         2-2
         4             2           1                               1⁄2         1⁄4
         1             1           1                         0           1
                                                   𝟏
                               Final Answer is 𝟕       = 𝟏𝟏𝟏. 𝟎𝟏
                                                   𝟒

                       SUBSCRIBE OUR CHANNEL
 https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                       WMIg3Q

                           WHATSAPP GROUP JOIN
    https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

          VISIT ANY MORE SOLUTIONS FREE

                  www.vuanswer.com

b. Convert the following binary number into ASCII code and then
into its equivalent decimal representation.

01001001010000010100110101011100

SOLUTION:
    Divide from left in 8 Characters
    01001001
    01000001
    01001101
    01011100
     27     26    25      24     23    22    21     20
     128 64       32      16     8     4     2      1
     0      1     0       0      1     0     0      1     =73
     0      1     0       0      0     0     0      1     =65
     0      1     0       0      1     1     0      1     =77
     0      1     0       1      1     1     0      0     =92

              SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

                WHATSAPP GROUP JOIN
   https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

        VISIT ANY MORE SOLUTIONS FREE

              www.vuanswer.com

   =73 =I
   =65 =A
   =77 =M
   =92 =\
   So
   01001001010000010100110101011100 = IAM/s

                 REGARD SARIM
            WHATSAPP +923162965677

        FOR CORRECT FREE ASSIGNMENT
             www.vuanswer.com

          SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

             WHATSAPP GROUP JOIN
  https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

          VISIT ANY MORE SOLUTIONS FREE

                 www.vuanswer.com

PLEASE NOTE:
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file
before submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform
me.
Before submitting an assignment check your assignment
requirement file.
If you need some help and question about file and solutions.

     MORE ANY ASSIGNMENTS SOLUTION FREE
                   www.vuanswer.com

             SUBSCRIBE OUR CHANNEL
https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
                      WMIg3Q

               WHATSAPP GROUP JOIN
   https://chat.whatsapp.com/HGu2lvOWPsi0tpPGc4IGDZ

More CS101 files

All CS101 files · Midterm Prep 2026 · MCQs Bank