V & V mid exam

Embed Size (px)

Citation preview

  • 8/6/2019 V & V mid exam

    1/4

    UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

    FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

    SOFTWARE ENGINEERING DEPARTMENT

    MS-SE Software Verification & Validation 1

    MID EXAMSOFTWARE VERIFICATION & VALIDATIONINSTRUCTOR:: ALI JAVED Date:: 26thApril, 2011Maximum Marks:10 Time Allowed:: 20 minutes

    Multiple Choice QuestionsChoose the best possible option among the following

    1. A quality problem discovered by software engineers or others before thesoftware is released to end user

    a) Error b) Defect c) Fault d) Bug

    2. ---------- is a software testing technique that uses a combination of black boxand white box testing technique.

    a) Red box b) Yellow box c) Gray box d) Green box

    3. The process in which programmer reads his own program before testinga) Code inspection b) desk checking

    c) walkthrough d) peer review

    4. The time for inspection session in a code inspection is usuallya) 30 to 60 min b) 60 to 90 minc) 90 to 120 min d) 120 to 150 min

    5. Each participant is given ---------- programs to review in Peer reviewa) 2 b) 4 c) 6 d) 8

    6. The program is analyzed with respect to a check list in ----------a) Code inspection b) desk checking

    c) walkthrough d) peer review

    7. The ability to evaluate ideas and make inferences is a part of---- thinkinga) Technical b) Creativec) Critical d) Practical

    8. A -------- is a control point where a program can mergea) Decision b) Process Block

    c) Merger d) Junction

    9. --------- testing exposes defects caused inputting cases (scenarios) thedeveloper forgot to handle or did not anticipate.a) Null case b) Missing case

    c) Omission d) Both b and c

    10. -------------- represents overhead, that is the software that must be written butthat is not delivered with the final software product.

    a) Pilot b) Driverc) Captain d) None of the above

  • 8/6/2019 V & V mid exam

    2/4

    UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

    FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

    SOFTWARE ENGINEERING DEPARTMENT

    MS-SE Software Verification & Validation 2

    11.Which of the following is not a phase in documentation testing?a) Review Inspection b) Live test

    c) Both of the above d) None of the above

    12. Which of the following is not a type of BLACK BOX testing?a) Loop testing b) Load testingc) Null case testing d) Usability testing

    13.The purpose of----------- is to find weaknesses in the system with respect to itshandling of large amounts of data during short time periodsa) Load testing b) Stress testing

    c) Volume testing d) Security testing

    14

    .The probability of changing the program correctly on the first try is only-----

    if thechange involves around 50 lines of code.a) 10% b) 20% c) 40% d) 50%

    15.When testing a program to determine if a change has introduced errors in theunchanged code, you are performing ----------------a) Regression testing b) Re-testingc) Progressive testing d) Omission testing

    16. When performing ---------- testing, there are no exact expected results; it is the testerthat decides what will be verified, critically investigating the correctness of the result.a) Usability b) Exploratoryc) Alpha d) Beta

    17.-------------- inspection technique is mostly used When software is built usingincremental approacha) Two Person b) N-Foldc) Meetingless d) Fagan

    18.The kill-kill anomaly in data flow testing represents -----------a) Warning b) Serious defect

    c) Allowed d) Potential bug

    19. Each node that contains a condition is called a ------------- nodea) Pedigree b) Dedicate

    c) Predicate d) None of the above

    20.Which of the following is not a way to calculate cyclomatic complexity?a) P+1 b) Calculating REGIONSc)E-N+2 d) N-E+2

  • 8/6/2019 V & V mid exam

    3/4

    UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

    FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

    SOFTWARE ENGINEERING DEPARTMENT

    MS-SE Software Verification & Validation 3

    MID EXAMSOFTWARE VERIFICATION & VALIDATIONINSTRUCTOR:: ALI JAVED Date:: 26th April, 2011Maximum Marks: 30 Time Allowed:: 100 minutes

    Subjective PartNOTE: Attempt all questions. All Questions have 2 marks except question 12 & 13which have 4 marks

    1: Why the needs of stubs are eliminated during Bottom-up Integration testing?

    2:Why it is not encouraged to throwaway the test cases?

    3:List the Pros and Cons of Manual Testingand Automated Testing

    4:How the Inspection Session is different from Walkthrough session?

    5:How the GilbInspection is different from Fagan Inspection?

    6:Differentiate between Walkthrough and Inspection session?

    7:List any two drawbacks of Meetingless Inspection

    8:Discuss E-mail pass around reviews briefly.

    9:Define the following testing types briefly.a. Security testing

    b. Recovery Testing

    10:Differentiate between Load and Stress testing.

    11:Consider the specification for the software system ofa book store which give discounts tobuyers based on number of purchased books. The discount rates on the basis of purchasedbooks are mentioned below in the table where 4 equivalence classes are defined

    Class ID Number of Books Discount Rate %

    1 1-19 12 20-49 2

    3 50-99 5

    4 100-199 10

    Now design the test cases for Class 2by drawingup a table showing the test case ID, thevalues about and on the boundary to be input for the test, the boundary it tests, and the

    expected output.

  • 8/6/2019 V & V mid exam

    4/4

    UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

    FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

    SOFTWARE ENGINEERING DEPARTMENT

    MS-SE Software Verification & Validation 4

    12:Draw the flow graph of the following code, then tell the regions, PREDICATE nodes andcalculate the cyclomatic complexity of the followinggraph after finding edges and nodes.

    startread numberwhile number != 0if number > 0root = square_root(number)print rootelseprint error messageendifread number

    endwhileend

    13:Draw the graph matrix and connection matrix of the following program flow graph