Loading

SET 4


  Question 1

The coupling between different modules of a software is categorized as follows:
I. Content coupling
II. Common coupling
III. Control coupling
IV. Stamp coupling
V. Data coupling
Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows:


A : I-II-III-IV-V
B : V-IV-III-II-I
C : I-III-V -II-IV
D : IV-II-V-III-I


  •  
    .

     Correct answer is :A


  •   Question 2

    Which of the following statements are TRUE?
    I. The context diagram should depict The system as a single bubble.
    II. External entities should be identified clearly at all levels of DFDs.
    III. Control information should not be represented in a DFD.
    IV. A data store can be connected either to another data store or to an external entity.


    A : II and III
    B : II and III
    C : I and III
    D : I,II and III


  •  
    .

     Correct answer is :C

     Solution :
      The context diagram depict the system as a single bubble. Control information should not represent in DFD.

  •   Question 3

    Consider the following statements about the cyclomatic complexity of the control flow graph of a program module. Which of these are TRUE?
    I. The cyclomatic complexity of a module is equal to the maximum number of linearly independent circuits in the graph.
    II. The cyclomatic complexity of a module is the number of decisions in the module plus one,where a decision is effectively any conditional statement in the module.
    III.The cyclomatic complexity can also be used as a number of linearly independent paths that should be tested during path coverage testing.


    A : I and II
    B : II and III
    C : I and III
    D : I,II and III


  •  
    .

     Correct answer is :B

     Solution :
      TRUE: The cyclomatic complexity of a module is the number of decisions in the module plus one,where a decision is effectively any conditional statement in the module.
    TRUE: The cyclomatic complexity can also be used as a number of linearly independent paths that should be tested during path coverage testing.

  •   Question 4

    The cyclomatic complexity of each of the modules A and B shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right hand side?



    A : 19
    B : 21
    C : 20
    D : 10


  •  
    .

     Correct answer is :A

     Solution :
      CC = Number of decision points + 1
    So in A and B there are 9 Decision points and in the third figure there are 18 such points so CC=18+1

  •   Question 5

    What is the appropriate pairing of items in the two columns listing various activities encountered in a software life cycle?



    A : P-3, Q-2,R-4,S-1
    B : P-2, Q-3,R-1,S-4
    C : P-3, Q-2,R-1,S-4
    D : P-2, Q-3,R-4,S-1


  •  
    .

     Correct answer is :B


  •   Question 6

    The following program is to be tested for statement coverage:
    begin
    if (a== b) {S1; exit;}
    else if (c== d) {S2;}
    else {S3; exit;}
    S4;
    end
    The test cases T1, T2, T3 and T4 given below are expressed in terms of the properties satisfied by the values of variables a, b, c and d. The exact values are not given. T1 : a, b, c and d are all equal T2 : a, b, c and d are all distinct T3 : a = b and c != d T4 : a != b and c = d Which of the test suites given below given below ensures coverage of statements S1, S2, S3 and S4?


    A : T1, T2, T3
    B : T2, T4
    C : T3, T4
    D : T1, T2, T4


  •  
    .

     Correct answer is :D


  • MY REPORT
    TOTAL = 6
    ANSWERED =
    CORRECT / TOTAL = /6
    POSITIVE SCORE =
    NEGATIVE SCORE =
    FINAL SCORE =