Wednesday, January 28, 2009

Sample Question for Testing

1.What does a tester do during "Static testing”?

A. Reviews requirements and compares them with the design
B. Runs the tests on the exact same setup each time
C. Executes test to check that all hardware has been set up correctly
D. Runs the same tests multiple times, and checks that the results are statistically meaningful

2.Which of the following answers reflect when Regression testing should normally be performed?

A. Every week
B. After the software has changed
C. On the same day each year
D. When the environment has changed
E. Before the code has been written

1. B & D are true, A, C & E are false 2. A & B are true, C, D & E are false
3. B, C & D are true, A & E are false 4. B is true, A, C, D & E are false

3. Testing that is done as extreme programming (XP), treating development as the customer of testing and emphasizing the test-first design paradigm is called as

A. Alpha testing B. Agile Testing C. Beta Testing D. Monkey Testing
4.Which IEEE standards is used for a guide for developing system requirements specifications

A. IEEE 829 B.IEEE 830 C.IEEE 1058 D.IEEE 1233
5. Which IEEE standards is used for a standard for software inspections

A. IEEE 829 B.IEEE 830 C.IEEE 1028 D.IEEE 1540



6. ----------------- Is often the responsibility of the customers or users of a system; other stakeholders may be involved as well.
A. Unit testing B. Black box testing C. Ad hock testing D. Acceptance Testing

7. Which of these are objectives for software testing?
A. Determine the productivity of programmers
B. Eliminate the need for future program maintenance
C. Eliminate every error prior to release
D. Uncover software errors
8. Which of the following is the best resource for validation testing of an object-oriented system?

A. PERT charts B. Use case scenarios C. Entity relationship diagrams D. Decomposition matrices

9. The cyclomatic complexity metric provides the designer with information regarding the number of

A. Cycles in the program B. Errors in the program
C. Independent logic paths in the program D. Statements in the program

10. You are selecting the test paths based on the locations and uses of variables. You are doing

A. White Box testing B. Black Box C. Data flow testing D. a&c E. b&c

11. What is the normal order of activities in which software testing is organized?

A. Unit, integration, system, validation B. system, integration, unit, validation
C. Unit, integration, validation, system D. none of the above
12. A tester is reviewing the test of other, on the basis of Requirement specification, Use case etc. He/She is doing
A. Static Testing B. Verification C. A&B D. None of these
13. Which type of testing you can perform, without the product specification and requirement document?
A. System testing B. Regression testing C. Exploratory Testing D. Performance Testing
14. Which is the best code Coverage Analysis
A. Condition Coverage B. Branch Coverage C. Statement Coverage D. All
15. Some body is doing the testing without a plan it’s easy and fun but not organized. It’s not repeatable. It can’t be traced and when its over there is no proofs that it was ever done. He/She is doing
A. System Testing B. Integration Testing C. Ad hock Testing D. Usability Testing
16. What statements do you consider to be the most important?
A. Testing has the primary intent of showing the system meets the users needs
B. Testing has the primary intent of finding faults
A. Only A B. Only B C. Both A&B D. None of these
17. Your Manager has assigned one model for testing. They have given the instruction to use best test approach, so that the cost of bug will be low. So, which test approach will be the best approach?

A. Analytical approaches B. Preventative approaches,
B. Methodical approaches C. Dynamic and heuristic approaches

18. You have raised a fault, but Development is unable to reproduce it. What should your next step be?

A. Let development sign off the bug as not reproducible.
B. Sign off the bug yourself as not reproducible.
C. Tell development the bug definitely exists and you will not pass it unless fixed.
D. Re-test and upon confirmation provide more detailed information to Development, talking
them through each stage if necessary

19. Which of the following strategic issues needs to be addressed in a successful software testing process?

A. Conduct formal technical reviews prior to testing B. Specify requirements in a quantifiable manner
C. Consider using independent test teams D. All of the above

20. Which of the following need to be assessed during unit testing?

A. Algorithmic performance B. Code stability C. Execution and error handling D. All of the above

21. Rank order, from first to last, the following elements to be developed when a software engineer is translating
customer expectations.

1. Actual results
2. Design specifications
3. Code
4. Functional specifications
(A) 2, 3, 4, 1 (B) 3, 4, 1, 2 (C) 4, 2, 3, 1 (D) 4, 3, 2, 1



