(Academic Year – 2019-20 Sem-II) UNIT TEST - I Subject: Systems Programming Subject Code: 314451 Class: TE ( IT ) Div: XI [ Max. Marks : 30] Date: 07/02/2020 Day: Friday Duration: 1 Hour
Instructions to the candidate: SET-B
1. All questions are compulsory. Roll No: - 2. Assume suitable data, if necessary.
Ques. CO Bloom’s Max
Question No. Mapped LL Marks Generate (Pass I) symbol table, literal table, pool table and Intermediate code (Variant I and II) with Machine Code (Output of Pass II) for the given assembler program. Assume a hypothetical instruction set with every instruction of length 1 byte. START 500 LAB DS 15 MOVEM AREG, VAR ADD AREG, LAB MOVER BREG, ='10' SUB BREG, ='5' 1-a MULT BREG, ='10' CO-1 L3, L5 08 PRINT VAR LTORG ORIGIN LAB+3 LOOP MOVER CREG, ='5' LOAD AREG, ='2' VAR EQU LOOP ORIGIN VAR + 25 ADD CREG, L1 STOP L1 DC '12' END 1-b Explain Listing and error reporting in assembler with example. CO-1 L1, L2 02 Explain following Macro facilities with example. 2-a i) Expansion time Variable CO-2 L1, L2 05 ii) Change of flow during Macro expansion Explain different parameter passing mechanisms in macro processor 2-b CO-2 L1 05 with example. Explain the processing of given statement w. r. t first three phases of 3-a CO-3 L5 05 compiler. R=(b*b-4*a*c)/(2*a). Convert the following RE to DFA 3-b CO-3 L4, L5 05 (1+ )*01