Software Testing Fundamentals, Exams of Computer Science

Various aspects of software testing, including test scripts, test objectives, test activities, test types, test levels, confirmation testing, regression testing, impact analysis, static testing, review types, exploratory testing, test techniques, test coverage, and independent testing. It provides a comprehensive overview of key software testing concepts and practices, addressing topics such as test design, test execution, and test management. Likely to be useful for university students studying software engineering, computer science, or information technology, as it covers fundamental principles and techniques that are essential for understanding and applying effective software testing methodologies.

Typology: Exams

2023/2024

Available from 09/16/2024

ROCKY-B
ROCKY-B 🇰🇪

4.4

(16)

40K documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Which of the following provides the BEST description of a test case?
a) A document specifying a sequence of actions for the execution of a test. Also known
as test script or manual test script.
b) A set of input values and expected results, with execution preconditions and
execution postconditions, developed for a particular test condition.
c) An attribute of a system specified by requirements documentation (for example
reliability, usability or design constraints) that is executed in a test.
d) An item or event of a system that could be verified by one or more test conditions,
e.g., a function, transaction, feature, quality attribute, or structural element. - Answers -b
Which of the following is a major objective of testing?
a) To prevent defects.
b) To validate the project plan works as required.
c) To gain confidence in the development team.
d) To make release decisions for the system under test. - Answers -a
Which of the following is an example of a failure in a car cruise control system?
a) The developer of the system forgot to rename variables after a cut-and-paste
operation.
b) Unnecessary code that sounds an alarm when reversing was included in the system.
c) The system stops maintaining a set speed when the radio volume is increased or
decreased.
d) The design specification for the system wrongly states speeds in km/h. - Answers -c
Which of the following is a defect rather than a root cause in a fitness tracker?
a) Because he was unfamiliar with the domain of fitness training, the author of the
requirements wrongly assumed that users wanted heartbeat in beats per hour.
ISTQB® CERTIFIED
TESTER SYLLABUS
FOUNDATION LEVEL
EXAM ID: B1.-SAMPLE
EXAM QUESTIONS
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Software Testing Fundamentals and more Exams Computer Science in PDF only on Docsity!

Which of the following provides the BEST description of a test case? a) A document specifying a sequence of actions for the execution of a test. Also known as test script or manual test script. b) A set of input values and expected results, with execution preconditions and execution postconditions, developed for a particular test condition. c) An attribute of a system specified by requirements documentation (for example reliability, usability or design constraints) that is executed in a test. d) An item or event of a system that could be verified by one or more test conditions, e.g., a function, transaction, feature, quality attribute, or structural element. - Answers -b Which of the following is a major objective of testing? a) To prevent defects. b) To validate the project plan works as required. c) To gain confidence in the development team. d) To make release decisions for the system under test. - Answers -a Which of the following is an example of a failure in a car cruise control system? a) The developer of the system forgot to rename variables after a cut-and-paste operation. b) Unnecessary code that sounds an alarm when reversing was included in the system. c) The system stops maintaining a set speed when the radio volume is increased or decreased. d) The design specification for the system wrongly states speeds in km/h. - Answers -c Which of the following is a defect rather than a root cause in a fitness tracker? a) Because he was unfamiliar with the domain of fitness training, the author of the requirements wrongly assumed that users wanted heartbeat in beats per hour.

ISTQB® CERTIFIED

TESTER SYLLABUS

FOUNDATION LEVEL

EXAM ID: B1.-SAMPLE

EXAM QUESTIONS

b) The tester of the smartphone interface had not been trained in state transition testing, so missed a major defect. c) An incorrect configuration variable implemented for the GPS function could cause location problems during daylight saving times. d) Because she had never worked on wearable devices before, the designer of the user interface misunderstood the effects of reflected sunlight. - Answers -c Which of the following qualities is MORE likely to be found in a tester's mindset rather than in a developer's? a) Experience on which to base their efforts. b) Ability to see what might go wrong. c) Good communication with team members. d) Attention to detail. - Answers -b Given the following statements about the relationships between software development activities and test activities in the software development lifecycle:

  1. Each development activity should have a corresponding testing activity.
  2. Reviewing should start as soon as final versions of documents become available.
  3. The design and implementation of tests should start during the corresponding development. activity
  4. Testing activities should start in the early stages of the software development lifecycle. Which of the following CORRECTLY shows which are true and false? a) True - 1, 2; False - 3, 4 b) True - 2, 3; False - 1, 2 c) True - 1, 2, 4; False - 3 d) True - 1, 4; False - 2, 3 - Answers -d Given that the testing being performed has the following attributes: based on interface specifications; focused on finding failures in communication; the test approach uses both functional and structural test types. Which of the following test levels is MOST likely being performed? a) Component integration testing. b) Acceptance testing. c) System testing. d) Component testing. - Answers -a Which of the following statements about test types and test levels is CORRECT? a) Functional and non-functional testing can be performed at system and acceptance test levels, while white-box testing is restricted to component and integration testing. b) Functional testing can be performed at any test level, while white-box testing is restricted to component testing. c) It is possible to perform functional, non-functional and white-box testing at any test level.

