GATE Compiler Design Full Mock Test SET-1

Questions 61-65 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 61

MCQ · Single Correct 1 mark

In compiler code optimization, what is a Basic Block?

Answers for question 61

Question 62

MCQ · Single Correct 1 mark

In basic block identification rules, which instruction is designated as a 'Leader'?

Answers for question 62

Question 63

MCQ · Single Correct 1 mark

Which code optimization replaces an expensive operation (e.g. multiplication x * 2 or i * 4 in a loop) with a cheaper operation (e.g. shift x << 1 or addition addr + 4)?

Answers for question 63

Question 64

MCQ · Single Correct 1 mark

Evaluating constant expressions at COMPILE-TIME (e.g. replacing x = 3 + 5 * 2 with x = 13) is known as:

Answers for question 64

Question 65

MCQ · Single Correct 1 mark

Replacing variable y with constant value 5 in expressions following assignment y = 5 (provided y is not modified) is known as:

Answers for question 65
Scroll to Top