Question
The average score of Neha in 5 subjects was recorded as 62.
However, her marks in Science and History were mistakenly entered as 49 and 60 instead of 59 and 72. What is her correct average score?Solution
ATQ,
Sum of marks according to wrong data = 62 × 5 = 310
Correct total marks = 310 - (49 + 60) + (59 + 72) = 332
Actual average marks = 332 ÷ 5 = 66.4
The primary goal of code optimization is to:
An "activation record" (or stack frame) is created for each function call and typically contains:
In a compiler, lexical analysis is responsible for:
"Dead code elimination" is an optimization that removes:
Which parsing method uses a stack and an input buffer?
The primary function of a "loader" is to:
"Liveness analysis" in code optimization determines:
The process of grouping characters into meaningful units (tokens) is performed by the:
Which of the following is a correct way to declare and initialize a pointer to an integer in C?
Which of the following is a technique used in code optimization?