0% found this document useful (0 votes)
3 views

LanguageMCQ

The document provides a comprehensive overview of compiler design, including definitions of machine language, compilers, and various stages of compiler design such as lexical analysis and semantic analysis. It discusses the role of the symbol table, types of errors a compiler can check, and the differences between high-level and low-level languages. Additionally, it covers parsing techniques, the output of lexical analyzers, and the significance of grammar in compiler construction.

Uploaded by

vipsoffice.sln
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

LanguageMCQ

The document provides a comprehensive overview of compiler design, including definitions of machine language, compilers, and various stages of compiler design such as lexical analysis and semantic analysis. It discusses the role of the symbol table, types of errors a compiler can check, and the differences between high-level and low-level languages. Additionally, it covers parsing techniques, the output of lexical analyzers, and the significance of grammar in compiler construction.

Uploaded by

vipsoffice.sln
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 36

The language made up of binary coded instructions.

a) Machine
b) C
c) BASIC
d) High level

Answer: a
Explanation: The language made up of binary coded instructions built into the
hardware of a particular computer and used directly by the computer is machine
language.

What is a compiler?
a) system program that converts instructions to machine language
b) system program that converts machine language to high-level language
c) system program that writes instructions to perform
d) None of the mentioned

Answer: a
Explanation: A compiler is a system program that converts instructions in form of
code to machine understandable language.

Which of the following is a stage of compiler design?


a) Semantic analysis
b) Intermediate code generator
c) Code generator
d) All of the mentioned

Answer: d
Explanation: The phases of a compiler are:
1. Lexical analysis
2. Syntax analysis
3. Semantic analysis
4. Intermediate code generator
5. Code optimizer
6. Code generator

What is the use of a symbol table in compiler design?


a) Finding name’s scope
b) Type checking
c) Keeping all of the names of all entities in one place
d) All of the mentioned

Answer: d
Explanation: Both the analysis and synthesis components of a compiler use the
symbol table.
i) To keep all of the names of all entities in one place in a systematic format.
ii) To determine whether or not a variable has been declared.
iii) Type checking is implemented by ensuring that assignments and expressions in
source code are semantically accurate.
iv) To figure out what a name’s scope is (scope resolution).

Which of the following error can a compiler check?


a) Syntax Error
b) Logical Error
c) Both Logical and Syntax Error
d) Compiler cannot check errors

Answer: a
Explanation: Logic flaws can never be checked by a compiler.

A programmer, writes a program to multiply two numbers instead of


dividing them by mistake, how can this error be detected?
a) Compiler or interpreter
b) Compiler only
c) Interpreter only
d) None of the mentioned

Answer: d
Explanation: This is a logical error that can’t be detected by any compiler or
interpreter.

Who is responsible for the creation of the symbol table?


a) Assembler
b) Compiler
c) Interpreter
d) All of the mentioned
Answer: b
Explanation: The compiler generates a symbol table, which contains a list of
lexemes or tokens.

Which of the following is a system program that integrates a program’s


individually compiled modules into a form that can be executed?
a) Interpreter
b) Assembler
c) Compiler
d) Linking Loader

Answer: d
Explanation: A loader that combines the functionality of a relocation loader with the
ability to combine a number of independently compiled program segments.

Which of the following is a definition of compiler?


a) Acceptance of a program written in a high-level language and produces an object
program
b) Program is put into memory and executes it
c) Translation of assembly language into machine language
d) None of the mentioned

Answer: a
Explanation: A compiler is a software (or combination of programs) that converts
source code written in one programming language (the source language) into code
written in another programming language (the target language) (the target language,
often having a binary form known as object code).

Which of the following error can Compiler diagnose?


a) Logical errors only
b) Grammatical and logical errors
c) Grammatical errors only
d) All of the mentioned

