Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  During intermediate code generation, we use 3... Start Learning for Free
During intermediate code generation, we use 3 - address code in which we have 3 forms available:
Quadruples, Triples and Indirect Triples.
Now, consider the below statements:
S1: In Quadruples, statements can be moved around.
S2: In Triples, space is not wasted.
S3: In Indirect Triples, space is not wasted but access time increases.
Which is correct?
  • a)
     S1
  • b)
     S2
  • c)
     S3
  • d)
     None of these
Correct answer is option 'A,B,C'. Can you explain this answer?
Verified Answer
During intermediate code generation, we use 3 - address code in which ...
As we know,
S1: It is true, in quadruples, statements can be moved.
S2: In Triples, space is not wasted because the result field is not used.
S3: In Indirect Triples, space is not wasted but access time increases.
Here two memory access is required, that’s why access time is more.
Hence, the correct options are (A), (B) and (C).
View all questions of this test
Most Upvoted Answer
During intermediate code generation, we use 3 - address code in which ...
As we know,
S1: It is true, in quadruples, statements can be moved.
S2: In Triples, space is not wasted because the result field is not used.
S3: In Indirect Triples, space is not wasted but access time increases.
Here two memory access is required, that’s why access time is more.
Hence, the correct options are (A), (B) and (C).
Free Test
Community Answer
During intermediate code generation, we use 3 - address code in which ...
Understanding Intermediate Code Generation
Intermediate code generation uses three-address code to simplify the compilation process. Let's analyze the given statements regarding Quadruples, Triples, and Indirect Triples.
Statement S1: In Quadruples, statements can be moved around.
- Quadruples represent a statement as a four-tuple (operator, arg1, arg2, result).
- This structure allows for easy rearrangement of statements in the intermediate code.
- Therefore, S1 is correct.
Statement S2: In Triples, space is not wasted.
- Triples represent statements without assigning temporary variables, using three fields (operator, arg1, arg2).
- Each operation is stored in a single location, referencing the results by position.
- This minimizes space usage compared to Quadruples, making S2 correct.
Statement S3: In Indirect Triples, space is not wasted but access time increases.
- Indirect Triples use an additional level of indirection by referencing the location of the operations.
- While this method conserves space by not duplicating results, it requires additional lookups to access the actual operations.
- Hence, S3 is also correct.
Conclusion
- All three statements (S1, S2, S3) accurately describe the characteristics of Quadruples, Triples, and Indirect Triples.
- Therefore, the correct answer is indeed options A, B, C.
This understanding is crucial for optimizing code generation in compilers, impacting both efficiency and performance.
Explore Courses for Computer Science Engineering (CSE) exam
Question Description
During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer?.
Solutions for During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer?, a detailed solution for During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? has been provided alongside types of During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice During intermediate code generation, we use 3 - address code in which we have 3 forms available:Quadruples, Triples and Indirect Triples.Now, consider the below statements:S1: In Quadruples, statements can be moved around.S2: In Triples, space is not wasted.S3: In Indirect Triples, space is not wasted but access time increases.Which is correct?a)S1b)S2c)S3d)None of theseCorrect answer is option 'A,B,C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam
Signup to solve all Doubts
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev