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.

Ch 6 qbank

  • 1.
    Atmiya Institute Oftechnology 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 Oftechnology 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 Oftechnology 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 Oftechnology 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.