Answer: c
Explanation: Only syntactical errors can be detected by the compiler.
Which of the following can detect an error if a programmer by mistake
writes multiplication instead of division?
a) Interpreter
b) Compiler or interpreter test
c) Compiler
d) None of the mentioned

Answer: d
Explanation: No Logical errors can’t be detected.

Binary code comprises of digits from 0 to 9.


a) True
b) False

Answer: b
Explanation: The statement is false. Binary as the word suggests contains only 2
digits : 0 and 1.
0 denotes false and 1 denotes a truth value.

The ___________ contains the address of the next instruction to be executed.


a) IR
b) PC
c) Accumulator
d) System counter

Answer: b
Explanation: PC stands for program counter (It contains the address of the next
instruction to be executed).

A document that specifies how many times and with what data the program
must be run in order to thoroughly test it.
a) addressing plan
b) test plan
c) validation plan
d) verification plan

Answer: b
Explanation: Test plan is the A document that specifies how many times and with
what data the program must be run in order to thoroughly test it. It comes under
testing.

The formal grammar rules governing the construction of valid instruction.


a) test case
b) syntax
c) program
d) semantics

Answer: b
Explanation: Syntax determines the grammatical rules in a code. Semantics give
meaning to the instructions.

A program that reads each of the instructions in mnemonic form and


translates it into the machine-language equivalent.
a) Machine language
b) Assembler
c) Interpreter
d) C program

Answer: b
Explanation: Assembler does this job. A language that uses mnemonic codes for the
representation of machine-language instructions is called assembly language.

The rules that give meaning to the instructions.


a) Semantics
b) Syntax
c) Code
d) Cases
Answer: a
Explanation: The answer is semantics. They are the rules that give meaning to the
instructions. The syntax is the formal rules that ensure validation of code.

Each personal computer has a _________ that manages the computer’s


arithmetical, logical and control activities.
a) Microprocessor
b) Assembler
c) Microcontroller
d) Interpreter

Answer: a
Explanation: Microprocessor handles all these activities. Each family of processors
has its own set of instructions for handling various operations like getting input from
keyboard, displaying information on a screen and performing various other jobs.

Assembly Language requires less memory and execution time.


a) True
b) False

Answer: a
Explanation: The statement is true.
Advantages of using assembly language are:
• It requires less memory and execution time.
• It allows hardware-specific complex jobs in an easier way.
• It is suitable for time-critical jobs.

A direct reference of specific location.


a) Segment Address
b) Absolute Address
c) Offset
d) Memory Address

Answer: b
Explanation: There are two kinds of memory addresses:
• An absolute address – a direct reference of specific location.
• The segment address (or offset) – starting address of a memory segment with the
offset value.

A Borland Turbo Assembler.


a) nasm
b) tasm
c) gas
d) asm

Answer: b
Explanation: Tasm is the borland turbo assembler. Nasm is used with linux
generally. Gas is the GNU assembler.

The instructions that tell the assembler what to do.


a) Executable instructions
b) Pseudo-ops
c) Logical instructions
d) Macros

Answer: a
Explanation: The executable instructions or simple instructions tell the processor
what to do. Each instruction consists of an operation code (opcode). Each executable
instruction generates one machine language instruction.

The segment containing data values passed to functions and procedures


within the program.
a) Code
b) Data
c) Stack
d) System

Answer: c
Explanation: The stack segment contains data values passed to functions and
procedures within the program. The code segment defines an area in memory that
stores the instruction codes.

To speed up the processor operations, the processor includes some internal


memory storage locations, called ___________
a) Drives
b) Memory
c) Units
d) Registers

Answer: d
Explanation: The processor has some internal memory storage locations, known as
registers. The registers stores data elements for processing without having to access
memory.

Each byte of character is stored as its ASCII value in _______


a) Hexadecimal
b) Binary
c) Octal
d) Decimal

Answer: a
Explanation: Assembly language deals with hexadecimal values only. Each decimal
value is automatically converted to its 16-bit binary equivalent and stored as a
hexadecimal number.

