1
GATE CSE 1995
MCQ (Single Correct Answer)
+1
-0.3
In some programming languages, an identifier is permitted to be a letter following by any number of letters or digits. If L and D denote the sets of letters and digits respectively, which of the following expressions defines an identifier?
A
$${\left( {L \cup D} \right)^ + }$$
B
$$L{\left( {L \cup D} \right)^*}$$
C
$${\left( {L.D} \right)^*}$$
D
$$L{\left( {L.D} \right)^*}$$
2
GATE CSE 1995
MCQ (Single Correct Answer)
+1
-0.3
Which of the following strings can definitely be said to be tokens without looking at the next input character while compiling a Pascal program?

I. begin
II. program
III. <>

A
I
B
II
C
III
D
All of the above
3
GATE CSE 1995
MCQ (Single Correct Answer)
+2
-0.6

A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar.

$$\eqalign{ & S \to xxW\,\left\{ {pr{\mathop{\rm int}} \,'1'} \right\} \cr & S \to y\,\left\{ {pr{\mathop{\rm int}} \,'2'} \right\} \cr & W \to Sz\,\left\{ {pr{\mathop{\rm int}} \,'3'} \right\} \cr} $$

What is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules?

A
23131
B
11233
C
11231
D
33211
4
GATE CSE 1995
MCQ (Single Correct Answer)
+1
-0.3
A linker is given object modules for a set of programs that were compiled separately. What information need to be included in an object module?
A
Object code
B
Relocation bits
C
Names and locations of all external symbols defined in the object module
D
Absolute addresses of internal symbols
EXAM MAP
Medical
NEET
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
CBSE
Class 12