Question
A series follows a specific
pattern as shown below, but one of the terms is incorrect. There is another series that follows the same pattern as the first, but it begins with the incorrect term from the first series. What is the 2nd term of this second series? Series 1: 2, 14, 112, 672, 3360, 13440, 40320Solution
ATQ, Logic in the series is: 2 × 8 = 16 16 × 7 = 112 112 × 6 = 672 672 × 5 = 3360 3360 × 4 = 13440 13440 × 3 = 40320 Wrong term = 14 New series: 14 × 8 = 112 112 × 7 = 784 14, 112, 784 Hence, 2nd term of second series = 112
Which optimization technique involves replacing a sequence of instructions with a shorter or faster sequence, often by looking at a small "window" of in...
An S-attributed SDD (Syntax-Directed Definition) is one where:
Multithreading an interactive program will increase responsiveness to the user by ___________
The primary goal of code optimization is to:
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...
Which parsing method uses a stack and an input buffer?
A 3-address instruction typically has the form:
Which optimization is performed after intermediate code generation?
Which of the following parsers is the most powerful (can parse the largest class of grammars)?
Which phase of compilation groups characters into tokens?