Prolog comes under ___________


a) Logic Programming
b) Procedural Programming
c) OOP
d) Functional

Answer: a
Explanation: Prolog stands for Programming in Logic. The options mentioned are the
four categories of programming. Prolog is a type of logic programming.

Java is procedural programming.


a) True
b) False

Answer: b
Explanation: The statement is false. Java is a type of object oriented programming
language. It involves solving real-life problems as well.

A program that can execute high-level language programs.


a) Compiler
b) Interpreter
c) Sensor
d) Circuitry

Answer: b
Explanation: Interpreter is a program that can execute high-level language
programs “directly,” without first being translated into machine language.
Executables might be called ________
a) native code
b) executable code
c) complex code
d) machine code

Answer: a
Explanation: The executables are sometimes called native code. HLL are translated
to Machine language called the native code.

Source program is compiled to an intermediate form called ___________


a) Byte Code
b) Smart code
c) Executable code
d) Machine code

Answer: a
Explanation: The Source program is compiled to an intermediate form called byte
code. For each supported platform, write a “virtual machine” emulator that reads byte
code and emulates its execution.

_______________ is the assembly language for an imaginary architecture.


a) Byte code
b) Machine code
c) Native code
d) Executable code

Answer: a
Explanation: Source program is compiled to an intermediate form – byte code. Byte
code is the assembly language for an imaginary architecture.

JIT stands for?


a) Just in time
b) Jump in time
c) Jump in text
d) Jump in terms

Answer: a
Explanation: JIT stands for Just in time. JVMs actually compile each bytecode
instruction to native code the first time it is used.
JVM stands for?
a) Java virtual machine
b) Java visual machine
c) JRE virtual machine
d) JRE visual machine

Answer: a
Explanation: JVM stands for Java Virtual Machine. Other related terms are JRE which
is java runtime environment and JDK which is java development kit.

A language supported by MS. Net platform.


a) C
b) C++
c) java
d) C#

Answer: d
Explanation: C# is supported by MS. Net platform. JAVA was originally designed for
web purposes.

Which of the following isn’t a characteristic of High level languages?


a) machine code
b) platform independent
c) interactive execution
d) user-friendly

Answer: a
Explanation: HLL isn’t in machine language. It is converted to machine language for
further processing.

Users write the programs in which language?

a. Low-level Language

b. High-Level Language

c. Decimal-Format
d. Middle-Level Language

Answer: b. High-Level Language

Explanation: Users write the program in a high-level language because it is easier to


use, understand and remember.

Which computer program accepts the high-level language and converts it


into assembly language?

a. Interpreter

b. Linker

c. Assembler

d. Compiler

Answer: d. Compiler

Explanation: Compiler is a computer program that accepts the code written in a


high-level language and converts that code into the assembly language.

Does the compiler program translate the whole source code in one step?

a. No

b. Depends on the Compiler

c. Don't Know

d. Yes

Answer: d. Yes

Explanation: The compiler is that program which translates the whole high-level
code into the machine code at once.

Which of the following file is an output of the assembler?

a. Program file
b. Object file

c. Data File

d. Task File

Answer: b. Object File

Explanation: The object file contains the object code, which is an output of an
assembler.

Which tool is used for grouping of characters in tokens in the compiler?

a. Parser

b. Code optimizer

c. Code generator

d. Scanner

Answer: d. Scanner

Explanation: Scanner is a subroutine which is called by the compiler program. The


scanner combines the characters and implements them to produce tokens.

What is the linker?

a. It is always used before the program execution.

b. It is required to create the load module.

c. It is the same as the loader

d. None of the above

Answer: b. It is required to create the load module.

Explanation: Linker is a program in the compiler which is required to create a load


module.

Parsing is categorized into how many types?

a. three types
b. four types

c. two types

d. five types

Answer: c. two types

Explanation: In the compiler design, the parser is mainly categorized into top-down
parsing and bottom-up parsing.

