GoConqr has a new look! Let us know what you think.

Quiz

Software and Quality Testing exam 2016

Bas Musters 40 questions

Take the quiz

Questions in this quiz (40)

  1. 1In Search-Based Software Testing, which of the following statements is true?
    1. AThe branch distance is the fitness function to minimize for obtaining the test case that cover a
      specific test target (e.g., branch in the code).
    2. BThe single-point crossover is a genetic operator that randomly changes one input parameter in
      a test case.
    3. CThe approach level is the fitness function to minimize for obtaining the test case that cover a
      specific test target (e.g., branch in the code).
    4. DThe roulette wheel is a selection mechanism where test cases with better fitness function have
      higher probability to be selected for reproduction.
  2. 2What is random fuzzing?
    1. AObfuscating the source code so it is no longer readable.
    2. BRandomly picking paths in a state diagram and writing tests for that path.
    3. CAsking programmers at random to try to break your software.
    4. DTesting different random inputs until the system crashes.
  3. 3In Search-Based Software Testing, which of the following statements corresponds best to
    the “No-Free Lunch Theorem”?
    1. ARandom search always performs better than Genetic Algorithms.
    2. BGenetic Algorithms always perform better than random search.
    3. CGiven two search algorithms A1 and A2, if A1 performs better than A2 on a problem P1, there
      will be another problem P2 on which A1 also performs better than A2.
    4. DGiven two search algorithms A1 and A2, if A1 performs better than A2 on a problem P1, there
      will be another problem P2 on which A2 performs better than A1.
  4. 4The laws of software evolution by Belady and Lehman can be paraphrased as:
    1. AThe mess in a software system will increase over time, unless you do something about it.
    2. BDue to evolution, chaos theory applies to software systems, which explains why a small change
      can have drastic effects.
    3. CThrough principled design, controlled software evolution is possible.
    4. DContinuing change is facilitated by a decrease in entropy.
  5. 5Which of the following is a valid reason to use assertions in your code?
    1. ATo conduct input validation.
    2. BTo handle errors in the program
    3. CTo speed up the program.
    4. DTo make debugging easier.
  6. 6A state object’s self-check method, as discussed in the article Beyond Page Objects, is aimed at:
    1. AChecking that the inputs entered on a web page meet the invariant of the page controllers.
    2. BChecking that the web application is in a given state.
    3. CChecking that the object meets its preconditions.
    4. DChecking that an event is triggered with the appropriate action.
  7. 7Consider the method from Figure 2 (page 6) . What is its cyclomatic (McCabe) complexity?
    1. A3
    2. B2
    3. C1
    4. D4
  8. 8Consider the following two code fragments:

    Listing 1: Approach I
    public boolean addToScoreBoard ( Player player , int rank ) {
    assert player != null;
    assert rank > 0;
    // core algorithm comes here
    }

    Listing 2: Approach II
    public boolean addToScoreBoard ( Player player , int rank ) {
    if ( player != null) {
    return false;
    }
    if ( rank <= 0) {
    return false;
    }
    // core algorithm comes here
    }
    1. AApproach I is using a demanding style; Approach II is using a denying style.
    2. BApproach I is using a defensive style; Approach II is using a demanding style.
    3. CApproach I is using a denying style; Approach II is using a demanding style.
    4. DApproach I is using a demanding style; Approach II is using a defensive style
  9. 9What is the purpose of confirmation testing?
    1. ATo confirm that the detailed logic of a component conforms to its specification
    2. BTo confirm that no unexpected changes have been introduced or uncovered as a result of
      changes made
    3. CTo confirm the users’ confidence that the system will meet their business needs.
    4. DTo confirm that a defect has been fixed correctly.
  10. 10According to the study on line coverage of JUnit, the best use of code coverage is as:
    1. AA tool that ensures the percentage of lines executed by the full test suite is at least as high as a given threshold.
    2. BA tool to help managers assess developers test performance
    3. CA tool to assist in reviewing code changes.
    4. DA tool to show your superiors that you have tested all functionality

Information

Description
Computer Science Quiz on Software and Quality Testing exam 2016, created by Bas Musters on 04/07/2017.
Language
English
Views
142
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?