Question
6 students ‘P’, ‘Q’, ‘R’, ‘S’, ‘T’ and
‘U’ took part in a quiz competition. The average score of all 6 was 72 marks. The average score of ‘P’, ‘R’, ‘S’ and ‘T’ was 70 marks. If ‘U’ scored 20 marks more than ‘Q’, then find the marks scored by ‘Q’.Solution
ATQ,
Sum of marks scored by all 6 students = 72 × 6 = 432
Sum of marks scored by ‘P’, ‘R’, ‘S’ and ‘T’ = 70 × 4 = 280
So, sum of marks scored by ‘Q’ and ‘U’ = 432 − 280 = 152
Let marks scored by ‘Q’ = x
Then, marks scored by ‘U’ = x + 20
So, x + x + 20 = 2x + 20 = 152
=> x = (152 − 20) ÷ 2 = 66
Which of the following is NOT a common form of 3-address code?
Which of the following tools is commonly used to generate a lexical analyzer (scanner) from a set of regular expressions?
Which of the following is NOT a typical task performed during the code optimization phase?
Which phase of compilation groups characters into tokens?
Which of the following parsers is the most powerful (can parse the largest class of grammars)?
Which of the following is the first phase of a compiler?
Multithreading an interactive program will increase responsiveness to the user by ___________
DBMS periodically suspends all processing and synchronizes its files and journals through the use of
Which statement about intermediate code is TRUE?
Which phase of the compiler checks the type consistency of the program?