In which parsing, the parser constructs the parse tree from the start symbol
and transforms it into the input symbol.

a. Bottom-up parsing

b. Top-down parsing

c. None of the above

d. Both a and b

Answer: b. Top-Down Parsing

Explanation: Top-down parsing is a technique which constructs the parse tree from
the start symbol and transforms it to the input symbol. This type of parsing is also
referred to as predictive or recursive parsing.

Which derivation is generated by the top-down parser?

a. Right-most derivation in reverse

b. Left-most derivation in reverse

c. Right-most derivation

d. Left-most derivation

Answer: d. Left-most derivation

Explanation: Top-down parser generates the left-most derivation. It constructs the


parse tree from left to right and constructs the left-most derivation of the specified
sentence.
Which derivation is generated by the bottom-up parser?

a. Right-most derivation in reverse

b. Left-most derivation in reverse

c. Right-most derivation

d. Left-most derivation

Answer: a. Right-most derivation in reverse.

Explanation: Bottom-up parser generates the right-most derivation in reverse. It


constructs the parse tree from the input string to the root and tries to construct the
right-most derivation of the specified string backward.

Which parser is most powerful in the following parsers?

a. Operator Precedence

b. SLR

c. Canonical LR

d. LALR

Answer: c. Canonical LR

Explanation: Canonical LR (CLR) is the most powerful parser than LALR and SLR.

The output of the lexical analyzer is _______

a. string character

b. a syntax tree

c. a set of RE

d. a set of tokens

Answer: d. a set of tokens


Explanation: Lexical analyzer gives the set of tokens as output. The set of tokens
contains keywords, separators, literals, identifiers, and operators.

From the following grammars, which describes the lexical syntax?

a. Lexical Grammar

b. Context-free Grammar

c. Syntactic Grammar

d. Regular Grammar

Answer: a. Lexical Grammar

Explanation: Lexical grammar is a type of grammar which specifies the syntax of


tokens.

Which grammar gives multiple parse trees for the same string?

a. Unambiguous

b. Regular

c. Ambiguous

d. All of the above

Answer: c. Ambiguous

Explanation: Ambiguous grammar is a context-free grammar which gives more than


one leftmost or rightmost derivation for the same specified sentence.

In Compiler lexical analyzer is used for?

a. removing comments

b. removing whitespace

c. breaking the syntaxes in the set of tokens

d. All of the mentioned

Answer: d. All of the mentioned

Explanation: Lexical analyzer is used in the compiler for removing the Whitespace
and comments. It is also used in breaking the syntaxes into the set of tokens.
Which is considered as the sequence of characters in a token?

a. Mexeme

b. Lexeme

c. Texeme

d. Pattern

Answer: b. Lexeme

Explanation: Lexemes are the string of alphanumeric characters in a single token. In


the source program, lexemes are characters which are identified by the pattern for a
token.

Which part of the compiler highly used the grammar concept?

a. Code optimization

b. Code generation

c. Parser

d. Lexical Analysis

Answer: c. Parser

Explanation: The concept of grammar is much used in the parser phase of the
compiler.

The parser phase is next to the lexical analysis phase in the compiler. Parser
generated the parse tree using the predefined grammar. The parser has two different
techniques for creating a different parse tree.
Which phase of the compiler checks the grammar of the programming?

a. Code Optimization

b. Semantic Analysis

c. Code Generation

d. Syntax Analysis

Answer: d. Syntax Analysis

Explanation: Syntax Analysis is the 2nd phase of the compiler, which checks the
given input string is the correct syntax of the programming language.

Which of the following component is important for semantic analysis?

a. Yacc

b. Lex

c. Symbol Table

d. Type Checking

Answer: d. Type checking

Explanation: In the semantic analysis, type checking is an important component


because it verifies the program's operations from the semantic conventions.

Which phase of the compiler is also known as Scanner?

a. Syntax Analysis

