Software Testing Questions

Q:

Which is the simplest file structure?

A) Sequential B) Indexed
C) Random D) None
 
Answer & Explanation Answer: A) Sequential

Explanation:

Sequential is the simplest file structure

Report Error

View Answer Workspace Report Error Discuss

Filed Under: Software Testing

5 7986
Q:

What is "bug leakage?" and what is "bug release?"

Answer

A bug leakage results when a bug is detected which should have been detected in earlier builds/versions of the application.


A defect which exists during testing yet unfound by the tester which is eventually found by the tester/end-user is also called bug leakage.


A bug release is when a particular version of s/w is released with a set of known bug(s)/defect(s). These bugs are usually low severity and/or low priority bugs. It is done when the company can afford the existence of bug in the released s/w rather than the time/cost for fixing it in that particular version. These bugs are usually mentioned in the Release Notes.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

10 6341
Q:

Unreachable code would best be found using

A) code inspections B) a static analysis tool
C) code reviews D) a test management tool
 
Answer & Explanation Answer: C) code reviews

Explanation:

Code review is a software quality assurance activity in which one or several humans check a program mainly by viewing and reading parts of its source code, and they do so after implementation or as an interruption of implementation.

Report Error

View Answer Workspace Report Error Discuss

7 5630
Q:

main()

{

float me = 1.1;

double you = 1.1;

if(me==you)

printf("yes");

else

printf("No");

}

A) Yes B) No
C) Both D) Compilation error
 
Answer & Explanation Answer: B) No

Explanation:

For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.

Report Error

View Answer Workspace Report Error Discuss

Filed Under: Software Testing
Job Role: Software Architect

7 4276
Q:

Of the following tree structure, which is, efficient considering space and time complexities?

A) Incomplete Binary Tree B) Complete Binary Tree
C) Full Binary Tree D) None
 
Answer & Explanation Answer: B) Complete Binary Tree

Explanation:

Full binary tree loses its nature when operations of insertions and deletions are done. For incomplete binary trees, extra storage is required and overhead of NULL node checking takes place. So complete binary tree is the better one since the property of complete binary tree is maintained even after operations like additions and deletions are done on it.

Report Error

View Answer Workspace Report Error Discuss

Filed Under: Software Testing

3 3362
Q:

What is the type of the algorithm used in solving the 8 Queens problem ?

A) Dynamic Programming B) BackTracking
C) Branch and Bound D) None
 
Answer & Explanation Answer: B) BackTracking

Explanation:

BackTracking is used for solving N-Queens problem

Report Error

View Answer Workspace Report Error Discuss

Filed Under: Software Testing

1 2941
Q:

Describe how to perform Risk Analysis during software testing.

Answer

While a test plan is being created, risks involved in testing the product are to be taken into consideration along with possibility of their occurrence and the damage they may cause along with solutions; if any. Detailed study of this is called as Risk Analysis.


Some of the risks could be:


New Hardware 


New Technology 


New Automation Tool 


Sequence of code delivery 


Availability of application test resources 


Identify and describe the risk magnitude indicators: High, Medium and Low


High magnitude means the effect of the risk would be very high and non-tolerable. Company may face severe loss and its reputation is at risk. Must be tested.


Medium: tolerable but not desirable. Company may suffer financially but there is limited liability or loss of reputation. Should be tested.


Low: tolerable. Little or no external exposure. Little or no financial loss. Company’s reputation unaffected. Might be tested.


Three perspectives of Risk Assessment: Effect, Cause and Likelihood.


To assess risk by Effect, identify a condition, event or action and try to determine its impact.


To asses risk by Cause is opposite of by Effect. Begin by stating an undesirable event or condition and identify the set of events that could have permitted the condition to exist.


To asses risk by Likelihood is to determine the probability that a requirement will not be satisfied.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

0 2931
Q:

Which of the following is not a static testing technique?

A) Inspections B) Data flow analysis
C) Error guessing D) Walkthrough
 
Answer & Explanation Answer: C) Error guessing

Explanation:

Static Testing, a software testing technique in which the software is tested without executing the code. This Techniques provide a powerful way to improve the quality and productivity of software development by assisting engineers to recognize and fix their own defects early in the software development process.

 

It has two parts as listed below:

Review - Typically used to find and eliminate errors or ambiguities in documents such as requirements, design, test cases, etc.

Static analysis - The code written by developers are analysed (usually by tools) for structural defects that may lead to defects.

 

In this software is tested without executing the code by doing Review, Walk Through, Inspection or Analysis etc.

 

Hence, Error guessing is not a static software testing technique.

Report Error

View Answer Workspace Report Error Discuss

1 2768