About Software Testing

Following are some of the multiple choice questions on the Software Testing with answers that will help the students in developing their knowledge.

Software Testing MCQ

1. Which of the following is not a sqa plan for a project

  • Audits and reviews to be performed
  • Evaluations to be performed
  • Amount of technical work
  • Documents to be produced by the SQA group

2. Which of the following is not part of performance testing?

  • simulating many users
  • measuring response times
  • generating many transactions
  • recovery testing

3. Which of the following is not a static testing technique?

  • Inspections
  • Data flow analysis
  • Error guessing
  • Walkthrough

4. Unreachable code would best be found using

  • code inspections
  • a static analysis tool
  • code reviews
  • a test management tool

5. Defect Management Process does not include

  • Deliverable base-lining
  • Management reporting
  • Defect prevention
  • None of above

6. Impact analysis helps to decide

  • How many more test cases need to written.
  • How much regression testing should be done.
  • Different Tools to perform Regression Testing
  • Exit Criteria

7. Which of the following is a form of functional testing?

  • Security testing
  • Performance testing
  • Boundary value analysis
  • Usability testing

8. Static testing, the product is tested by humans using just the source code and not the executables or binaries.

  • True
  • False

9. Main() { float me = 1.1; double you = 1.1; if(me==you) printf("yes"); else printf("No"); }

  • Yes
  • No
  • Both
  • Compilation error

10. Which term is used to define testing?

  • Evaluating deliverable to find errors
  • Finding broken code
  • A stage of all projects
  • None of the above

11. Integration bugs occur when the interfaces are integrated in between the assumed tested components

  • True
  • False

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

  • Incomplete Binary Tree
  • Complete Binary Tree
  • Full Binary Tree
  • None

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

  • Dynamic Programming
  • BackTracking
  • Branch and Bound
  • None

14. In coin problem where to occur Data Defect

  • Array value 2 times
  • Array value 1 times
  • Array value 3 times

15. Reporting Discrepancies as incidents is a part of which phase?

  • Test Implementation and execution
  • Evaluating exit criteria and reporting
  • Test Analysis and Design
  • Test Closure Activities

16. Generate test data to make the program enter the sequential block, to make it go through the entire block

  • Sequential control flow
  • Two-way decision statements
  • Multi-way decision statements
  • Loops like while do,

17. All defects result in failure.

  • True
  • False

18. A test harness is a

  • A high level document describing the principles, approach and major objectives of the organization regarding testing
  • A distance set of test activities collected into a manageable phase of a project
  • A test environment comprised of stubs and drives needed to conduct a test
  • A set of several test cases for a component or system under test

19. A city field in software accepts 3 to 25 alpha characters only. Using BVA technique what will be the possible number of combinations?

  • 3, 4, 24, 25
  • 2, 3, 25, 26
  • 2, 3, 24, 25
  • 3, 5, 25, 26

20. ___________ loops fall between single and nested loops with respect to test cases

  • Concatenated
  • Horrible
  • Nested
  • None

21. Software testing activities should start

  • as soon as the code is written
  • during the design stage
  • when the requirements have been formally documented
  • as soon as possible in the development life cycle

22. Data flow analysis studies

  • The use of data on paths through the code
  • Possible communications bottlenecks in a program
  • The intrinsic complexity of the code
  • The rate of change of data values as a program executes

23. Which one of the following characteristics of software products being developed is not a symptom of software crisis?

  • Fail to meet user requirements.
  • Expensive.
  • Highly interactive.
  • Difficult to alter, debug, and enhance.

24. Component Testing is also called as

  • Unit testing
  • Module testing
  • Program testing
  • All of the above

25. In Which of the following situation defects will arise?

  • No knowledge of system
  • System is used in wrong way
  • May have coded wrongly
  • Incorrect setup of testing environment
  • All the above

26. Which is not a task of a configuration management?

  • Reporting
  • Version control
  • Quality control
  • Change management

27. The SQL statements that take care of security and authorization are

  • DDL
  • DML
  • DCL
  • None

28. Which tool would you use if a programmer wanted to express algorithm visually?

  • Flowchart
  • Pseudocode
  • Storyboard
  • Graphical user interface

29. Early defects are

  • Costly to find and difficult to fix
  • Cheap to find and difficult to fix
  • Costly to find and easy to fix
  • Cheap to find and easy to fix

30. Which of the following techniques is NOT a White box technique?

  • Statement Testing and coverage
  • Decision Testing and coverage
  • Condition Coverage
  • Boundary value analysis

31. Validation refers to the set of tasks that ensure that software correctly implements a specific function.

  • True
  • False

32. Which of the following is not a part of the Test Implementation and Execution Phase

  • Creating test suites from the test cases
  • Executing test cases either manually or by using test execution tools
  • Comparing actual results
  • Designing the Tests

33. Which of the following is not used in measuring the size of the software

  • KLOC
  • Function Points
  • Size of module
  • None of the mentioned

34. Testing done without planning and Documentation is called

  • Unit testing
  • Regression testing
  • Adhoc testing
  • None of the mentioned

35. Which of the following is not a valid phase of SDLC (Software Development Life Cycle)?

  • Testing Phase
  • Requirement Phase
  • Deployment phase
  • Testing closure

36. The testing in which code is checked

  • Black box testing
  • White box testing
  • Red box testing
  • Green box testing

37. The path segment for which every node is visited atmost once is said to be

  • DU path
  • Simple path segment
  • loop free path
  • defination clear path segment

38. Defect Repository supports which of the following TMM maturity goals

  • Controlling and monitoring of tests
  • fault model generation
  • test planning
  • defect avoidance

39. A Type of Functional Testing, which investigates the functions relating to the detection of threats, such as viruses from malicious outsiders.

  • Security Testing
  • Recovery Testing
  • Performance Testing
  • Functionality Testing

40. Test Conditions are derived from:

  • Specifications
  • Test Cases
  • Test Data
  • Test Design

41. Statement coverage will not check for the following

  • Dead Code
  • Unused Statement
  • Missing Statements
  • Unused Branches

42. Which of the following is not part of the test type?

  • security testing
  • database testing
  • functional testing
  • statement testing

43. Graph based testing methods are applicable to generate test cases for state machines such as language translators , work flows , transaction flows and data flows.

  • State based Testing
  • Boundary Value Analysis
  • User documentation testing:

44. Software engineering approach is used to achieve:

  • Better performance of hardware
  • Error free software
  • Reusable software
  • Quality software product

45. A predicate whose truth value can change as a result of the processing is said to be

  • Process Dependent 
  • Process Independent
  • Both
  • None

46. Are the following statements true?Verification - confirmation by examination and objective evidence that specified requirements have been fulfilled (are we building the product right?) Validation - confirmation by examination and objective evidence that the requirements for a specific intended use of application has been fulfilled (are we building the right product?)

  • True
  • False

47. _______ loop is a combination of nested loops

  • Concatenated
  • Horrible
  • Nested
  • None

48. The logical function evaluated at a decision is called____________

  • Decision
  • Predicate
  • Path
  • None

49. A __________is a program point at which the control flow can diverge

  • Decision
  • Case Statement
  • Junction
  • None

50. ____________ designs the system and is accountable to the buyer

  • Builder
  • Buyer
  • User
  • Tester

Enjoyed the Quiz. Share this with friends

Comments

Add Your Review

Your email address will not be published.

Subscribe to Newsletter!

Subscribe to get latest updates and information.