Machine-translated by Google. Questions are authored in English.
Top

Assembly Language Programming Questions and Answers

Direction for [ Question No: 1 To 1 ] :

Assertion - Reason type questions : The following items consist of two statements, one labelled the 'Assertion (A)' and the other labelled the 'Reason (R)'. You are to examine these two statements and decide if the Assertion (A) and the Reason (R) are individually true and if so, whether the Reason is a correct explanation of the Assertion. Select your answers to these items using the codes given below and mark your answer sheet accordingly.

1.

Assertion (A) : The top down structured programming should be used for developing programs.
Reason (R) : The top down structured programming methodology enables us to get readable and easily provable programs.

Exam Year(s)

UGC NET - 2013,

Answer: B

Top-down structured programming breaks a problem into a hierarchy of smaller modules, and it is recommended for developing programs, so (A) is true. The reason says that the method gives programs that are readable and easy to prove correct, which is true and is why the method is recommended. Though the official key marks (R) as not being the explanation, the two statements are individually true; the key is B: both true, but (R) is not the correct explanation of (A).

Please log in or register to report this question.

Direction for [ Question No: 2 To 2 ] :

Directions : Q. Nos. 21 to 30 : The following items consist of two statements, one labelled the “Assertion (A)” and the other labelled the “Reason (R)”. You are to examine these two statements carefully and decide if the Assertion (A) and the Reason (R) are individually true and if so, whether the Reason is a correct explanation of the Assertion. Select your answers to these items using the codes given below and mark your answer accordingly.

2.

Assertion (A) : The top down structured programming should be used for developing programmes.

Reason (R) : The top down structured programming methodology enables us to get readable and easily provable program.

Exam Year(s)

UGC NET - 2012,

Answer: A

The keyed answer is that both statements are true and (R) is the correct explanation of (A). In top-down structured programming a problem is broken into smaller modules, each handled in turn, so the program is easier to read, test and prove correct. That benefit is the reason why the method should be used for developing programs. Option B, which says that (R) does not explain (A), is rejected by the key, and options C and D would call one of two accepted statements false.

Please log in or register to report this question.

3.

Match List I with List II and select the correct answer using the codes given below :

List IList II
(a) Register addressing(i) MOVC A, @ A + PC
(b) Immediate addressing(ii) DJNZ R2, LOOP
(c) Relative addressing(iii) MOV A, # 55H
(d) Indexed addressing(iv) MOV A, R1

Exam Year(s)

MH SET - 2021, SET Exam - 2021,

Answer: B

The correct code is (a)-(iv), (b)-(iii), (c)-(ii), (d)-(i).

MOV A, R1 takes its operand from a register, which is register addressing. MOV A, #55H carries the data 55H in the instruction itself, immediate addressing. DJNZ R2, LOOP jumps by a signed offset relative to the program counter, relative addressing. MOVC A, @A+PC forms the address by adding the accumulator to a base register, indexed addressing, used for look-up tables in code memory.

The other codes give immediate addressing to MOV A, R1 or treat the DJNZ jump as indexed.

Please log in or register to report this question.

4.

The JS is called as ...............

Exam Year(s)

MH SET - 2025, SET Exam - 2025,

Answer: A

JS stands for jump if sign (the 'jump the signed bit' option).

In the 8086 instruction set, JS is a conditional jump taken when the sign flag SF is 1, that is, when the result of the last arithmetic or logic operation was negative (its most significant bit is 1). Its complement is JNS, jump if not sign.

'Jump single bit', 'jump simple bit' and 'jump signal it' do not describe any flag. The S in JS refers to the sign flag, so the option mentioning the signed bit is the one that fits.

Please log in or register to report this question.

5.

In the Assembly program, the following steps are to be followed. Find the sequence in which the program to be written for 8085 microprocessor.

(i) Initialization of variables.
(ii) Initialization of stack.
(iii) Enable or disable interrupts.
(iv) Program should be completed with last line as 'END' statement.

Exam Year(s)

UGC NET - 2013,

Answer: C

The usual sequence in an 8085 program is the initialisation of the stack, the initialisation of variables, the enabling or disabling of interrupts, and then the program body ending with the END statement, which is (ii), (i), (iii), (iv), the third option. The stack pointer has to be set first so that calls and interrupts have a place to save the return address.

The first two options start with the variables before the stack, and the fourth puts the interrupts before the variables, so they do not follow this order.

Please log in or register to report this question.

6.

Which of the following program is not a utility ?

Exam Year(s)

UGC NET - 2013,

Answer: B

The keyed answer is spool, option (B). A utility program is a general support program of the system such as a debugger or an editor, which a user runs for a particular job.

Spooling (simultaneous peripheral operations on-line) is a technique by which the operating system queues output for a slow device, so it is a system service and not a utility the user runs. A debugger (A) and an editor (C) are standard utility programs. Inhibit (D) is not a program, but the key takes spool as the intended answer. A reviewer may want to check this item.

Please log in or register to report this question.

7.

The number system for the machine code of the microprocessor 8085 is

Exam Year(s)

UGC NET - 2014,

Answer: D

Following the official key, the answer is hexadecimal. The 8085 opcodes and the operands in its machine code are written and entered as hexadecimal numbers, for example 3E for MVI A. The hardware stores them as binary, but the number system used for the machine code listing is hexadecimal.

BCD and octal are not the notations used for 8085 machine code. Binary is how the bits are held inside, which is why this question is open to the objection that machine code is strictly binary; the official key takes the written form.

Please log in or register to report this question.

8.

Each instruction in an assembly program has the following fields :

(i) Lable field
(ii) Operand field
(iii) Comment field
(iv) Mnemonic field Please write the proper sequence of fields :

Exam Year(s)

UGC NET - 2014,

Answer: B

The proper sequence of the fields is label, mnemonic, operand, comment, that is (i), (iv), (ii), (iii). An assembly instruction is written as a label (optional), then the opcode mnemonic, then the operand and finally a comment, for example START: MVI A, 05H ; load A.

The operand cannot come before the mnemonic, and a comment is always last, so the other sequences are wrong.

Please log in or register to report this question.

Loading…
Tags: Assembly Language Programming Questions and Answers || Assembly Language Programming MCQ Questions and Answers || Assembly Language Programming GK Questions and Answers || Assembly Language Programming GK MCQ Questions || Assembly Language Programming Multiple Choice Questions and Answers || Assembly Language Programming GK || GK on Assembly Language Programming || Microprocessors and Microcontrollers Questions and Answers || Microprocessors and Microcontrollers MCQ Questions and Answers || Microprocessors and Microcontrollers GK Questions and Answers || GK on Microprocessors and Microcontrollers