Question
What is the primary role of lexical analysis in the
compilation process?Solution
Lexical analysis is the first phase of the compilation process. Its main task is to break the source code into tokens, which are meaningful units such as keywords, identifiers, literals, and operators. These tokens serve as input for the subsequent phases of the compiler.
Five persons M, N, O, P and Q, who all are of different heights. Who among the following is the shortest?
Statement I: N is shorter than only one...
Seven persons A, B, C, D, E, F and G are attending the interview on six different days starting from Monday to Sunday in a week but not necessarily in ...
Eight boxes M, N, O, P, Q, R, S and T are kept one above the other, such that the bottommost box is numbered as 1, the box above it is numbered as 2 and...
Which date in the month of July is definitely Harish mother’s birthday?
I. Harish correctly remembers that his mother’s birthday is a...
Among five states M, N, O, P and Q, M is in which direction with respect to N?
I.M is to the west of O, which is to the south of Q. N is to th...
Six cartons, L through Q are placed one above another, where the bottommost position is 1 and the position above it is 2 and so on. Which carton is plac...
Chetan, Farhan, Harish, Jaideep and Lalit like five different fruits - Banana, Apple, Guava, Mango and Litchi, though not necessarily in the same order....
Six persons P, Q, R, S, T and U are sitting around a circular table facing the centre but not necessarily in the same order. Who sits third to the left...
A question is given, followed by two statements numbered (I) and (II). You have to decide whether the data provided in the statements is sufficient to a...
Five persons L, M, N, O and P are sitting in a row facing south. Who is second to the right of L?
I. P sits third to right M. L is not an immedia...