Quiz 2016, questions and answers PDF

Title Quiz 2016, questions and answers
Course Software Testing and Quality
Institution Centennial College
Pages 8
File Size 106.2 KB
File Type PDF
Total Downloads 25
Total Views 212

Summary

Answers for Quiz 1 ...


Description

Course: COMP311

Term: 2012F Section: 061

Quiz 1 – answers Questions from versions A and B are combined so the order and number of questions does not match either quiz. 1. White two short phrases or give an example of each term below to explain the difference between Quality Control and Quality Assurance: (2) a. Quality Control is composed of activities such as testing that ensure the quality of a product. b. Quality Assurance is concerned with the creating and maintaining a development process including supervising and evaluating quality control activities.

2. The assertion that “Quality is free” really means which of the following? (1)  d a. Quality can be added by working smarter with existing resources. No financial investment in quality assurance is required. b. The cost of quality assurance can be passed on to the customer as an increase in the price of the product. c. Customers have rights to quality that suppliers must meet but cannot charge for. d. The cost of quality assurance is more than offset by savings from detecting and fixing defects early in the development process. e. The cost of quality assurance is made up of expenses the company should pay for anyway, such as training, customer support, market research, and so on.

3. State two reasons whey testers should not be the same people who develop the code under test: (2) Hint: be brief – give a phrase, not an explanation a. Testers should be neutral: no desire to showing off clever code or hiding problems b. Testers need specialized skills in test design, test tools, test documentation Independent test reports may be taken more seriously than developer-written reports … any other reasonable statements accepted Page 1 of 8

Course: COMP311

Term: 2012F Section: 061

c 4. What is the primary theme of the V-Model for application development? (1)  a. Implementing prototypes and proof-of-concept code before committing to the full product development. b. Adopting an incremental model for the software development lifecycle. c. Introducing testing early and continuing to test throughout the software development lifecycle. d. Using a configuration management system (CMS) to manage documents and versions all artifacts used in the software development lifecycle. e.

Practicing efficient software development by employing separate teams of specialists (business analysts, software architects, programmers, testers, …) for stage of the development process.

5. On each dash below, provide the name for one of the four levels of test defined by the V-Model (1) a. ____system______testing the entire software product in the deployment environment or a mirror of the production environment. b. _____unit_______ verifying that each component operates correctly c. ____acceptance__ checking that the product satisfies customer or end users d. _____integration_ checking that sub-assemblies, modules, or sets of components work together as expected.

6. Draw lines to connect each of the four test levels on the left and the closest description of purpose of that level of test on the right: (1) Hint: Draw four lines, each connecting two stars.

Page 2 of 8

Acceptance testing

*

* Searching for defects within a component

Integration testing

*

* Testing on a mirror of a production environment

System testing

*

* Measuring against user expectations

Unit testing

*

* Focusing on the interface between components

Course: COMP311

Term: 2012F Section: 061

e 7. Most successful software products spend most time in which of the following stages? (1)  a. Decision to proceed and requirements analysis b. Design c. Implementation d. Test e. Maintenance 8. Most defects in software come from which set of artifacts in the software development process? (1)  a a. Requirements Specification b. High-level or system-wide design c. Detailed design for coding d. Code e. Test data 9. At which stage in the test process should entry and exit conditions for the test project be defined? (1)  a a. Planning and control b. Analysis and design c. Implementation and execution d. Evaluating exit criteria and reporting e. Test closure activities 10. At which stage in the test process should requirements of the software be expressed as a set of objectives so it is possible to test whether the product meets each objective? (1)  b a. Planning and control b. Analysis and design c. Implementation and execution d. Evaluating exit criteria and reporting e. Test closure activities Page 3 of 8

Course: COMP311

Term: 2012F Section: 061

11. Four of the statements below express one of the seven general principles of testing. Which one does not? (1) d Hint: All true, but one does not belong to the seven general principles. a. Except in trivial situations, you cannot guarantee 100% correctness by testing. b. Defects tend to cluster in areas of the system and the distribution of clusters is often unpredictable. c. Finding no defects it not a guarantee that the software product is fit for use. d. Testing is a process, not just a development activity. e. The purpose of testing is to find defects.

12. If you run many of the same tests at the end of each iteration or increment of development, what b principle of testing may undermine the effectiveness of your tests? (1)  a. Regression reflection b. Pesticide paradox c. Defect clustering d. Law of diminishing returns e. Tests are context dependent

13. Testers of a new product notice that a many more test cases fail in some modules than in others. What principle of testing does this situation reflect? (1)  d a. Pesticide paradox b. Absence of errors fallacy c. Variability of developer skills d. Defect clustering e. Tests is context dependent

