
Year 2004 UGC NET (D2)
Friends First of all I am going to give you collection of all PYQSyear wise and unit wise too ……so stay tuned with UNIFYSTUDY😊
THERE R TOTAL 5Q FROM UNIT 8 ACCORDING to new syllabus ,one is from TOC and 4 is from Compiler.
I am going to give you all questions and ans here,if you need detailed explanation of these topics then plz comment I’ll defenately create new course on detail of that particular topic, thanks a lot 🙏😊
Q 1. The context-free languages are closed for:
(i) Intersection
(ii) Union
(iii) Complementation
(iv) kleene star
then
(a) i and iv
(b) i and iii
(c) ii and iv
(d) ii and iii
And: C – ii and iv
Explanation:- because context free languages are closer under
union,concatenation,kleen star,kleen plus, homomorphism, epsilon free homomorphism,substitution,inverse homomorphism,reverse,union with a regular language, Intersection with a regular language,left difference with a regular language, left quotient with a RL, right quotient with RL kleen star ,subset.
And CFL NOT closed under only
Intersection,set difference,complement, right difference with a regular language.
Q 2 . Which activity is not included in the first pass of two pass assemblers?
(a) Build the symbol table
(b)Construct the intermediate code
(c)Separate mnemonic opcode and operand fields
(d)None of these
Ans -(d) None of these
Explanation:- since all the activities are included in the first pass of two pass assemblers so there is no option which not included in first pass of two pass assemblers.
Q 3.Which activity is included in the first pass of two pass assemblers?
(a) Build the symbol table
(b) Construct the intermediate code
(c) Seprate mnemonic opcode and operand fields
(d) None of these
Ans- friends here ans is a,b,c all are correct because all are included in the first pass of two pass assemblers, so don’t get confused.
Also see both above Questions you can compare them.
If needed topic detail ,then plz comment ,sooner I’ll provide detailed explanation of these topics.
Q 4. In two pass assembler the symbol table is used to store :
(a) Label and value
(b) Only value
(c) Mnemonic
(d) Memory Location
Ans- (a)Label and value
Explanation:- dear friends As we all know that
A TWO PASS ASSEMBLER makes two passes over the input program,that is It read the program twice. On the first first pass the symbol table is constructed.On the second pass, the complete symbol table is used to allow expressions . It is used to be evaluated without problems because forward reference is used there. It’s a very important topic if needed then comment I’ll explain in detail .
Q 5. Non modifiable procedures are called
(a) Seriall usable procedures
(b) Concurrent procedures
(c) Reentrant procedures
(d) Topdown procedures
Ans – (c) dear friends non modifiable procedures are called Reentrant procedures in this a single copy of the program code can be shared by multiple users at the same period of time, so ans is c.
These all 5 are Questions from year 2004 from unit 8 of Updated Syllabus of NTA UGC NET, you can also feel it very much beneficial for preparation of GATE Exams and computer science STUDENTS get benefits from these questions and explanations .
Plz suggest topics which you want to understand , I’ll defenately explain and all PYQS will be here soon unit wise and year wise .
Thanks a lot : BY JYOTI KUMARI