Description : Consider the following statements related to compiler construction: I. Lexical Analysis is specified by context-free grammars and implemented by pushdown automata. II. Syntax Analysis is specified by regular expressions and implemented by ... Only l (2) Only ll (3) Both I and II (4) Neither I nor Il
Last Answer : Answer: 4
Description : What are the stages in the compilation process? A) Feasibility study, system design and testing B) Implementation and documentation C) Lexical Analysis, syntax analysis, and code generation D) None of the above
Last Answer : Answer : C
Description : compiler optimization, operator strength reduction uses mathematical identities to replace slow math operations with faster operations. Which of the following code replacements is an illustration of operator strength reduction? (A) Replace P + ... * P or Replace 3 + 4 by 7. (B) Replace P * 32 by P
Last Answer : (B) Replace P * 32 by P
Description : The compiler _ translate a program code with any syntax error: a. Can b. Cannot c. Without d. None of these
Last Answer : b. Cannot
Description : Loop unrolling is a code optimization technique: (A) that avoids tests at every iteration of the loop (B) that improves performance by decreasing the number of instructions in a basic block. ... loops with outer loops (D) that reorders operations to allow multiple computations to happen in parallel.
Last Answer : (A) that avoids tests at every iteration of the loop
Description : What is the output of the following code? a={1:"A",2:"B",3:"C"} print(a.get(5,4)) a) Error, invalid syntax b) A c) 5 d) 4
Last Answer : d) 4
Description : What is the output of the following piece of code? >>> a=(0,1,2,3,4) >>> b=slice(0,2) >>> a[b] a) Invalid syntax for slicing b) [0,2]. c) (0,1) d) (0,2)
Last Answer : c) (0,1)
Description : What is the output of the following piece of code when executed in Python shell? >>> a=("Check")*3 >>> a a) (‘Check’,’Check’,’Check’) b) * Operator not valid for tuples c) (‘CheckCheckCheck’) d) Syntax erro
Last Answer : c) (‘CheckCheckCheck’)
Description : A mistake in an algorithm that causes incorrect results is called a a) logical error b) syntax error c) procedural error d) compiler error e) None of these
Last Answer : b) syntax error
Description : The errors that can be pointed out by the compiler are 1) Syntax error 2) Symantic error 3) Logical error 4) Internal error
Last Answer : 1) Syntax error
Description : Which of the following techniques is NOT a black box technique? a) State transition testing b) LCSAJ (Linear Code Sequence and Jump) c) syntax testing d) boundary value analysis
Last Answer : b) LCSAJ (Linear Code Sequence and Jump)
Description : Which of the following is not the function of client? A) Compile queries B) Query optimization C) Receive queries D) Result formatting and presentation
Last Answer : B) Query optimization
Description : Which of the following is/are the Database server functions? i) Data management ii) Transaction management iii) Compile queries iv) Query optimization A) i, ii, and iv only B) i, ii and iii only C) ii, iii and iv only D) All i, ii, iii, and iv
Last Answer : A) i, ii, and iv only
Description : ............... package is used by compiler itself. So it does not need to be imported for use. A) java.math B) java.awt C) java.applet D) java.lang
Last Answer : D) java.lang
Description : Ingres is a ........................ A) Socket B) Compiler C) Database D) Web server
Last Answer : C) Database
Description : In the second type the information written in java after // is ignored by the ....................... A) Interpreter B) Compiler C) Programmer D) All of the above
Last Answer : B) Compiler
Description : When the operators are having the same priority, they are evaluated from ................. ............. in the order they appear in the expression. A) right to left B) left to right C) any of the order D) depends on compiler
Last Answer : B) left to right
Description : The compiler converts all operands upto the type of the largest operand is called (A) Type Promotion (B) Type Evaluation (C) Type Conversion (D) Type Declaration
Last Answer : (A) Type Promotion
Description : The ............... transfers the executable image of a C++ program from hard disk to main memory. (A) Compiler (B) Linker (C) Debugger (D) Loader
Last Answer : (D) Loader
Description : Which one of the following is correct for overloaded functions in C++? (1) Compiler sets up a separate function for every definition of function. (2) Compiler does not set up a ... functions cannot handle different types of objects. (4) Overloaded functions cannot have same number of arguments.
Last Answer : Answer: 1
Description : The grammar with production rules S → aSb |SS|λ generates language L given by: (A) L = {w∈{a, b}* | na(w) = nb(w) and na(v) ≥ nb(v) where v is any prefix of w} (B) L = {w∈{a, b}* | na(w) = nb(w) and na(v ... (D) L = {w∈{a, b}* | na(w) ≠ nb(w) and na(v) ≤ nb(v) where v is any prefix of w}
Last Answer : (A) L = {w∈{a, b}* | na(w) = nb(w) and na(v) ≥ nb(v) where v is any prefix of w}
Description : Synchronization is achieved by a timing device called a ................. which generates a periodic train of .................. (A) clock generator, clock pulse (B) master generator, clock pulse (C) generator, clock (D) master clock generator, clock pulse
Last Answer : Answer: A and D
Description : How does randomized hill-climbing choose the next move each time? (A) It generates a random move from the moveset, and accepts this move. (B) It generates a random move from the whole state ... move from the whole state space, and accepts this move only if this move improves the evaluation function.
Last Answer : (C) It generates a random move from the moveset, and accepts this move only if this move improves the evaluation function.
Description : Consider the following statements: (a) Revised simplex method requires lesser computations than the simplex method. (b) Revised simplex method automatically generates the inverse of the current basis matrix. (c) Less number of entries are needed ... c) only (C) (b) and (c) only (D) (a), (b) and (c)
Last Answer : (D) (a), (b) and (c)
Description : Which of the syntax is correct for insert statement? i) insert into values ii) insert into (column list) values A) i-only B) ii-only C) Both of them D) None of them
Last Answer : C) Both of them
Description : To select all column from the table the syntax is: A) select all from table_name B) select * from table_name C) select from table_name D) Non of the above
Last Answer : B) select * from table_name
Description : Suppose d = { john :40, peter :45}, what happens when we try to retrieve a value using the expression d[ susan ]? a) Since susan is not a value in the set, Python raises a KeyError ... Python raises a KeyError exception d) Since susan is not a key in the set, Python raises a syntax error
Last Answer : c) Since “susan” is not a key in the set, Python raises a KeyError exception
Description : Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], which of the following is correct syntax for slicing operation? a) print(list1[0]) b) print(list1[:2]) c) print(list1[:-2]) d) all of the mentioned
Last Answer : d) all of the mentioned
Description : Process of removing errors called a) Error Free b) Debug c) Syntax Error d) Exception
Last Answer : b) Debug
Description : What will be the output of the following segment of the program? main( ) { char *s = “hello world”; int i = 7; printf(“%, *s”, i, s); } (A) Syntax error (B) hello w (C) hello (D) o world
Last Answer : Answer: Marks given to all
Description : The syntax of capturing events method for document object is (A) CaptureEvents() (B) CaptureEvents(Orgs eventType) (C) CaptureEvents(eventType) (D) CaptureEvents(eventVal)
Last Answer : (C) CaptureEvents(eventType)
Description : Which one of the following describes the syntax of prolog program ? I. Rules and facts are terminated by full stop (.) II. Rules and facts are terminated by semicolon (;) III. Variables names must start with upper case alphabets. ... alphabets. Codes : (A) I, II (B) III, IV (C) I, III (D) II, IV
Last Answer : (C) I, III
Description : An Assertion is a predicate expressing a condition we wish database to always satisfy. The correct syntax for Assertion is : (A) CREATE ASSERTION ‘ASSERTION Name’ CHECK ‘Predicate’ (B) CREATE ASSERTION ‘ASSERTION NAME’ (C) CREATE ASSERTION, CHECK Predicate (D) SELECT ASSERTION
Last Answer : (A) CREATE ASSERTION ‘ASSERTION Name’ CHECK ‘Predicate’
Description : What is the output of the following program ? (Assume that the appropriate pre-processor directives are included and there is no syntax error) main() { char S[ ] = "ABCDEFGH"; printf ("%C",* (& ... Base address of S is 1000 */ } (A) ABCDEFGH1000 (B) CDEFGH1000 (C) DDEFGHH1000 (D) DEFGH1000
Last Answer : (D) DEFGH1000
Description : Javascript and Java has similar name because ........... is/are true. (a) Javascripts syntax is loosely based on Java's syntax (b) Javascript is stripped down version of Java (c) Java and Javascript are originated from Island of Java ... only (B) (a), (b) and (c) (C) (a) and (b) (D) (a) and (c)
Last Answer : Answer: A
Description : ………….. Phase is a time consuming phase and yet a very crucial phase A) Feasibility Study B) Requirement Phase C) Analysis Phase D) Testing Phase
Last Answer : C) Analysis Phase
Description : Which one of the following statements, related to the requirements phase in Software Engineering, is incorrect ? (A) Requirement validation is one of the activities in the requirements phase. (B) ... . (D) Function points is one of the most commonly used size metric for requirements.
Last Answer : (C) “Modelling-oriented approach” is one of the methods for specifying the functional specifications.
Description : Why is the halogenation of alkanes considered a chain reaction? (a) it occurs quickly. (b) it occurs without the generation of intermediates. (c) each step generates the reactive intermediate that causes the next step to occur. (d) the reaction allows long chains of halogenated alkanes to be formed
Last Answer : each step generates the reactive intermediate that causes the next step to occur
Description : What is the biggest difference between CPA and CLV analysis A. CPA is more appropriate for short term, tactical optimization B. CLV is truly customer-centric C. CLV encompasses online and offline customer touchpoints and uses back-office data D. All of the above
Last Answer : D. All of the above
Description : Compared with other phases of the new product development process, the largest number of new product ideas are rejected during the ______ phase 1. idea generation 2. concept testing 3. business analysis 4. screening 5. test marketing
Last Answer : screening
Description : Compared with other phases of the new product development process, the largest number of new -product ideas are rejected during the __________ phase. A)idea generation B)concept testing C)business analysis D)screening E)test marketing
Last Answer : D)screening
Description : Nestle wants to expand its line of food products. The managers sent surveys to customers to determine which food items would appeal to customers. Nestle is currently in the _________ phase ... development. A)business analysis B)product development C)test marketing D)screening E)idea generation
Last Answer : E)idea generation
Description : Shift-Reduce parsers perform the following : (A) Shift step that advances in the input stream by K(K>1) symbols and Reduce step that applies a completed grammar rule to some recent parse trees, ... in the input stream and Reduce step that applies a completed grammar rule to form a single tree.
Last Answer : (B) Shift step that advances in the input stream by one symbol and Reduce step that applies a completed grammar rule to some recent parse trees, joining them together as one tree with a new root symbol.
Description : Okay...WHAT exactly is SEO (Search Engine Optimization)? Is it writing code? Is it programming? Web design? Can someone please clarify?
Last Answer : It is making sure Google can read the contents of your website. For example, when you stuff all your text in an image, Google's automated process won't be able to read it. However, if you ... to write valid HTML and accessible pages and on providing good content that Google will want to list high.
Description : A two-phase generator is connected to two 90Ω load resistors. Each coil generates 120 V ac. The value of current flowing through the common neutral line will be: A. 1.33 A B. 1.88 A C. 2.66 A D. 1.77 A
Last Answer : A two-phase generator is connected to two 90Ω load resistors. Each coil generates 120 V ac. The value of current flowing through the common neutral line will be: 1.77 A
Description : What do you call the translator which takes assembly language program as input & produce machine language code as output? A) Compiler B) Interpreter C) Debugger D) Assembler
Last Answer : Answer : D
Description : What is a compiler? A) A compiler does a conversion line by line as the program is run B) A compiler converts the whole of a higher level program code into machine code in one step C) A compiler is a general purpose language providing very efficient execution D) None of the above
Last Answer : Answer : B
Description : Which analyses and executes the source code in line-by-line manner, without looking at the entire program? A. Compiler B. Interpreter C. Assembler D. None of the above
Last Answer : B. Interpreter
Description : Which of the following language is the closest to the machine code? A. Compiler B. Interpreter C. Assembler D. None of the above
Last Answer : C. Assembler
Description : If you needed to execute some code repeatedly based on a certain condition, which of the following would you use: a) Compiler b) Loop c) Variable d) None of These
Last Answer : b) Loop