Question
Statements: Only cars are motorcycles. No
motorcycle is a bike. Some bikes are scooters. All scooters are jeeps. Conclusions: I. Some scooters are not motorcycles. II. No bike is a motorcycle. In each of the questions below are given four statements followed by two conclusions numbered I and II . You have to take the given statements to be true even if they seem to be at variance with commonly known facts. Read all the conclusions and then decide which of given conclusions logically follows from the given statements disregarding commonly known facts.Solution
No motorcycle is a bike (E) + Some bikes are scooters (I) = Some scooters are not motorcycles (O). Hence, Conclusion I will follow. No motorcycle is a bike (E) ⇒ Conversion ⇒ No bike a motorcycle (E).Hence, Conclusion II will follow.
Which of the following tools is commonly used to generate a lexical analyzer (scanner) from a set of regular expressions?
A "shift/reduce conflict" in an LR parsing table occurs when:
What is the primary output of the parsing phase in a compiler?
"Liveness analysis" in code optimization determines:
Which phase of a compiler is responsible for creating a stream of tokens from the input source code?
Which phase of the compiler checks the type consistency of the program?
Which of the following is NOT a type of intermediate code?
Which optimization technique involves replacing a sequence of instructions with a shorter or faster sequence, often by looking at a small "window" of in...
Which statement about intermediate code is TRUE?
What is the primary output of the lexical analysis phase of a compiler?