ISTQB Module4- Exam1

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Abdul
A
Abdul
Community Contributor
Quizzes Created: 8 | Total Attempts: 24,111
Questions: 40 | Attempts: 1,621

SettingsSettingsSettings
ISTQB Module4- Exam1 - Quiz

.


Questions and Answers
  • 1. 

    Order numbers on a stock control system can range between 10000 and 99999 inclusive. Which of the following inputs might be a result of designing testes for only valid equivalence classes and valid boundaries? 

    • A.

      1000, 5000, 99999

    • B.

      9999, 50000, 100000

    • C.

      10000, 50000, 99999

    • D.

      10000, 99999

    • E.

      9999, 10000, 50000, 99999, 10000

    Correct Answer
    C. 10000, 50000, 99999
    Explanation
    The given inputs of 10000, 50000, and 99999 are valid equivalence classes and valid boundaries for the order numbers on the stock control system. 10000 represents the lower boundary, 50000 represents a value within the valid range, and 99999 represents the upper boundary. Therefore, these inputs cover the different possible scenarios for testing the stock control system.

    Rate this question:

  • 2. 

    Which of the following is NOT a black box technique?

    • A.

      ECP

    • B.

      State Transition Testing

    • C.

      LCSAJ

    • D.

      Syntax Testing

    • E.

      BVA

    Correct Answer
    C. LCSAJ
    Explanation
    The LCSAJ (Linear Code Sequence and Jump) is not a black box technique. Black box testing refers to a method of testing where the internal structure, design, or implementation details of the system being tested are not known to the tester. ECP (Equivalence Class Partitioning), State Transition Testing, Syntax Testing, and BVA (Boundary Value Analysis) are all examples of black box techniques used to test software systems. However, LCSAJ involves analyzing the code structure and flow, making it a white box technique rather than a black box technique.

    Rate this question:

  • 3. 

    In a flight reservation system, the number of available seats in each plane model is an input. A plane may have any positive number of available seats, up to the given capacity of the plane. Using BVA, a list of available – seat values were generated. Which of the following lists is correct?

    • A.

      1, 2, capacity – 1 capacity, capacity plus 1

    • B.

      0, 1, capacity, capacity plus 1

    • C.

      0, 1, 2, capacity plus 1, a very large number

    • D.

      0,1,10,100, capacity capacity plus 1

    Correct Answer
    B. 0, 1, capacity, capacity plus 1
    Explanation
    The correct answer is 0, 1, capacity, capacity plus 1. This list includes the values of 0 and 1, which represent the minimum and maximum possible number of available seats respectively. It also includes the capacity of the plane, which is the maximum number of seats available. Lastly, it includes capacity plus 1, which represents a value that exceeds the maximum number of available seats. This list covers all possible scenarios and values for the number of available seats in the flight reservation system.

    Rate this question:

  • 4. 

    Why the BVA analysis does provides good test cases?

    • A.

      Because it is an industry standards

    • B.

      Because errors are frequently made during programming of the different cases near the edges of the range of the values

    • C.

      Because only equivalence classes that are equal from a functional point of view are considered in the test cases

    • D.

      Because the test object is tested under maximal load up to its performance limits

    Correct Answer
    B. Because errors are frequently made during programming of the different cases near the edges of the range of the values
    Explanation
    BVA analysis provides good test cases because errors are often made during programming near the edges of the range of values. By testing these boundary values, we can uncover potential bugs or issues that may not be evident when testing other values. This helps to ensure that the software or system is robust and can handle different scenarios effectively.

    Rate this question:

  • 5. 

    An inputs field takes the year of the birth between 1900 and 2004. The boundary value for testing this fields are

    • A.

      0, 1900, 2004, 2004

    • B.

      1900, 2004

    • C.

      1899, 1900, 2004, 2005

    • D.

      1899, 1900, 1901, 2003, 2004, 2005

    Correct Answer
    C. 1899, 1900, 2004, 2005
  • 6. 

    Which of the following is a form of functional testing?

    • A.

      BVA

    • B.

      Usability Testing

    • C.

      Performance Testing

    • D.

      Security Testing

    Correct Answer
    A. BVA
    Explanation
    Boundary Value Analysis (BVA) is a form of functional testing that focuses on testing the system at its boundaries. It involves testing the system with both minimum and maximum input values, as well as values just above and below the boundaries. This helps to identify any issues or errors that may occur at the edges of the system's functionality. Usability testing, performance testing, and security testing are all important types of testing, but they do not specifically fall under the category of functional testing.

    Rate this question:

  • 7. 

    Which of the following is NOT a white box testing technique?

    • A.

      Statement Testing

    • B.

      Path Testing

    • C.

      Data flow Testing

    • D.

      State Transition Testing

    Correct Answer
    D. State Transition Testing
    Explanation
    State Transition Testing is not a white box testing technique because it focuses on testing the behavior of a system based on different states and transitions between those states. It does not require knowledge of the internal structure or code of the system being tested. White box testing techniques, on the other hand, involve testing the internal structure and implementation details of the system, such as statement testing, path testing, and data flow testing.

    Rate this question:

  • 8. 

    Which is not true  about Black box tester?

    • A.

      Should be able to understand a functional specification or requirements documents

    • B.

      Should be able to understand the source code

    • C.

      Is highly motivated to find faults

    • D.

      Is creative to find the system’s weakness

    Correct Answer
    B. Should be able to understand the source code
    Explanation
    A black box tester is not required to understand the source code. Their role is to test the system's functionality without any knowledge of the internal workings or code implementation. They focus on the inputs and outputs of the system, ensuring that it meets the specified requirements. Understanding the source code is more relevant for white box testers who have access to the internal structure of the system and can perform code-based testing.

    Rate this question:

  • 9. 

    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 the software

    • D.

      A way to measure in a test plan what has to be done

    Correct Answer
    A. A process for selecting test cases
    Explanation
    A test design technique refers to a systematic approach or method used to select test cases from a given set of possibilities. It helps in identifying the most relevant and effective test cases that can provide maximum coverage and uncover potential defects in the software. This technique involves various strategies, such as boundary value analysis, equivalence partitioning, and decision table testing, to ensure that the test cases chosen are comprehensive and representative of the system under test.

    Rate this question:

  • 10. 

    Which of the following is not a Black box testing technique?

    • A.

      Statement Testing

    • B.

      ECP

    • C.

      Error Guessing

    • D.

      Usability Testing

    Correct Answer
    A. Statement Testing
    Explanation
     Statement Testing is not a Black box testing technique. It is a White box testing technique that involves testing each line of code in a program to ensure it operates as expected. On the other hand, Usability Testing could be considered a type of Black box testing as it evaluates the system’s user interface and overall user experience without considering the internal workings of the system. So, the answer is Statement Testing.

    Rate this question:

  • 11. 

    In a system designed to work out the tax to be paid:An employee has £4000 of salary tax free.The next £1500 is taxed at 10%.The next £28000 after that is taxed at 22%.Any further amount is taxed at 40%.To the nearest whole pound, which of these is a valid Boundary Value Analysis test case?

    • A.

      £28000

    • B.

      £33501

    • C.

      £32001

    • D.

      £1500

    Correct Answer
    B. £33501
    Explanation
    The valid Boundary Value Analysis test case in this scenario would be £33501. This is because it falls within the range of the next £28000 after the initial tax-free amount, which is taxed at 22%. This test case helps ensure that the system accurately calculates the tax for an amount that is at the upper boundary of this tax bracket.

    Rate this question:

  • 12. 

    A program validates a numeric field as follows:Values less than 10 are rejected; Values between 10 and 21 are accepted.Values greater than or equal to 22 are rejected:Which of the following input values cover all of the equivalence partitions?

    • A.

      10, 11, 21

    • B.

      3, 20, 21

    • C.

      3, 10, 22

    • D.

      10, 21 22

    Correct Answer
    C. 3, 10, 22
    Explanation
    The correct answer is 3, 10, 22. This answer covers all of the equivalence partitions because it includes a value less than 10 (3), a value between 10 and 21 (10), and a value greater than or equal to 22 (22). The other answer choices either do not include values from all three partitions or include values that are not within the specified ranges.

    Rate this question:

  • 13. 

    ‘X’ has given a data on a person age, which should be between 1 to 99. Using BVA which is the appropriate one? 

    • A.

      0,1,2,99

    • B.

      1, 99, 100, 98

    • C.

      0, 1, 99, 100

    • D.

      –1, 0, 1, 99

    Correct Answer
    C. 0, 1, 99, 100
    Explanation
    The given answer 0, 1, 99, 100 is the appropriate one using Boundary Value Analysis (BVA). BVA focuses on testing the boundaries of input values. In this case, the valid age range is between 1 to 99, so it is important to test the minimum boundary (0), the maximum boundary (99), and values just outside the boundaries (1 and 100). This helps ensure that the system handles these boundary values correctly and does not allow invalid values such as negative numbers or values outside the specified range.

    Rate this question:

  • 14. 

    One of the fields on a form contains a text box which accepts numeric values in the range of 18 to 25. Identify the invalid Equivalence class.

    • A.

      17

    • B.

      19

    • C.

      24

    • D.

      21

    Correct Answer
    A. 17
    Explanation
    The invalid equivalence class in this case is 17 because it falls outside the specified range of 18 to 25.

    Rate this question:

  • 15. 

    In an Examination a candidate has to score minimum of 24 marks in order to clear the exam. The maximum that he can score is 40 marks.  Identify the Valid Equivalence values if the student clears the exam.

    • A.

      22,23,26

    • B.

      21,39,40

    • C.

      29,30,31

    • D.

      0,15,22

    Correct Answer
    C. 29,30,31
    Explanation
    The candidate needs to score a minimum of 24 marks to clear the exam. The maximum score he can achieve is 40 marks. Therefore, any score between 24 and 40, inclusive, would be considered a passing score. The values 29, 30, and 31 fall within this range, so they are valid equivalence values if the student clears the exam.

    Rate this question:

  • 16. 

    A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Which of the following covers the MOST boundary values?

    • A.

      9,10,11,22

    • B.

      9,10,21,22

    • C.

      10,11,21,22

    • D.

      10,11,20,21

    Correct Answer
    B. 9,10,21,22
    Explanation
    The correct answer is "9,10,21,22" because it covers the most boundary values. The first value, 9, is less than 10 and should be rejected. The second value, 10, is between 10 and 21 and should be accepted. The third value, 21, is between 10 and 21 and should also be accepted. The fourth value, 22, is greater than or equal to 22 and should be rejected. Therefore, this answer covers all the possible boundary cases.

    Rate this question:

  • 17. 

    One of the fields on a form contains a text box which accepts alpha numeric values. Identify the Valid Equivalence class? 

    • A.

      BOOK

    • B.

      Book

    • C.

      Boo01k

    • D.

      Book

    Correct Answer
    C. Boo01k
    Explanation
    The valid equivalence class for the text box that accepts alphanumeric values is "Boo01k". This is because it contains a combination of alphabetic characters (Boo) and numeric characters (01k), which meets the criteria for the field. The other options, "BOOK" and "Book", do not contain any numeric characters and do not meet the requirements of the text box.

    Rate this question:

  • 18. 

    In an Examination a candidate has to score minimum of 24 marks in order to clear the exam and get distinction. The maximum that he can score is 40 marks.  Identify the Valid Equivalence values if the student clears the exam.

    • A.

      22,23,26

    • B.

      34,37,39

    • C.

      29,30,31

    • D.

      0,15,22

    Correct Answer
    B. 34,37,39
    Explanation
    The candidate needs to score a minimum of 24 marks to clear the exam and get distinction. The maximum score that he can achieve is 40 marks. Therefore, any score above or equal to 24 and below or equal to 40 is considered valid. Among the given options, only 34, 37, and 39 fall within this range, making them the valid equivalence values if the student clears the exam.

    Rate this question:

  • 19. 

    Lily invests £5000 in a savings account with a 3% annual interest rate compounded monthly. Approximately how much will be in the account after 2 years?

    • A.

      £5300 

    • B.

      £5304.50 

    • C.

      £5307.60 

    • D.

      £5309.10

    Correct Answer
    C. £5307.60 
    Explanation
    To calculate compound interest, we use the formula: A = P (1 + r/n)^(nt)
    Where:
    A = the future value of the investment/loan, including interest
    P = the principal investment amount (the initial deposit or loan amount)  
    r = the annual interest rate (as a decimal)  
    n = the number of times that interest is compounded per year
    t = the number of years the money is invested or borrowed for  
    In this case:
    P = £5000
    r = 0.03 (3% as a decimal)
    n = 12 (compounded monthly)
    t = 2
    Plugging these values into the formula:
    A = £5000 (1 + 0.03/12)^(12*2) A = £5000 (1.0025)^24 A ≈ £5307.60

    Rate this question:

  • 20. 

    Given the following specification, which of the following values for age are in the SAME equivalence partition?If you are less than 18, you are too young to be insured.Between 18 and 30 inclusive, you will receive a 20% discount.Anyone over 30 is not eligible for a discount.

    • A.

      17, 18, 19

    • B.

      29, 30, 31

    • C.

      18, 29, 30

    • D.

      17, 29, 31

    Correct Answer
    C. 18, 29, 30
    Explanation
    The given specification defines three different equivalence partitions for age: less than 18, between 18 and 30 inclusive, and over 30. The values 18, 29, and 30 all fall within the second partition, which means they are in the same equivalence partition. This means that they will receive a 20% discount according to the specification.

    Rate this question:

  • 21. 

    Assume postal rates for ‘light letters’ are: $0.25 up to 10 grams $0.35 up to 50 grams $0.45 up to 75 grams $0.55 up to 100 grams Which test inputs (in grams) would be selected using boundary value analysis?

    • A.

      0, 9, 19, 49, 50, 74, 75, 99, 100

    • B.

      10, 50, 75, 100, 250, 1000

    • C.

      0, 1, 10, 11, 50, 51, 75, 76, 100, 101

    • D.

      25, 26, 35, 36, 45, 46, 55, 56

    Correct Answer
    C. 0, 1, 10, 11, 50, 51, 75, 76, 100, 101
    Explanation
    The correct answer is 0, 1, 10, 11, 50, 51, 75, 76, 100, 101. This selection of test inputs follows the boundary value analysis technique. In this technique, the test inputs are chosen at the boundaries of the input domain, as well as just inside and just outside those boundaries. In this case, the boundaries are the weight limits for each postal rate category. So, the test inputs include the values right at the boundaries (0, 10, 50, 75, 100), as well as values just inside and just outside those boundaries (1, 11, 51, 76, 101). This selection ensures that all the boundary conditions are tested.

    Rate this question:

  • 22. 

    Postal rates for 'light letters' are 25p up to l0g, 35p up to 50g plus an extra l0p for each additional 25g up to l00g. Which test inputs (in grams) would be selected using equivalence partitioning? 

    • A.

      8,42,82,102

    • B.

      4,15, 65, 92,159

    • C.

      10,50,75,100

    • D.

      5, 20, 40, 60, 80

    Correct Answer
    B. 4,15, 65, 92,159
    Explanation
    The postal rates for 'light letters' are based on weight. According to the given information, the rates are 25p up to 10g, 35p up to 50g, and an additional 10p for each additional 25g up to 100g. Equivalence partitioning is a testing technique that divides the input values into groups that are expected to produce similar results. In this case, the test inputs are in grams. The selected inputs (4, 15, 65, 92, 159) cover the different equivalence partitions, including values below 10g, values between 10g and 50g, values between 50g and 100g, and values above 100g.

    Rate this question:

  • 23. 

    Which of the following is a valid collection of equivalence classes for the following problem: An integer field shall contain values from and including 1 to and including 15

    • A.

      Less than 1, 1 through 15, more than 15

    • B.

      Negative numbers, 1 through 15, above 15

    • C.

      Less than 1, 1 through 14, more than 15

    • D.

      Less than 0, 1 through 14, 15 and more

    Correct Answer
    A. Less than 1, 1 through 15, more than 15
    Explanation
    The given answer is the valid collection of equivalence classes because it covers all possible values within the specified range of 1 to 15. The first class "Less than 1" includes all numbers less than 1, the second class "1 through 15" includes all numbers from 1 to 15, and the third class "more than 15" includes all numbers greater than 15. This collection ensures that all possible values are accounted for and grouped accordingly.

    Rate this question:

  • 24. 

    How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other:if (Condition 1)then statement 1else statement 2fiif (Condition 2)then statement 3fi

    • A.

      2 Test Cases

    • B.

      3 Test Cases

    • C.

      4 Test Cases

    • D.

      Not achievable

    Correct Answer
    A. 2 Test Cases
    Explanation
    The program fragment consists of two conditional statements. The first if-else statement has two possible paths: one where Condition 1 is true and statement 1 is executed, and another where Condition 1 is false and statement 2 is executed. The second if statement has two possible paths as well: one where Condition 2 is true and statement 3 is executed, and another where Condition 2 is false and no statement is executed. Since the conditions are independent, we can multiply the number of paths for each condition to get the total number of test cases. Therefore, 2 test cases are necessary to cover all possible sequences of statements.

    Rate this question:

  • 25. 

    Switch PC onStart "outlook"IF outlook appears THENSend an emailClose outlook 

    • A.

      1 test for statement coverage, 1 for branch coverage

    • B.

      1 test for statement coverage, 2 for branch coverage

    • C.

      1 test for statement coverage. 3 for branch coverage

    • D.

      2 tests for statement coverage, 2 for branch coverage

    • E.

      2 tests for statement coverage, 3 for branch coverage

    Correct Answer
    B. 1 test for statement coverage, 2 for branch coverage
    Explanation
    The given code snippet includes a switch statement that checks if the PC is onStart and if "outlook" appears. To achieve statement coverage, we need to test each statement in the code at least once. Therefore, we need 1 test for statement coverage.

    For branch coverage, we need to test each possible outcome of the conditional statements. In this case, there are two branches: one for when "outlook" appears and one for when it doesn't. To cover both branches, we need 2 tests for branch coverage.

    Rate this question:

  • 26. 

    IF A > B THENC = A – BELSEC = A + BENDIFRead DIF C = D ThenPrint "Error"ENDIF

    • A.

      1 test for statement coverage, 3 for branch coverage

    • B.

      2 tests for statement coverage, 2 for branch coverage

    • C.

      2 tests for statement coverage. 3 for branch coverage

    • D.

      3 tests for statement coverage, 3 for branch coverage

    • E.

      3 tests for statement coverage, 2 for branch coverage

    Correct Answer
    B. 2 tests for statement coverage, 2 for branch coverage
    Explanation
    The given code snippet contains an if-else statement. The first condition checks if A is greater than B. If it is true, then C is assigned the value of A minus B, and ESEC is assigned the value of A plus B. If the condition is false, the code skips the if block and moves to the next line. The next line reads the value of D. If C is equal to D, then it prints "Error".

    To achieve statement coverage, we need to test all the statements in the code. In this case, there are 2 statements that need to be tested, which are the assignment statements for C and ESEC.

    For branch coverage, we need to test all the possible branches in the code. In this case, there are 2 branches, one for the true condition of the if statement and one for the false condition.

    Therefore, we need 2 tests for statement coverage and 2 tests for branch coverage.

    Rate this question:

  • 27. 

    Pick up and read the newspaper Look at what is on television If there is a program that you are interested in watching then switch the television on and watch the program Otherwise Continue reading the newspaper If there is a crossword in the newspaper then try and complete the crossword  

    • A.

      SC = 1 and DC = 1

    • B.

      SC = 1 and DC = 2

    • C.

      SC = 1 and DC = 3

    • D.

      SC = 2 and DC = 2

    • E.

      SC = 2 and DC = 1

    • F.

      SC = 2 and DC = 3

    Correct Answer
    F. SC = 2 and DC = 3
    Explanation
    The answer SC = 2 and DC = 3 is correct because the given instructions state that if there is a program of interest on television, then the television should be switched on and the program should be watched. If there is no program of interest, then the newspaper should be continued to be read. If there is a crossword in the newspaper, then the crossword should be completed. Therefore, in this scenario, the person will switch on the television and watch the program if there is one, and if there is no program, they will continue reading the newspaper and complete the crossword if there is one.

    Rate this question:

  • 28. 

    Read PRead QIF P+Q > 100 THENPrint "Large"ENDIFIf P > 50 THENPrint "P Large"ENDIF

    • A.

      1 test for statement coverage, 3 for branch coverage

    • B.

      1 test for statement coverage, 2 for branch coverage

    • C.

      1 test for statement coverage, 1 for branch coverage

    • D.

      2 tests for statement coverage, 3 for branch coverage

    • E.

      2 tests for statement coverage, 2 for branch coverage

    Correct Answer
    B. 1 test for statement coverage, 2 for branch coverage
    Explanation
    The given code snippet contains two statements and three branches. The first statement is an if statement that checks if the sum of P and Q is greater than 100. If it is true, it prints "Large". The second statement is an if statement that checks if P is greater than 50. If it is true, it prints "P Large".

    To achieve statement coverage, at least one test is needed to execute both statements. This is because statement coverage requires executing every individual statement at least once.

    To achieve branch coverage, two tests are needed. This is because branch coverage requires executing every possible branch at least once. In this case, there are three branches: one from the first if statement (true or false), one from the second if statement (true or false), and the default branch if none of the conditions are met.

    Therefore, the correct answer is 1 test for statement coverage, 2 for branch coverage.

    Rate this question:

  • 29. 

    If the pseudo code below were a programming language, how many tests are required to achieve 100% statement coverage?1. If x=3 then2. Display_messageX;3.    If y=2 then4.     Display_messageY;5.    Else6.     Display_messageZ;7. Else8. Display_messageZ;

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      4

    Correct Answer
    C. 3
    Explanation
    The given pseudo code has three branches: one for x=3 and y=2, one for x=3 and y≠2, and one for x≠3. To achieve 100% statement coverage, we need to test each of these branches at least once. Therefore, a minimum of three tests are required.

    Rate this question:

  • 30. 

    If my train ticket is a cheap-day return  Then      catch a train after 9.30am      Otherwise      catch any trainBuy a coffee and enjoy the train journey

    • A.

      CC = 1, SC = 1, BC = 1

    • B.

      CC = 1, SC = 2, BC = 2

    • C.

      CC = 2, SC = 1, BC = 1

    • D.

      CC = 2, SC = 2, BC = 2

    • E.

      CC = 2, SC = 1, BC = 2

    Correct Answer
    D. CC = 2, SC = 2, BC = 2
    Explanation
    If CC = 2, SC = 2, and BC = 2, it means that the condition "If my train ticket is a cheap-day return" is false, so the person does not have a cheap-day return ticket. Therefore, they should catch any train and buy a coffee to enjoy the journey.

    Rate this question:

  • 31. 

    Read A Read B IF B = A THEN   Print “they are the same” ELSE   Print “they are different” ENDIF      

    • A.

      CC = 1, SC = 1, BC = 2

    • B.

      CC = 2, SC = 1, BC = 2

    • C.

      CC = 1, SC = 2, BC = 1

    • D.

      CC = 2, SC = 2, BC = 2

    • E.

      CC = 1, SC = 1, BC = 1

    Correct Answer
    D. CC = 2, SC = 2, BC = 2
    Explanation
    The given code snippet compares the values of variables A and B. If they are equal, it prints "they are the same", otherwise it prints "they are different". The answer CC = 2, SC = 2, BC = 2 suggests that both variables A and B have the same value.

    Rate this question:

  • 32. 

    Go to the vending machineIf the vending machine is not working then      call repair centre to fixOtherwise      Insert money      If enough money is inserted then            Select a drink            Wait for drink to be dispensed      Otherwise            Display message requesting more money   

    • A.

      CC = 2, SC = 1, BC = 2

    • B.

      CC = 2, SC = 2, BC = 2

    • C.

      CC = 3, SC = 3, BC = 3

    • D.

      CC = 3, SC = 2, BC = 3

    • E.

      CC = 4, SC = 2, BC = 3

    Correct Answer
    C. CC = 3, SC = 3, BC = 3
    Explanation
    The correct answer is CC = 3, SC = 3, BC = 3. This answer suggests that the condition "If enough money is inserted" is satisfied, meaning that the user has inserted enough money to select a drink. Therefore, the user can select a drink and wait for it to be dispensed.

    Rate this question:

  • 33. 

    Pick up telephoneDial numberWait for replyAsk to speak to Managing DirectorIf the Managing Director is available      Talk to him about the importance of good quality testingOtherwise     Leave a message to phone you back

    • A.

      CC = 1, SC = 1, BC = 2

    • B.

      CC = 1, SC = 2, BC = 2

    • C.

      CC = 2, SC = 1, BC = 2

    • D.

      CC = 2, SC = 2, BC = 2

    • E.

      CC = 2, SC = 2, BC = 3

    Correct Answer
    D. CC = 2, SC = 2, BC = 2
    Explanation
    This answer indicates that the person making the phone call is able to talk to the Managing Director if they are available, and if not, they leave a message for the Managing Director to call them back. The CC (Control Condition) is 2 because there are two possible outcomes depending on whether the Managing Director is available or not. The SC (Simple Condition) is also 2 because there are two actions that can be taken - talking to the Managing Director or leaving a message. The BC (Boundary Condition) is 2 because there are two possible outcomes for the availability of the Managing Director.

    Rate this question:

  • 34. 

    Which of the following is FALSE?

    • A.

      At 100%, statement coverage is the same as branch coverage.

    • B.

      At 100%, decision coverage is the same as branch coverage.

    • C.

      At 100%, branch coverage is the same as decision coverage.

    • D.

      At less than 100% coverage, branch and decision coverage can be different.

    • E.

      At 100% coverage, branch and path coverage can be different.

    Correct Answer
    A. At 100%, statement coverage is the same as branch coverage.
  • 35. 

    Ask: "What type of ticket do you require, single or return?"IF the customer wants ‘return’Ask: "What rate, Standard or Cheap-day?"IF the customer replies ‘Cheap-day’Say: "That will be £11:20"ELSESay: "That will be £19:50"ENDIFELSESay: "That will be £9:75"ENDIFNow decide the minimum number of tests that are needed to ensure that all the questions have been asked, all combinations have occurred and all replies given.

    • A.

      3

    • B.

      4

    • C.

      5

    • D.

      6

    Correct Answer
    A. 3
    Explanation
    The minimum number of tests needed to ensure that all the questions have been asked, all combinations have occurred, and all replies given is 3. This is because there are two questions in the scenario: the type of ticket required (single or return) and the rate (Standard or Cheap-day). Each question has two possible answers. Therefore, the total number of combinations is 2 x 2 = 4. However, one combination is already covered in the given scenario (customer wants a return ticket and Cheap-day rate), so only three additional tests are needed to cover all the remaining combinations.

    Rate this question:

  • 36. 

    Which Test Suite check for an invalid transition using the diagram below?

    • A.

      S0-S1 –S2-S3-S1-S4

    • B.

      S0-S1-S4-S1-S2-S3

    • C.

      S0-S1-S3-S1-S2-S1

    • D.

      S0-S1-S2-S3-S1-S2

    Correct Answer
    C. S0-S1-S3-S1-S2-S1
    Explanation
    The test suite that checks for an invalid transition using the given diagram is S0-S1-S3-S1-S2-S1. This is because it follows the sequence of states as per the diagram, and at each transition, it moves to the next state that is connected by an arrow. However, at the transition from S2 to S1, it goes back to S1 instead of moving to S4, which is an invalid transition.

    Rate this question:

  • 37. 

    Conditions:1.C1  Attendance >80%2.C2  3 internal tests with an average of 10 or above3.C3  2 internal tests with an average of 15 or above4.C4  External examination and scored more than 35Actions:1.A1  Passed2.A2  FailedHow many test cases require for this above question?

    • A.

      6

    • B.

      7

    • C.

      4

    • D.

      8

    Correct Answer
    D. 8
    Explanation
    The question requires 8 test cases to cover all possible scenarios. The conditions state that C1 requires attendance above 80%, C2 requires an average of 10 or above in 3 internal tests, C3 requires an average of 15 or above in 2 internal tests, and C4 requires a score of more than 35 in the external examination. The actions are to determine whether the student passed or failed. Therefore, we need to test all combinations of these conditions to cover all possible outcomes, resulting in 8 test cases.

    Rate this question:

  • 38. 

    Consider the following state transition diagram of a two-speed hair dryer, which is operated by pressing its one button. The first press of the button turns it on to Speed 1, second press to Speed 2 and the third press turns it off.Which of the following series of state transitions below will provide 0-switch coverage?

    • A.

      A,C,B

    • B.

      B,C,A

    • C.

      A,B,C

    • D.

      C,B,A

    Correct Answer
    C. A,B,C
    Explanation
    The series of state transitions A,B,C provides 0-switch coverage because it includes all possible transitions between the states. The first press of the button turns the hair dryer on to Speed 1 (A), the second press transitions it to Speed 2 (B), and the third press turns it off (C). This sequence covers all three states of the hair dryer and ensures that it goes through each state at least once.

    Rate this question:

  • 39. 

    If (p = q) {  s = s + 1; if (a < S) { t = 10; } } else if (p > q) { t = 5; }

    • A.

      3

    • B.

      6

    • C.

      5

    • D.

      None of the above

    Correct Answer
    D. None of the above
    Explanation
    The code first checks if p is equal to q. If it is, then it executes the block of code within the first set of curly braces. Within this block, the value of variable s is incremented by 1. Then, it checks if variable a is less than the value of variable S (note that S is not defined in the code snippet). If this condition is true, it assigns the value 10 to variable t.
    If the condition (p = q) is false, it checks if p is greater than q. If this condition is true, it assigns the value 5 to variable t.
    Without knowing the values of p, q, S, and a, we cannot determine the exact value of t. However, we can analyze the possible scenarios:
    If p is equal to q and a is less than S, then t will be assigned the value 10.
    If p is equal to q and a is not less than S, then t will remain unchanged (it will retain its previous value).
    If p is greater than q, then t will be assigned the value 5.
    Since we cannot determine the values of S and a from the given code snippet, we cannot definitively determine the value of t. Therefore, the correct answer is: None of the above.

    Rate this question:

  • 40. 

    One of the fields on a form contains a text box, which accepts alphabets in lower or upper case. Identify the invalid Equivalence class value. 

    • A.

      CLASS

    • B.

      CLASS

    • C.

      CLass

    • D.

      CLa01ss

    Correct Answer
    D. CLa01ss
    Explanation
    The given answer "CLa01ss" is the invalid equivalence class value because it includes a numeric character "01" which is not allowed in the given form field. The form specifies that only alphabets in lower or upper case are accepted, so the presence of a numeric character makes this value invalid.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Oct 25, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • May 17, 2017
    Quiz Created by
    Abdul
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.