Assembly language programming 2020 mid, Exams of Assembly Language Programming

THis paper is belong to computer science department of KFUEIT. The subject name is assembly language programming by Mr. Mutiullah Jamil lecturer at KFUEIT

Typology: Exams

2019/2020

Uploaded on 08/03/2020

mutiullahj
mutiullahj 🇵🇰

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Khwaja Fareed
University of Engineering & Information Technology Rahim Yar
Khan
Department: Computer Science
Program: BSCS – 5 A , B
Fall 2019 mid Semester Exam Question Paper
[Course Code] Course
Name:
COSC-3114-Computer
Organization & Assembly
Language
Course
Instructor:
Mr. Mutiullah
Total Marks: 100 Weight: 30
Time Allowed: 70. minutes Exam date: 11:00 AM,27-112019
Paper: Computer Architecture & Assembly Language
Instructions Please read the following instructions carefully before attempting any question:
1. The duration of this examination is 60 minutes.
2. Answer all the questions.
a. There is no choice.
b. You will have to answer correctly all the questions in this examination to get the maximum possible marks.
3. Do not ask any questions about the contents of this examination from anyone.
a. If you think that there is something wrong with any of the questions, attempt it to the best of your
understanding.
b. If you believe that some essential piece of information is missing, make an appropriate assumption and use it to
solve the problem.
4. Your paper contains 4 questions. All Coding questions should be answered using the Assembly language syntax
Objective
Question No. 1 Answer the following questions. 5*4=20 marks
a. What does the symbol [ ] indicate?
b. What is the difference between SUB and CMP instructions?
c. What is meant by JNZ?
d. What does the INT 21h accomplish if AH contains 4CH?
e. How we can divide the instruction set in groups?
Short Questions
Page 1 of 2
pf2

Partial preview of the text

Download Assembly language programming 2020 mid and more Exams Assembly Language Programming in PDF only on Docsity!

Khwaja Fareed

University of Engineering & Information Technology Rahim Yar

Khan

Department: Computer Science

Program: BSCS – 5 A , B

Fall 2019 mid Semester Exam Question Paper

[Course Code] Course

Name:

COSC-3114-Computer Organization & Assembly Language

Course

Instructor:

Mr. Mutiullah

Total Marks: 100 Weight: 30

Time Allowed: 70. minutes^ Exam date: 11:00 AM,27-

Paper : Computer Architecture & Assembly Language Instructions Please read the following instructions carefully before attempting any question:

  1. The duration of this examination is 60 minutes.
  2. Answer all the questions. a. There is no choice. b. You will have to answer correctly all the questions in this examination to get the maximum possible marks.
  3. Do not ask any questions about the contents of this examination from anyone. a. If you think that there is something wrong with any of the questions, attempt it to the best of your understanding. b. If you believe that some essential piece of information is missing, make an appropriate assumption and use it to solve the problem.
  4. Your paper contains 4 questions. All Coding questions should be answered using the Assembly language syntax Objective Question No. 1 Answer the following questions. 5*4=20 marks a. What does the symbol [ ] indicate? b. What is the difference between SUB and CMP instructions? c. What is meant by JNZ? d. What does the INT 21h accomplish if AH contains 4CH? e. How we can divide the instruction set in groups? Short Questions

Page 1 of 2

Khwaja Fareed

University of Engineering & Information Technology Rahim Yar

Khan

Question No. 2 Write down the Description of any five flags. 52=10 marks Question No. 3 Write down a program which can find the average of 5 numbers by using loop 10 marks Long Question Question No. 4 Give the value of the zero flag, the carry flag, the sign flag, and the overflow flag after each of the following instructions if AX is initialized with 0x1254 and BX is initialized with 0x0FFF. 103= 30 marks a. add ax, 0xEDAB b. add ax, bx c. add bx, 0xF Question No.5 Write down the different types of jumps with short description. Write a simple program which has unconditional jump and write down another program for finding the min value from five different unsorted values. 10+10+10=30 marks

Page 2 of 2