b. Lexical Analysis

c. Semantic Analysis

d. Code generation

Answer: b. Lexical Analysis

Explanation: The first part of the compiler (lexical analysis) is also known as a
scanner. It scans the characters from the source program and implements them to
produce tokens.
Which phase of the compiler is also known as Parser?

a. Code Optimization

b. Semantic Analysis

c. Syntax Analysis

d. Lexical Analysis

Answer: c. Syntax Analysis

Explanation: The phase of the compiler next to the lexical analysis phase is also
known as Parser.

Syntax analysis or parser accepts the tokens produced by the lexical analysis and
gives the parse tree in the output.

Which of the following parser is a top-down parser?

a. An LALR parser

b. A LR parser

c. Operator precedence parser

d. Recursive descent parser

Answer: d. Recursive descent parser

Explanation: Recursive descent parser is a type of top-down parser which generates


the parse tree from top to bottom and reads the input string from left to right.

Keywords are recognized in a compiler during -

a. the code generation

b. the data flow analysis

c. the lexical analysis of the program

d. the program parsing


Answer: c. the lexical analysis of the program

Explanation: Keywords are firstly recognized during the lexical analysis of the
program in the compiler.

Leaf nodes in a parse tree indicate?

a. sub-terminals

b. half-terminals

c. non-terminals

d. terminals

Answer: d. terminals.

Explanation: All the leaf nodes in the parse tree indicate the terminals. And all the
interior nodes indicate non-terminals.

Which graph describes the basic block and successor relationship?

a. Control graph

b. DAG

c. Flow graph

d. Hamilton graph

Answer: c. Flow graph

Explanation: A flow graph is a graph of the compiler which describes the basic
blocks and how the program control is passed between the blocks.

In the compiler, the function of using intermediate code is:

a. to improve the register allocation

b. to increase the error reporting & recovery.

c. to make semantic analysis easier.

d. to increase the chances of re-using the machine-independent code optimizer in


other compilers.
Answer: d. to increase the chances of re-using the machine-independent code
optimizer in other compilers.

Explanation: After semantic analysis, the intermediate code increases the chances
of reusing the machine-independent code optimizer in other compilers.

In how many types of optimization can be divided?

a. two types

b. three types

c. four types

d. five types

Answer: a. two types

Explanation: The code optimization technique is divided into machine-dependent


and machine-independent types.

Which compiler runs on one machine and generates code for multiple
machines?

a. Multipass compiler

b. Cross compiler

c. Optimizing compiler

d. Onepass compiler

Answer: b. Cross compiler

Explanation: Cross compiler is a compiler which runs on one machine and generates
code for more than one machine.
Which of the following is not a characteristic of the compiler?

a. More execution time

b. Debugging process is slow

c. The execution takes place after the removal of all syntax errors

d. Firstly scans the entire program and then transforms it into machine-
understandable code

Answer: a. More execution time

Explanation: The compiler does not take more time to execute. So, more execution
time is not a characteristic of the compiler.

The compiler can detect what type of errors?

a. neither logical nor grammatical error

b. logical errors only

c. grammatical errors only

d. both grammatical and logical errors

Answer: c. grammatical errors only.

Explanation: Compiler is a computer program that detects grammatical errors, not


logical errors.

37) Which symbol is not related to context-free grammar?

a. End symbol

b. Start symbol

c. Non-terminal symbol

d. Terminal symbol
Answer: a. End symbol

Explanation: Context-free grammar is that grammar which consists of the start


symbol, set of terminals, set of non-terminal symbols and the set of productions.

FORTRAN programming language is a _______

a. Turing language

b. Context-sensitive language

c. Context-free language

d. Regular language

Answer: b. Context-sensitive language.

Explanation: Context-sensitive languages are those languages which are defined by


context-sensitive grammar.

The execution time of the code depends on?

a. the usage of machine idioms

b. the way the registers are used

