Home /UOG — University of Gujrat /Hafiz Hayat Campus /Computer Organization

Computer Organization BE UOG — University of Gujrat 2022

Computer Organization BE UOG — University of Gujrat 2022 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

Need Paper? See all →

Need a paper or stuck on a question? Ask here — students reply and you get an email.

Ask about a paper
  • Danish Yasin· 3 hours ago

    ICT 1st sister paper

    0 replies Reply →
  • Bushra· 1 day ago

    BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…

    0 replies Reply →
  • Khadija· 3 days ago

    Civics course code GCCE101

    1 reply Reply →
  • Tasddaq hussain· 3 days ago

    BS 4the semester2025 civics and community engagement past paper According UOs

    0 replies Reply →
  • Humna Khan· 4 days ago

    Bs public administration 1st semester mid term past papers

    0 replies Reply →
Ad

Paper text

UNIVERSITY OF GUJRAT

Final Term Exam Fall 2022

Course Code: CS-255

Time allowed: 2 Hours and 30 minutes

Course Title: Computer Organization & Assembly Language

Total Marks: 50

Student Name:

Roll No.:

SUBJECTIVE

All questions are necessary to attempt and marks for each question are mentioned against it.

Q.1. Create an assembly language code which will do following tasks using procedures

(10 Marks)

Prompt the user to input two numbers in the main function. The two numbers will then be pushed onto a

stack. Another user-defined function will pop these numbers from the stack and calculate the result of the

first number raised to the power of the second number. The final result will be displayed on the console.

Q.2. Explain internal structure of the Execution Unit in the Intel 8086 microprocessor with detail, which is

responsible for executing instructions stored in memory?

(10 Marks)

Q.3. Write an assembly language code which will do following tasks

(10 Marks)

That uses a loop to prompt the user to input five numbers and store them into an array. Using another

loop, sort the array elements in ascending order. Finally, display the sorted array elements on the console.

Q.4. Write an assembly language code which will do following tasks

(10 Marks)

Create an output file; get the data from user on console (user can write multiple lines on console), and

save user input data on the output file. Make the buffer small -about 256 bytes- so the program uses loop

to repeat the call to write into file function as many time as necessary until the entire data has been written

on file without overwriting.

Q.5. Print following arrangement of character (*) using Nested Loop in assembly language. User defined

string data must be for ONLY one character (*).

(10 Marks)