Professional Documents
Culture Documents
First Half 30 Questns
First Half 30 Questns
First Half 30 Questns
A. Operation codes
B. Strings
C. Address
D. None of these
Answer: A
A. 1
B. 3
C. 2
D. 4
Answer: C
The assembler in first pass reads the program to collect symbols defined with offsets in a
table_______:
A. Hash table
B. Symbol table
C. Both a& b
D. None of these
Answer: B
In second pass, assembler creates _______in binary format for every instruction in program and
then refers to the symbol table to giving every symbol an______ relating the segment.
D. All of these
Answer: C
C. Both a & b
D. None of these
Answer: A
A. Link code
B. Decimal code
C. Assembly code
D. Binary code
Answer: D
B. Information of constants
A. Location table
B. Location count
C. Location counter
D. Location area
Answer: C
Which assembler directive indicates that the first word of the target program generated by the
assembler should be placed in the memory word with address.
A. LABEL
B. END
C. START
D. STOP
Answer: C
Which assembler directive indicates that the end of the source program.
A. EXIT
B. END
C. START
D. LABEL END
Answer: B
A. OPCODE
B. OPERAND
C. Both of above
D. None of above
Answer: C
A. 4
B. 2
C. 3
D. 5
Answer: C
When a RESW assembler directive is used the LOCCTR value is calculated by:
A. LOCCTR=LOCCTR+#OPERAND VALUE
C. LOCCTR=LOCCTR+3
Answer: B
The assembler stores all the labels and their corresponding values in _____
B) Symbol Table
D) None of these
ANSWER: B
Which of these features of assembler are Machine-Dependent ?
A) Instruction formats
B) Addressing modes
C) Program relocation
ANSWER: D
A simple two-pass assembler does which of the following in the first pass?
C) It builds the symbol table for the symbols and their values
D) All of these
ANSWER: D
Pass 2 –
D) All of these
ANSWER: D
Pass 1 –
D) all of these
ANSWER: D
Which table is permanent databases that has an entry for each terminal symbol ?
A) Literal table
B) Symbol table
D) None of these
ANSWER: C
An assembler is
B) Syntax dependant.
C) Machine dependant.
D) Data dependant.
ANSWER: C
An assembly language is a
ANSWER: A
A) STA
B) LDA
C) JSUB
D) START
ANSWER: D
Which of the following is not a Assembly Directive
A) END
B) BYTE
C) RSUB
D) RESB
ANSWER: C
A) Header record
B) Text Record
C) End Record
D) Modification Record
ANSWER: C
A) RESW
B) RESB
C) EQU
D) ORG
ANSWER: C
Convert the given SIC/XE instruction into object code 1000 STL RETADR (PC)=1003,(B)=1033,
Address of RETADR=1033,STL=14,
A) 172030
B) 172003
C) 171000
D) 174000
ANSWER: A
Convert SIC/XE instruction into object code where CLEAR=B4,
CLEAR X,
CLEAR A,
ANSWER: B
considering (B)=0033,TA=0036,STCH=54,(PC)=1051
A) 57201B
B) 57A01B
C) 57C003
D) 57C103
ANSWER: C
A) 4096
B) 40CC
C) 4132
D) 1036
ANSWER: D
Which of the following is not converted to object code ?
A) START
B) BASE
C) LTORG
D) All of these
ANSWER: D
0006 4B101036
A) M^000007^05
B) M^000006^05
C) M^000008^05
D) None of these
ANSWER: A
ORG 1040 ,
SYMBOL RESB 6,
VALUE RESW 1,
A) 1040
B) 1000
C) 1049
D) 1046
ANSWER: C
(PC)=001D
A) 32010
B) 3202D
C) 3201D
D) 3201A
ANSWER: A