c. the orders in which the computations are performed

d. All of the mentioned

Answer: d. All of the mentioned

Explanation: None

Which of the following is used in various stages or phases of the compiler?

a. Records

b. Program

c. Symbol Table
d. Table

Answer: c. Symbol Table

Explanation: A symbol table is simply a table which is created and maintained by the
compiler and used in various phases of the compiler.

. __________ refers to the process of locating and correcting errors.


a) Testing
b) Debugging
c) Retransforming
d) Correcting

Answer: b
Explanation: The errors that occur in an application need to be located and
corrected so that the application runs correctly that is without any error. Such a
process of locating and correcting errors is known as debugging.

Errors are called as __________ in a program.


a) Bugs
b) Errors
c) Invalid data
d) Exceptions

Answer: a
Explanation: Errors are called bugs in a program. Program bugs typically are caused
by two types of errors that is syntax errors or logical errors.

A __________ occurs when you break the rules of the language.


a) Logical errors
b) Syntax errors
c) Exceptions
d) Application shut down

Answer: b
Explanation: The term syntax refers to the set of rules you must follow when using a
programming language. A syntax error occurs when you break one of the language’s
rules. Most syntax errors are a result of typing errors that occur when entering the
instructions, such as typing Me.cle() instead of Me.close(). The code editor detects
most of the syntax errors as you enter the instructions.

A __________ occurs while forgetting to enter an instruction, or entering the


instruction in wrong order.
a) Logical errors
b) Syntax errors
c) Exceptions
d) Application shut down

Answer: a
Explanation: Logical errors are much more difficult to find because they are not
detected by the code editor. A logical error can occur for a variety of reasons such as
forgetting to enter an instruction or entering the instruction in wrong order. Some
logical errors occur as a result of calculation statements that are correct syntactically
but incorrect mathematically.

__________ the documentation refers to putting the documentation in a safe


place.
a) Debugging
b) Testing
c) Assembling
d) Printing

Answer: c
Explanation: Assembling the documentation refers to putting the documentation and
the print out of the application’s interface and code in a safe place, so you can refer to
them, if you need to change the application in future. Your planning tools include the
TOE chart, a sketch of the interface, and either the flowcharts or the pseudocode.

A __________ is a predefined procedure that performs a specific task.


a) Flowchart
b) Pseudocode
c) Function
d) Errors

Answer: c
Explanation: A function is a predefined procedure that performs a specific task and
returns the value for after completing the task. If a function does not return anything
its return type is void. A function can return an integer, a character a string etc.
What is testing process’ first goal?
a) Bug prevention
b) Testing
c) Execution
d) Analyses

Answer: a
Explanation: Its better to prevent a bug rather than putting time in its testing and
removal.

Software mistakes during coding are known as


a) errors
b) failures
c) bugs
d) defects

Answer: c
Explanation: A software bug is an error, flaw, failure, or fault in a computer program
or system that causes it to produce an incorrect or unexpected result.

Test should be conducted for every possible


a) data
b) case
c) variable
d) all of the mentioned

Answer: d
Explanation: It increases the scope for code inspection.

Which of the following is not a part of bug report?


a) Test case
b) Output
c) Software Version
d) LOC
Answer: d
Explanation: Line of code(LOC) is immaterial during testing, as it is an exhaustive
process.

. Which is a black box testing technique appropriate to all levels of testing?


a) Acceptance testing
b) Regression testing
c) Equivalence partitioning
d) Quality assurance

Answer: c
Explanation: Equivalence partitioning is a software testing technique that divides the
input data of a software unit into partitions of equivalent data from which test cases
can be derived.

Effective testing will reduce _______ cost.


a) maintenance
b) design
c) coding
d) documentation

Answer: a
Explanation: Remaining options are a part of development process.

Which of the following is not a valid phase of SDLC (Software Development


Life Cycle)?

A. Testing Phase

B. Requirement Phase

C. Deployment phase