Page 4 of 8

Course: COMP311

Term: 2012F Section: 061

14. Which one of the following is not a fundamental principle expressed in the Agile Manifesto? (1) c a. Individuals and interactions are more important than processes and tools b. Working software over comprehensive documentation c. Writing tests before writing implementation code d. Customer collaboration over contract negotiations e. Responding to change more than following a plan

15. When using an incremental development methodology, which one of the following is not a good guideline for deciding what to implement in the first or early increments? (1)  d a. Dependencies: if the functionality of some components is required by others, implement the components that others depend on first. b. Risk: if success of the project of the whole depends on specific features, implement them first. c. Solve the trickiest problems: write proof of concept solutions for functionality that is required for success but may pose technical challenges d. Maximize productivity in the early increments: get as much as possible working as quickly as possible by reusing existing code or implementing the most straightforward component first. e. Do the most likely scenarios first: implement the primary path through a use case before handing scenarios for exceptional situations.

16. What is the purpose of stub code in the context of testing during incremental development? (1) A stud is a placeholder for code that does is not written yet. It has the same external appearance (public methods if a class) as the final code but minimal implementation that is just enough to test that depends on the missing functionality.

Page 5 of 8

Course: COMP311

Term: 2012F Section: 061

17. What is the purpose of the following when coding and testing during incremental development? (2) Hint: be brief – give a defining phrase not an explanation a. The driver launches the target code. It may act as a main class or provide a way of calling methods b. Stub classes are placholders that provide the same programming interface as components not yet written.

18. In iterative and incremental development, what changes with each iteration? (1) Hint: Do not be misled by the fact some methodologies use the terms interchangeably use iteration for what should be called an increment.  d a. More separately tested components are integrated into the whole b. The code is improved and possibly refactored c. The product is released to a wider circle of users d. More functionality are added e. The version and release number for the product changes

19. Which of the following describes the software application methodology with the acronym RAD? (1) b a. Repetitive Adaptive Deployment and puts emphasis engaging users in the development process by delivering frequent releases of software products and reacting quickly to feedback. b. Rapid Application Development allows a fixed time box to build functional slices of a system in parallel, integrates the slices into a prototype and then repeats to evolve the prototype into full system. c. Rational Application Developer and is the tool IBM recommends for following the Rational Unified Process. d. Radical Agile Development is a variation on eXtreme Programming (XP) that adds and release management and scalability and governance. e. Requirements Analysis Defense is a counter-movement to Agile methodologies based on minimizing the amount of code rework during development by getting the functional specification right in the first place.

Page 6 of 8

Course: COMP311

Term: 2012F Section: 061

20. Which of the following statements best states the purpose of debugging tools? (1)  a a. Debugger tools help developers locate the source of a bug in code. b. Debugger tools fix faulty code. c. Testers use debugging tools to verify that a fix corrects a previously reported bug. d. Testers use debugging tools to run white box tests. e. Developers use debugging tools to detect poor programming practices and potential problems.

21. What two actions must you do to debug a Java program in Eclipse? Select 2: (1)  a and d a. Right-click a class and select from the menu: Debug as   Java application b. Right-click a class and select from the menu: Run  Debug c. Compile in debug mode by selecting Source   Compile for Debug in the Java editor. d. Set a breakpoint in the code to halt execution at a place in the code. e. Switch to the Debug perspective before you start execution.

22. What does the term breakpoint mean when used to in a discussion of code defects? (1)  d a. A breakpoint is the first external indication that program execution has gone wrong. b. A breakpoint is the level or number of defects that might cause serious user/customer dissatisfaction. c. A breakpoint is the level or number of defects at which management must decide whether to cancel a development project or proceed with overruns of time and/or budget. d. A breakpoint a place in code where debugging tools pause execution so that developers can inspect the value of variables and step through execution. e. A breakpoint an error in code that make the program “crash” or “freeze” during execution.

Page 7 of 8

Course: COMP311

Term: 2012F Section: 061

23. When the Eclipse Debugger pauses execution before statement in source code, you can press buttons Step Over and Step Into to proceed. What is the difference? (1)  b a. Step over runs to the next breakpoint and then pauses again. Step Into executes the next statement and pauses again. b. Step over executes the entire next statement and then pauses again. If the next statement calls a method, Step into opens that method and pauses at the first statement in the called method. c. Step Into displays the value of variables used in the statement and lets you change them before proceeding. Step over does not. d. Step over jumps to the return statement or end of the current method. Step Into executes just the next statement and then pauses again. End of Quiz

Page 8 of 8...


Similar Free PDFs