SlideShare a Scribd company logo
1 of 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.

More Related Content

What's hot

c++ library management
c++ library managementc++ library management
c++ library managementshivani menon
 
Removing ambiguity-from-cfg
Removing ambiguity-from-cfgRemoving ambiguity-from-cfg
Removing ambiguity-from-cfgAshik Khan
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programmingTafhim Islam
 
Project Report On Online Crime Management Application
Project Report On Online Crime Management ApplicationProject Report On Online Crime Management Application
Project Report On Online Crime Management Applicationsatvirsandhu9
 
Os solved question paper
Os solved question paperOs solved question paper
Os solved question paperAnkit Bhatnagar
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRishabha Garg
 
Syntax-Directed Translation into Three Address Code
Syntax-Directed Translation into Three Address CodeSyntax-Directed Translation into Three Address Code
Syntax-Directed Translation into Three Address Codesanchi29
 
Air Cargo transport
 Air Cargo transport Air Cargo transport
Air Cargo transportFaimin Khan
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Harshil Darji
 
Case study of spiral process model
Case study of spiral process  modelCase study of spiral process  model
Case study of spiral process modelminal kumar soni
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentationhamza haseeb
 
Student Management System
Student Management SystemStudent Management System
Student Management SystemAmit Gandhi
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes Sher Shah Merkhel
 
Code tuning techniques
Code tuning techniquesCode tuning techniques
Code tuning techniquesAsha Sari
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memoryPrakharBansal29
 

What's hot (20)

c++ library management
c++ library managementc++ library management
c++ library management
 
Removing ambiguity-from-cfg
Removing ambiguity-from-cfgRemoving ambiguity-from-cfg
Removing ambiguity-from-cfg
 
TOC 10 | Turing Machine
TOC 10 | Turing MachineTOC 10 | Turing Machine
TOC 10 | Turing Machine
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
 
Project Report On Online Crime Management Application
Project Report On Online Crime Management ApplicationProject Report On Online Crime Management Application
Project Report On Online Crime Management Application
 
Os solved question paper
Os solved question paperOs solved question paper
Os solved question paper
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Syntax-Directed Translation into Three Address Code
Syntax-Directed Translation into Three Address CodeSyntax-Directed Translation into Three Address Code
Syntax-Directed Translation into Three Address Code
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Air Cargo transport
 Air Cargo transport Air Cargo transport
Air Cargo transport
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)
 
Case study of spiral process model
Case study of spiral process  modelCase study of spiral process  model
Case study of spiral process model
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentation
 
Student Management System
Student Management SystemStudent Management System
Student Management System
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
 
Sudoku solver ppt
Sudoku solver pptSudoku solver ppt
Sudoku solver ppt
 
Code tuning techniques
Code tuning techniquesCode tuning techniques
Code tuning techniques
 
Crime
CrimeCrime
Crime
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 

Similar to Ch 6 qbank

COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEWshyamuopeight
 
CS3018 Practical List 1.pdf
CS3018 Practical List 1.pdfCS3018 Practical List 1.pdf
CS3018 Practical List 1.pdfKingsman90
 
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 manjurkts
 
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 neweyavagal
 
Code tuning strategies
Code tuning strategiesCode tuning strategies
Code tuning strategiesAsha Sari
 
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 newLast7693
 
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 newscottbrownnn
 
programming concept
programming conceptprogramming concept
programming conceptNehabhy
 
C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2Animesh Chaturvedi
 
C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17manjurkts
 
FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docjaba kumar
 
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...Make Mannan
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c languageIndia
 

Similar to 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.