D. Testing closure
Answer: (d) Testing Closure

Explanation: SDLC defines various phases of software development and the order of
execution of phases. Software development life cycle is a process that creates a
structure for the development of software.

Which of the following testing is also known as white-box testing?

A. Structural testing

B. Error guessing technique

C. Design based testing

D. None of the above

Answer: (a) Structural Testing

Explanation: Structural testing is also known as a White box or Clear box, or Glass
box testing. In structural testing, we can understand what is happening inside the
application or the software.

Which of the following testing is related to the boundary value analysis?

A. White box and black box testing

B. White-box testing

C. Black box testing

D. None of the above

Answer: (c) Black Box testing

Explanation: Boundary value analysis is one of the widely used case design
techniques for black-box testing. It is used to test boundary values because the input
values near the boundary have higher chances of error. Boundary values are those
that contain the upper and lower limit of a variable.

Functional testing is a ------?

A. Test design technique

B. Test level

C. SDLC Model
D. Test type

Answer: (d) Test Type

Explanation: It is a type of software testing, which is used to verify the functionality


of the software application, whether the function is working according to the
requirement specification. It is performed as black-box testing, which verifies the
functionality of the application.

What are the different levels of Testing?

A. Integration testing

B. Unit testing

C. System testing

D. All of the above

Answer: (d) All of the above

Explanation: Integration, Unit and System testing are various testing levels where
the Unit testing is used to test each unit or an individual component of the software
application.

The integration testing is used only after the functional testing is completed on
each module of the application. And system testing is end-to-end testing, where the
testing environment is similar to the production environment.

Which of the following is not a part of STLC (Software Testing Life Cycle)?

A. Testing Planning

B. Requirement Gathering

C. Test Design

D. Testing closure

Answer: (b) Requirement Gathering

Explanation: The software testing procedure is also known as Software Testing Life
Cycle (STLC), which contains various phases of the testing process. And all activities
are done to improve the quality of the software product.
White box testing techniques are?

A. Statement coverage testing

B. Decision coverage testing

C. Data flow testing

D. All of the above

Answer: (d) All of the above

Explanation: In software testing, the statement coverage, decision coverage, data


flow is part of the white-box testing technique.

In which environment we can performed the Alpha testing?

A. User's end

B. Developer's end

C. User's and developer's end

D. None of the above

Answer: (b) Developer's end

Explanation: Alpha testing is conducted in the organization and tested by a


representative group of end-users at the developer's end, where the developers
observe the users and write down the problems. Alpha testing is simulated or real
operational testing at an in-house site.

Does the customer get a 100% bug-free product?

A. Product is old

B. Developers are super

C. The testing team is not good

D. All of the above


Answer: (c) The testing team is not good

Explanation: Sometimes, the fundamentals of software testing define that no


product has zero bugs.

Which of the following is not part of the Test type?

A. Function testing

B. System testing

C. Statement testing

D. Database testing

Answer: (c) Statement testing

Explanation: Testing is a group of techniques to determine the application's


correctness under the predefined script, but testing cannot find all the defects in the
application. Testing includes an examination of code and the execution of code in
various environments, conditions, and all the examining aspects of the code.

Which testing technique is used for usability testing?

A. White-box testing
B. Grey box testing
C. Black Box testing
D. Combination of all

Answer: (c) Black box testing

Explanation: Usability testing is used to checks the defect in the end-user interaction
of software or the product. It makes sure that the developed software is easy while
using the system without facing any problem and makes end-user life easier.

In which environment we can performed the Beta testing?


a. User's and developer's end

b. Developer's end

c. User's end

d. None of the above

Answer: (c) User's end

Explanation: Beta testing is an integral part of external user acceptance testing,


where real users perform this testing. It is implemented after the alpha testing. Beta
testing is the last phase of the testing carried out at the client's or user's end.

What is error guessing in software testing?

a. Test control management techniques

a. Test verification techniques

