Important Analyst Testing Interview Questions
Q – 1 What is component testing in test analysis?
Ans- Component testing, also known as unit, module and program testing, searches for defects in and verifies the functioning of software (e.g. modules, programs, objects, classes etc.) that are able to be tested separately. Component testing may be done in isolation from the rest of the system depending on the context of the development life cycle and the system.
Q – 2 When decision table testing is used?
Ans- Decision table testing is used for testing systems for which the specification takes the form of rules or cause-effect combinations. In a decision table the inputs are listed in a column with the outputs in the same column but below the inputs. The remainder of the table explores combinations of inputs to define the outputs produced.
Q – 3 Please tell me what are the white-box testing techniques as a test analyst?
Ans- White-box testing techniques use the internal structure of the software to derive test cases. They are commonly called ‘glass-box’ techniques (implying you can see into the system) since they require knowledge of how the software works.
Q – 4 What is exploratory testing as a test analyst?
Ans- Exploratory testing is a hands-on approach in which testers are involved in minimum planning and maximum test execution. The planning involves the creation of a test charter, a short declaration of the scope of a short (1 to 2 hour) time-boxed test effort, the objectives and possible approaches to be used.
The test design and test execution activities are performed in parallel typically without formally documenting the test conditions, test cases or test scripts. This does not mean that other, more formal testing techniques will not be used. Some notes will be written during the exploratory-testing session, so that a report can be produced afterwards.
Q – 5 Assume you are working as a test analyst on a project where a new banking system is being developed. This system will store customer financial data, including personally identifying information, account numbers and balances and transaction history. Based on this information, which of the following topics are you most likely to need to contribute to the test plan?
A. Testing data encryption
B. Test data anonymization
C. Coordination of distributed components
D. Testing in production
Ans- A. Testing data encryption
Q – 6 Which of the following statements would BEST justify the use of dynamic analysis in this situation?
A. Dynamic analysis could identify memory access violations caused by a wild pointer that result in the occasional ‘crashes’.
B. Dynamic analysis could be used to measure response times for various functions to subsequently allow system tuning.
C. Dynamic analysis could be used to generate call graphs of the system to allow targeted performance enhancement.
D. Dynamic analysis could be used to determine if defects introduced by programmers failing to release allocated memory are causing the ‘crashes’.
Ans- A. Dynamic analysis could identify memory access violations caused by a wild pointer that result in the occasional ‘crashes’.
Q – 7 Which of the following is a way to use call graphs to determine integration testing requirements?
A. Establishing the number of locations within the software from where a module or system is called
B. Establishing the number of locations within the software from where a method or function is called
C. Determining conditional and unconditional calls for performance analysis
D. Detecting areas to be targeted for possible memory leaks
Ans- A. Establishing the number of locations within the software from where a module or system is called.
Q – 8 0 program Calculate Commission
1 total, number : integer
2 commission_hi, commission_lo : real
3 begin
4 read ( number )
5 while number ≠ -1 loop
6 total = total + number
7 read ( number )
8 endloop
9 if total > 1000 then
10 commission_hi = 100 + 0.2 * ( total – 1000 )
11 else
12 commission_lo = 0.15 * total
13 endif
14 write ( “This salesman’s commission is:”)
15 write ( commission_hi )
16 end program Calculate Commission
Which of the following correctly lists data flow anomalies that exist in the ‘calculate commission’ program?
A. total: line 6; commission_lo: line 12; commision_hi: line 15
B. commision_hi: line 10; commission_lo: line 12
C. number: line 5; number: line 6
D. total: line 6; commision_hi: line 10; commission_lo: line 12
Ans- A. total: line 6; commission_lo: line 12; commision_hi: line 15
Q – 9 0 program TRICKY
1 var1, var2, var3 : integer
2 begin
3 read ( var2 )
4 read ( var1 )
5 while var2 < 10 loop
6 var3 = var2 + var1
7 var2 = 4
8 var1 = var2 + 1
9 print ( var3 )
10 if var1 = 5 then
11 print ( var1 )
12 else
13 print ( var1+1 )
14 endif
15 var2 = var2 + 1
16 endloop
17 write ( “Wow – that was tricky!” )
18 write ( “But the answer is…” )
19 write ( var2+var1 )
20 end program TRICKY
Which of the following statements about the TRICKY program MOST correctly describes any control flow anomalies in it?
A. The TRICKY program contains unreachable code and an infinite loop
B. The TRICKY program contains no control flow anomalies
C. The TRICKY program contains unreachable code
D. The TRICKY program contains a loop with multiple entry points
Ans- A. The TRICKY program contains unreachable code and an infinite loop
Q – 10 You are the test analyst working on the testing of software that will control the movement of a roof on a new national sports stadium that seats 100,000 spectators. A failure analysis has shown that if the software system fails then it may cause the roof to break up and fall on the spectators. The government has requested that the level of testing for this software exceeds that normally required by the relevant regulatory standards.
Which is the level of test coverage you would expect to be achieved in the testing of the control software for the stadium roof?
A. Multiple Condition coverage
B. Branch coverage + Modified Condition/Decision coverage
C. Branch coverage + Statement coverage
D. Modified Condition/Decision coverage
Ans- A. Multiple Condition coverage
Q – 11 Which of the following types of defects are targeted by API testing?
A. incorrect data handling
B. timing problems
C. loss of transactions
D. non-conformance to coding standards
E. lack of usability
F. installation defects
G. GUI faults
Ans-
A. incorrect data handling
B. timing problems
C. loss of transactions
Q – 12 You are testing a photo-enforcement system for traffic control in an intersection. The requirements state that a photo shall be taken if the signal light is red (RED) or the car is speeding (SPEED) and if the front wheels of the car are over the line marking the beginning of the intersection (WHEELS).
Consider these sets of values:
1. RED + SPEED + WHEELS
2. RED + SPEED + not WHEELS
3. RED + not SPEED + WHEELS
4. RED + not SPEED + not WHEELS
5. not RED + SPEED + WHEELS
6. not RED + SPEED + not WHEELS
7. not RED + not SPEED + WHEELS
8. not RED + not SPEED + not WHEELS
Given this information, which sets of values provide the minimum tests to achieve 100% path coverage?
A. 2, 3
B. 3, 4, 5, 7
C. 1, 3, 8
D. 1
Ans- A. 2, 3
Q – 13 Consider these sets of values:
1. RED + SPEED + WHEELS
2. RED + SPEED + not WHEELS
3. RED + not SPEED + WHEELS
4. RED + not SPEED + not WHEELS
5. not RED + SPEED + WHEELS
6. not RED + SPEED + not WHEELS
7. not RED + not SPEED + WHEELS
8. not RED + not SPEED + not WHEELS
Assume the logic in the code is as follows:
If ((RED or SPEED) and WHEELS) then
Take the photo
Else
Do not take the photo
Given this information, which sets of values provide the minimum tests to achieve 100% multiple condition coverage?
A. All the sets are needed
B. 3, 4, 5, 7
C. 1, 3, 8
D. 1, 5, 7, 8
Ans- A. All the sets are needed
Q – 14 Consider these sets of test values:
1. RED + SPEED + WHEELS
2. RED + SPEED + not WHEELS
3. RED + not SPEED + WHEELS
4. RED + not SPEED + not WHEELS
5. not RED + SPEED + WHEELS
6. not RED + SPEED + not WHEELS
7. not RED + not SPEED + WHEELS
8. not RED + not SPEED + not WHEELS
Assume the logic in the code is as follows:
If ((RED or SPEED) and WHEELS) then
Take the photo
Else
Do not take the photo
Given this information, which sets of values provides the minimum tests to achieve 100% modified condition/decision coverage?
A. 3, 4, 5, 7
B. 1, 3, 8
C. 2, 8
D. 1, 5, 7, 8
Ans- A. 3, 4, 5, 7