SlideShare una empresa de Scribd logo
1 de 4
Atmiya Institute Of technology and science                      UNIT-3
                                                 COA-Ch-6
                                             Question bank

                                 Asked In GTU Question paper

Q.1 What is Assembly Language? Why do we need it? What is the function of Assembler?
    What is Address symbol table? Describe in brief.

Q.2 Describe the first pass of assembler with the help of flowchart and show how symbol table
    is generated using an example.Explain the working of Second Pass Assembler with its
    flowchart.
Q.3 Write a note on subroutines.

Q.4 Write the program to logically OR the two numbers without using “OR” instruction.

Q.5 Write a program loop using a pointer and a counter to clear the contents of hex locations
    500 to 5FF with 0.

Q.6 Write an assembly level program for the following pseudocode.
       SUM = 0
       SUM = SUM + A + B
       DIF = DIF – C
       SUM = SUM + DIF

Q.7 Write the program to multiply two positive numbers. by a repeated addition
    method. For ex., to multiply 5 x 4 , the program evaluates the product by adding
    5 four times, or 5+5+5+5.

                                         Other Question

    1.   Write a Program to add two no.
    2.   Write a Program to subtract two no.
    3.   Write a Program to multiply two no.
    4.   Write a program loop to add 100 numbers.
    5.   Write a program to i/p and o/p one character.
    6.   Write a program to compare two words.
Atmiya Institute Of technology and science   UNIT-3
                                              COA-Ch-6
                                          Question bank




                                       ANSWER

Q.1 Write an assembly level program for the following pseudocode.
       SUM = 0
       SUM = SUM + A + B
       DIF = DIF – C
       SUM = SUM + DIF
Atmiya Institute Of technology and science                       UNIT-3
                                                COA-Ch-6
                                            Question bank




Q.2 Write a program loop using a pointer and a counter to clear the contents of hex locations
    500 to 5FF with 0.
Atmiya Institute Of technology and science               UNIT-3
                                               COA-Ch-6
                                           Question bank

Q.3 Write the program to multiply two positive numbers. by a repeated addition
    method. For ex., to multiply 5 x 4 , the program evaluates the product by adding
    5 four times, or 5+5+5+5.

Más contenido relacionado

La actualidad más candente

Chapter 01 - Introduction
Chapter 01 - IntroductionChapter 01 - Introduction
Chapter 01 - Introduction
César de Souza
 
PROJECT REPORT_ONLINE VOTING SYSTEM
PROJECT REPORT_ONLINE VOTING SYSTEMPROJECT REPORT_ONLINE VOTING SYSTEM
PROJECT REPORT_ONLINE VOTING SYSTEM
Nandasaba Wilson
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
aviban
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
hodcsencet
 

La actualidad más candente (20)

Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Chapter 01 - Introduction
Chapter 01 - IntroductionChapter 01 - Introduction
Chapter 01 - Introduction
 
PROJECT REPORT_ONLINE VOTING SYSTEM
PROJECT REPORT_ONLINE VOTING SYSTEMPROJECT REPORT_ONLINE VOTING SYSTEM
PROJECT REPORT_ONLINE VOTING SYSTEM
 
Electronic Voting System
Electronic Voting SystemElectronic Voting System
Electronic Voting System
 
8086 assembly
8086 assembly8086 assembly
8086 assembly
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
Daa notes 1
Daa notes 1Daa notes 1
Daa notes 1
 
Problem solving using Programming
Problem solving using ProgrammingProblem solving using Programming
Problem solving using Programming
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Powerpoint presentation on 5G wireless technology
Powerpoint presentation on 5G wireless technologyPowerpoint presentation on 5G wireless technology
Powerpoint presentation on 5G wireless technology
 
2 bit comparator (Digital Electronics)
2 bit comparator (Digital Electronics)2 bit comparator (Digital Electronics)
2 bit comparator (Digital Electronics)
 
Three address code In Compiler Design
Three address code In Compiler DesignThree address code In Compiler Design
Three address code In Compiler Design
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
Jumps in Assembly Language.
Jumps in Assembly Language.Jumps in Assembly Language.
Jumps in Assembly Language.
 
Real Life Application of Digital Electronics
Real Life Application of Digital ElectronicsReal Life Application of Digital Electronics
Real Life Application of Digital Electronics
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Computer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answersComputer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answers
 

Similar a Ch 6 qbank

Similar a Ch 6 qbank (20)

COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 
Programing Fundamental
Programing FundamentalPrograming Fundamental
Programing Fundamental
 
CS3018 Practical List 1.pdf
CS3018 Practical List 1.pdfCS3018 Practical List 1.pdf
CS3018 Practical List 1.pdf
 
CBCS 2018 Scheme I sem Lab Manual for 18CPL17
CBCS 2018 Scheme I sem Lab Manual for 18CPL17 CBCS 2018 Scheme I sem Lab Manual for 18CPL17
CBCS 2018 Scheme I sem Lab Manual for 18CPL17
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Code tuning strategies
Code tuning strategiesCode tuning strategies
Code tuning strategies
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Cp manual final
Cp manual finalCp manual final
Cp manual final
 
programming concept
programming conceptprogramming concept
programming concept
 
C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2
 
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORYGE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
 
C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17
 
FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.doc
 
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
 
Chap-03-1.ppt
Chap-03-1.pptChap-03-1.ppt
Chap-03-1.ppt
 
Cpph exam a_2019_s1
Cpph exam a_2019_s1Cpph exam a_2019_s1
Cpph exam a_2019_s1
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c language
 

Ch 6 qbank

  • 1. Atmiya Institute Of technology and science UNIT-3 COA-Ch-6 Question bank Asked In GTU Question paper Q.1 What is Assembly Language? Why do we need it? What is the function of Assembler? What is Address symbol table? Describe in brief. Q.2 Describe the first pass of assembler with the help of flowchart and show how symbol table is generated using an example.Explain the working of Second Pass Assembler with its flowchart. Q.3 Write a note on subroutines. Q.4 Write the program to logically OR the two numbers without using “OR” instruction. Q.5 Write a program loop using a pointer and a counter to clear the contents of hex locations 500 to 5FF with 0. Q.6 Write an assembly level program for the following pseudocode. SUM = 0 SUM = SUM + A + B DIF = DIF – C SUM = SUM + DIF Q.7 Write the program to multiply two positive numbers. by a repeated addition method. For ex., to multiply 5 x 4 , the program evaluates the product by adding 5 four times, or 5+5+5+5. Other Question 1. Write a Program to add two no. 2. Write a Program to subtract two no. 3. Write a Program to multiply two no. 4. Write a program loop to add 100 numbers. 5. Write a program to i/p and o/p one character. 6. Write a program to compare two words.
  • 2. Atmiya Institute Of technology and science UNIT-3 COA-Ch-6 Question bank ANSWER Q.1 Write an assembly level program for the following pseudocode. SUM = 0 SUM = SUM + A + B DIF = DIF – C SUM = SUM + DIF
  • 3. Atmiya Institute Of technology and science UNIT-3 COA-Ch-6 Question bank Q.2 Write a program loop using a pointer and a counter to clear the contents of hex locations 500 to 5FF with 0.
  • 4. Atmiya Institute Of technology and science UNIT-3 COA-Ch-6 Question bank Q.3 Write the program to multiply two positive numbers. by a repeated addition method. For ex., to multiply 5 x 4 , the program evaluates the product by adding 5 four times, or 5+5+5+5.