b. Test execution techniques

c. Test case design/ data management techniques

Answer: (d) Test case design/ data management techniques

Explanation: When there is no specific method for identifying the error, we go for the
Error guessing technique. It is totally based on the experience of the test analyst,
where the tester uses the experience to guess the problematic areas of the software.

Which of the following is not another name of white box testing?

A. Structural testing

B. Behavioral testing

C. Glass box testing

D. None of the mentioned


Answer: (b) Behavioral Testing

Explanation: White box testing is known as glass box testing, structural testing,
clear box testing, open box testing and transparent box testing.

The test levels are performed in which of the following order?

A. Unit, Integration, System, Acceptance

B. It is based on the nature of the project

C. Unit, Integration, Acceptance, System

D. Unit, System, Integration, Acceptance

Answer: (b) It is based on the nature of the project

Explanation: The Test levels can always be restructured or combined based on n the
nature of a project or system planning.

Which of the below testing is executed without documentation and planning


is known as?

A. Regression Testing

B. Adhoc Testing

C. Unit Testing

D. None of the above

Answer: (b) Adhoc testing

Explanation: Whenever we have to randomly check the application without following


any sequence or procedure, we do one round of Adhoc testing. Since the user doesn't
know how to use the application, they may use it randomly and find some issues.
Adhoc testing is also known as negative testing because we test the application
against the client's requirements.
Which of the below testing is related to black-box testing?

A. Boundary value analysis

B. Code path analysis

C. Basic path testing

D. None of the above

Answer: (a) Boundary value analysis

Explanation: The Black box testing is testing where we examine the software's
functionality without looking into its internal structure or coding. And the boundary
value analysis is used to test boundary values as the input values near the boundary
have higher chances of error. And it is one of the widely used case design techniques
for black-box testing.

Which of the following testing is also called Acceptance testing?

A. Beta testing

B. White-box testing

C. Grey box testing

D. Alpha testing

Answer: (a) Beta testing

Explanation: The user acceptance testing is done once the application is bug-free
because no customer accepts the application blindly before using it. Hence, they
perform one round of testing for their satisfaction. And Beta testing is one essential
part of Acceptance Testing, which is performed before releasing the software.
-------- testing is used to check the code?

A. Grey box testing


B. Black box testing
C. White-box testing
D. Red box testing

Answer: (c) White-Box testing

Explanation: The white box testing is testing where the developer will test every line
of the program's code. To perform the white box testing, his/her aware of
programming skills to design test cases.

When we have to stop the testing?

a. The faults have been fixed

b. All the tests run

c. The time completed

d. The risk is resolved

Answer: (d) The risk is resolved.

Explanation: Once the application's functionality is stable, the risk is resolved, when
the time is less, we test the necessary features, and when the essential feature itself
is not working correctly, we can stop the testing.

---------- are those software mistakes that occurred during the coding phase?

a. Defects

b. Failures

c. Errors

d. Bugs

Answer: (d) Bugs


Explanation: The Bug is the informal name of defects, which means that software or
application is not working as per the requirement. The bug occurred when developers
made any mistake or error while developing the product. And the bug had various
names in different companies such as error, issues, problem, fault, mistake, etc.

Which of the following is not a valid software testing technique?

a. Inspections

b. Data flow analysis

c. Error guessing

d. Walkthrough

Answer: (c) Error guessing

Explanation: Error guessing is a technique in which there is no specific method for


identifying the error. It completely depends on the tester and type of experience in
the previous testing involvements because it does not follow any method and
guidelines. The error guessing technique deals with all possible errors that cannot be
identified as informal testing.

What is component testing?

a. White-box testing

b. Grey box testing

c. Black box testing

d. Both a & c

Answer: (a) White box testing

Explanation: The component testing is based on an application's inner workings and


revolves around internal structure testing. And the developer performs the white box/
component testing because the developer has the internal knowledge of the
application.

You might also like