c) A-3, B-2, C-4, D- d) A-3, B-2, C-1, D-4 - Answers -a Which of the following BEST describes how value is added by maintaining traceability between the test basis and test artifacts? a) Maintenance testing can be fully automated based on changes to the initial requirements. b) It is possible to determine if a new test case has increased coverage of the requirements. c) Test managers can identify which testers found the highest severity defects. d) Areas that may be impacted by side-effects of a change can be targeted by confirmation testing. - Answers –b Which of the following statements CORRECTLY reflects the value of static testing? a) By introducing reviews, we have found that both the quality of specifications and the time required for development and testing have increased. b) Using static testing means we have better control and cheaper defect management due to the ease of removing defects later in the lifecycle. c) Now that we require the use of static analysis, missed requirements have decreased and communication between testers and developers has improved. d) Since we started using static analysis, we -find coding defects that might have not been found by performing only dynamic testing. - Answers -d Which of the following sequences BEST shows the main activities of the work product review process? a) Initiate review - Reviewer selection - Individual review - Issue communication and analysis - Rework b) Planning & preparation - Overview meeting - Individual review - Fix- Report c) Preparation - Issue Detection - Issue communication and analysis - Rework - Report d) Plan - Initiate review - Individual review - Issue communication and analysis - Fix defects & report - Answers -d Which of the following CORRECTLY matches the roles and responsibilities in a formal review? a) Manager - Decides on the execution of reviews b) Review Leader - Ensures effective running of review meetings c) Scribe - Fixes defects in the work product under review d) Moderator - Monitors ongoing cost-effectiveness - Answers -a The reviews being used in your organization have the following attributes: There is a role of a scribe The purpose is to detect potential defects The review meeting is led by the author Reviewers find potential defects by individual review A review report is produced Which of the following review types is MOST likely being used?

a) Informal Review b) Walkthrough c) Technical Review d) Inspection - Answers -b You have been asked to take part in a checklist-based review of the following excerpt from the requirements specification for a library system: Librarians can:

  1. Register new borrowers.
  2. Return books from borrowers.
  3. Accept fines from borrowers.
  4. Add new books to the system with their ISBN, author and title.
  5. Remove books from the system.
  6. Get system responses within 5 seconds. Borrowers can:
  7. Borrow a maximum of 3 books at one time.
  8. View the history of books they have borrowed/reserved.
  9. Be fined for failing to return a book within 3 weeks.
  10. Get system responses within 3 seconds.
  11. Borrow a book at no cost for a maximum of 4 weeks.
  12. Reserve books (if they are on-loan). All users (librarians and borrowers):
  13. Can search for books by ISBN, author, or title.
  14. Can browse the system catalogue.
  15. The system shall respond to user requests within 3 seconds.
  16. The user in - Answers -b Which of the following provides the BEST description of exploratory testing? a) A testing practice in which an in-depth investigation of the background of the test object is used to identify potential weaknesses that are examined by test cases. b) An approach to testing whereby the testers dynamically design and execute tests based on their knowledge, exploration of the test item and the results of previous tests. c) An approach to test design in which test activities are planned as uninterrupted sessions of test analysis and design, often used in conjunction with checklist-based testing. d) Testing based on the tester's experience, knowledge and intuition. - Answers -b Which of the following BEST matches the descriptions with the different categories of test techniques?
  17. Coverage is measured based on a selected structure of the test object.
  18. The processing within the test object is checked.
  19. Tests are based on defects' likelihood and their distribution.
  20. Deviations from the requirements are checked.
  21. User stories are used as the test basis. Black - Black-box test techniques White - White-box test techniques

b) 9°C, 15°C, 19°C, 23°C, 100°C c) 10°C, 16°C, 19°C, 22°C, 23°C d) 14°C, 15°C, 18°C, 19°C, 21°C, 22°C - Answers -c Decision table testing is being performed on a speeding fine system. Two test cases have already been generated for rules 1 and 4, which are shown below: (SEE TABLE) Which two of the additional test cases would achieve full coverage of the complete decision table (when combined with the test cases that have already been generated for rules 1 and 4)? a) DT1, DT b) DT2, DT c) DT2, DT d) DT3, DT4 - Answers -c Given the following state model of a battery charger software: (SEE MODEL) Which of the following sequences of transitions provides the highest level of transition coverage for the model? a) OFF → WAIT → OFF → WAIT → TRICKLE → CHARGE → HIGH → CHARGE → LOW b) WAIT → TRICKLE → WAIT → OFF → WAIT → TRICKLE → CHARGE → LOW → CHARGE c) HIGH → CHARGE → LOW → CHARGE → TRICKLE → WAIT → TRICKLE → WAIT → TRICKLE d) WAIT → TRICKLE → CHARGE → HIGH → CHARGE → TRICKLE → WAIT → OFF → WAIT - Answers -d Which of the following statements BEST describes how test cases are derived from a use case? a) Test cases are created to exercise defined basic, exceptional and error behaviors performed by the system under test in collaboration with actors. b) Test cases are derived by identifying the components included in the use case and creating integration tests that exercise the interactions of these components. c) Test cases are generated by analyzing the interactions of the actors with the system to ensure the user interfaces are easy to use. d) Test cases are derived to exercise each of the decision points in the business process flows of the use case, to achieve 100% decision coverage of these flows. - Answers -a Which of the following descriptions of statement coverage is CORRECT? a) Statement coverage is a measure of the number of lines of source code (minus comments) exercised by tests. b) Statement coverage is a measure of the proportion of executable statements in the source code exercised by tests.