22. Software trouble reports should be analyzed by a developer or a maintainer to determine

(A) Whether the software errors are distinguishable and reproducible
(B) Whether the maximum number of allowable errors and anomalies has been reached
(C) The problem effect and the fix rate
(D) What regression testing is required and when

23. Which two of the following are characteristics of a successful defect prevention program?
I. It is performed using a top-down approach.
II. A root cause analysis of defects is conducted.
III. Historical defect data are tracked.
IV. It is initiated at the end of the design phase.
(A) I and III (B) I and IV (C) II and III (D) II and IV

24. In which phase of a project’s development life cycle does the lack of requirements control prove most costly?
(A) Requirements (B) Design (C) Test (D) Maintenance

25. Software testing activities should start

A. During the design stage
B. As soon as the code is written
C. When the requirements have been formally documented
D. As soon as possible in the development lifecycle

26. A test design technique is
A. A process for selecting test cases
B. A process for determining expected outputs
C. A way to measure the quality of software
D. A way to describe in a test plan what has to be done
E. All of the above
27. The incremental model of software development is
A. A reasonable approach when requirements are well defined.
B. A good approach when a working core product is required quickly.
C. The best approach to use for projects with large development teams.
D. A revolutionary model that is not used for commercial products.

28. Which of the following provide useful measures of software quality?

A. Correctness, performance, integrity, usability
B. Reliability, maintainability, integrity, sales
C. Correctness, maintainability, size, satisfaction
D. Correctness, maintainability, integrity, usability

29. The linear sequential model of software development is

A. A reasonable approach when requirements are well defined.
B. A good approach when a working program is required quickly.
C. The best approach to use for projects with large development teams.
D. An old fashioned model that is rarely used any more.

30. A key concept of quality control is that all work products

A. Are delivered on time and under budget
B. Have complete documentation
C. Have measurable specifications for process outputs
C. Are thoroughly tested before delivery to the cust omer
Mock test -2
1 A
2 A
3 B
4 D
5 C
6 D
7 D
8 C
9 C
10 D
11 A
12 C
13 C
14 A
15 C
16 C
17 B
18 D
19 D
20 D
21 C
22 C
23 C
24 D
25 C
26 E
27 A
28 B
29 A
30 A

1 comment:

Anonymous said...

Thanks for posting these Q&A, which I found helpful for my CSQE exam preparation. I believe the answer key may contain some errors for the following questions. I've included in parenthesis the answer that I believe may be correct.

#8 (B)
- Refer to Q.75 in ASQ's CSQE Sample Exam (https://secure.asq.org/sampleexam/)

#11 (C)
- Refer to page IV-16 in the CSQE Primer 2008 (Quality Council of Indiana)

#12 (B)
- Static testing consists of examining a program without executing it. Since the #12 refers to reviewing test of other, on the basis of Requirement specification, Use case, it does not appear that the program itself is being reviewed. Refer to page VII-4 in the CSQE Primer 2008 (Quality Council of Indiana)

#22 (A)
- Refer to Q.17 in ASQ's CSQE Sample Exam (https://secure.asq.org/sampleexam/)

#25 (D)
To eliminate the risk of having to test with incorrect, ambiguous, incomplete, etc. requirements, it is advisable for software testing activities to start as soon as possible in the development lifecycle. This will allow the test team to provide input into the requirements while they are still being developed, rather than after they have been frozen/baselined.

# 27 (B)
The incremental model is the best approach for projects that require a core product to be delivered quickly. It allows for development of components whose requirements are known to begin even though the requirements of other requirements are still being developed. Refer to page IV-14 in the CSQE Primer 2008 (Quality Council of Indiana)

#30 (C)
- Although it is a plus for work products to be delivered on time and under budget, this is not the primary goal of quality control. To ensure control of the work products, a key concept is to "have defined and measurable specifications to which we may compare the output of each process". Refer to http://www.nasscom.org/download/Quality_Management_System.pdf

Also, I believe there is more than one right answer for the following question.

# 28 (B, D)
Software quality attributes include: Correctness, Integrity, Maintainability, Performance, Usability, and several others. Refer to page IV-113 in the CSQE Primer 2008 (Quality Council of Indiana)