Question
There are 15 numbers such that average of first 12
numbers is 50 while the average of last five numbers is 60. Find the 12th number, if the ratio between 11th and 12th number is 13:7, respectively.Solution
Sum of first 12 numbers = (12 x 50) = 600 Sum of last 5 numbers = (60 x 5) = 300 Sum of 11th and 12th number = (600 - 300) = 300 So, 12th number = 300 x (7/20) = 105
Which of the following is the first phase of a compiler?
The surface area of tape is ________ the surface area of a disk.
In LR parsing, what does the term "shift" mean?
Which of the following is a technique used in code optimization?
An S-attributed SDD (Syntax-Directed Definition) is one where:
Which of the following is a correct way to declare and initialize a pointer to an integer in C?
Which technique is used to handle left recursion in a grammar?
The primary role of the parser is to:
Which of the following tasks is NOT performed during lexical analysis?
Which phase of a compiler is responsible for creating a stream of tokens from the input source code?