c) Statement coverage is a measure of the percentage of lines of source code exercised by tests. d) Statement coverage is a measure of the number of executable statements in the source code exercised by tests. - Answers -b Which of the following descriptions of decision coverage is CORRECT? a) Decision coverage is a measure of the percentage of possible paths through the source code exercised by tests. b) Decision coverage is a measure of the percentage of business flows through the component exercised by tests. c) Decision coverage is a measure of the 'if' statements in the code that are exercised with both the true and false outcomes. d) Decision coverage is a measure of the proportion of decision outcomes in the source code exercised by tests. - Answers -d Which of the following BEST describes the concept behind error guessing? a) Error guessing requires you to imagine you are the user of the test object and guess mistakes the user could make interacting with it. b) Error guessing involves using your personal experience of development and the mistakes you made as a developer. c) Error guessing involves using your knowledge and experience of defects found in the past and typical mistakes made by developers. d) Error guessing requires you to rapidly duplicate the development task to identify the sort of mistakes a developer might make. - Answers -c Which of the following BEST explains a benefit of independent testing? a) The use of an independent test team allows project management to assign responsibility for the quality of the final deliverable to the test team, so ensuring everyone is aware that quality is the test team's overall responsibility. b) If a test team external to the organization can be afforded, then there are distinct benefits in terms of this external team not being so easily swayed by the delivery concerns of project management and the need to meet strict delivery deadlines. c) An independent test team can work totally separately from the developers, need not be distracted with changing project requirements, and can restrict communication with the developers to defect reporting through the defect management system. d) When specifications contain ambiguities and inconsistencies, assumptions are made on their interpretation, and an inde - Answers -d Which of the following tasks is MOST LIKELY to be performed by the test manager? a) Write test summary reports based on the information gathered during testing. b) Review tests developed by others. c) Create the detailed test execution schedule.

a) The expected security features may not be supported by the system architecture. b) The developers may not have time to fix all the defects found by the test team. c) The test cases may not provide full coverage of the specified requirements. d) The performance test environment may not be ready before the system is due for delivery. - Answers -a Which of the following is LEAST likely to be an example of product risk analysis CORRECTLY influencing the testing? a) The potential impact of security flaws has been identified as being particularly high, so security testing has been prioritized ahead of some other testing activities. b) Testing has found the quality of the network module to be higher than expected, so additional testing will now be performed in that area. c) The users had problems with the user interface of the previous system, so additional usability testing is planned for the replacement system. d) The time needed to load web pages is crucial to the success of the new website, so an expert in performance testing has been employed for this project. - Answers -b You are performing system testing of a train booking system and have found that occasionally the system reports that there are no available trains when you believe that there should be, based on the test cases you have run. You have provided the development manager with a summary of the defect and the version of the system you are testing. The developers recognize the urgency of the defect and are now waiting for you to provide more details so that they can fix it. Given the following pieces of information:

  1. Degree of impact (severity) of the defect.
  2. Identification of the test item.
  3. Details of the test environment.
  4. Urgency/priority to fix.
  5. Actual results.
  6. Reference to test case specification. Apart from the description of the defect, which includes a database dump and screenshots, which of the pieces of information would be MOST useful to include in the initial defect report? a) 1, 2, 6 b) - Answers -d Given the following test activities and test tools:
  7. Performance measurement and dynamic analysis.
  8. Test execution and logging.
  9. Management of testing and testware.
  10. Test design. A. Requirements coverage tools. B. Dynamic analysis tools. C. Test data preparation tools. D. Defect management tools. Which of the following BEST matches the activities and tools?

a) 1 - B, 2 - C, 3 - D, 4 - A b) 1 - B, 2 - A, 3 - C, 4 - D c) 1 - B, 2 - A, 3 - D, 4 - C d) 1 - A, 2 - B, 3 - D, 4 - C - Answers -c Which of the following is MOST likely to be used as a reason for using a pilot project to introduce a tool into an organization? a) The need to evaluate how the tool fits with existing processes and practices and determining what would need to change. b) The need to evaluate the test automation skills and training, mentoring and coaching needs of the testers who will use the tool. c) The need to evaluate whether the tool provides the required functionality and does not duplicate existing test tools. d) The need to evaluate the tool vendor in terms of the training and other support they provide. - Answers -a