Sunday, 2 September 2012

What is Static Testing?

What is Static Testing?


1.     Analysis of the program without testing is called

a.    Static Testing
b.    Dynamic Testing
c.    White Box Testing
d.    None of these

 

2.     Review is a form of

a.     A Quality Control activity
b.     A Quality Assurance activity
c.     Both a) and b)
d.     None

 

3.     The 3 types of review techniques are

a.     Formal, Informal, Structured walkthrough
b.     Informal, Code walkthrough, Inspection
c.     Formal, Inspection, Structured walkthrough
d.     Offline, Structured Walkthrough, Inspection


4.     A review meeting is not held in the case of a

a.     Inspection
b.     Offline review
c.     Inspection and Structured walkthrough
d.     Structured walkthrough

 
5.     Which of the following is incorrect?

a.     Inspection helps in identifying maximum number of defects
b.     Inspection can not be applied to all artefacts of SDLC phases
c.     Structured walkthrough is generally used for code review

d.     Inspection process has seven steps to follow


6.     Which is the most effective review technique in terms of number of defects found?

a.     Structured Walkthrough
b.     Offline
c.     Inspection
d.     None

 
7.     The ratio of defects captured during review to the total number of defects captured during review and testing gives the metric

a.     Review Rate
b.     Defect Rate
c.     Review Efficiency
d.     Defect Density

 
8.     Design & requirement design issues can be:

a.    Ambiguities
b.    Incompleteness
c.    Un-testability
d.    All of the above

 

9.     As per Wieger which of the following is not a requirement problem:

a.   Vagueness & Ambiguity
b.   Prioritized requirement
c.   Scope Creep
d.   Incomplete requirement control process

 

10.   In case the requirement is not clear to you, what is the most advisable process:


a.     Exchange ideas with Tester, developer, marketing team to know various aspects of the product
b.     Talk to your manager about missing requirements/inadequate requirements
c.      Finger out the product behaviour yourself
d.      All of the above

 

More ISEB-ISTQB Exam Papers can be found here: Link

ISTQB Dumps, Exam Paper 19: ISEB ISTQB Foundation Software Testing

ISTQB Dumps, Exam Paper 19: ISEB ISTQB Foundation Software Testing

 
 
Question:
 
Explain what you understand by the terms, Regression Testing and Re-Testing.
 
Answer:

Regression Testing:
  • Running tests to ensure that the software has not regressed in anyway as a result of changes to the software and/or environment. Regression testing is running passed tests again to ensure that they still pass.
Re-Testing
  • This is running a test again that had found a fault to check that the fault has been fixed correctly. Re-testing is running a failed test again to ensure that it now passes.
 

ISTQB Dumps, Exam Paper 18: ISEB ISTQB Foundation Software Testing

ISTQB Dumps, Exam Paper 18, ISEB ISTQB Foundation Software Testing


1.      Given the following code, which is true:

Read P

Read Q

IF P+Q > 100 THEN

  Print "Large"

ELSE

  IF P+Q > 50 THEN

     Print "Medium"

  ELSE

     Print "Small"

  ENDIF

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

2.      Given the following:

Switch PC on

Start “outlook”

IF outlook appears THEN

  Send an email

  Close outlook

   

a)      1 test for statement coverage, 1 for branch coverage

b)      1 tests for statement coverage, 2 for branch coverage

c)      1 tests 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

3.      Given the following code, which is true:

IF A > B THEN

  C = A - B

ELSE

  C = A + B

ENDIF

  Read  D

  IF C = D Then

    Print “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

 


 

In the options to the following questions:
·         CC means Cyclomatic Complexity;
·         SC means the minimum number of test cases required to achieve 100% statement coverage; and
·         BC means the minimum number of test cases required to achieve 100% branch coverage.

4.      For the following:

 

If my train ticket is a cheap-day return

      Then catch a train after 9.30am

      Otherwise catch any train

Buy 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

5.      For the following pseudo code:

 

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

6.      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.


7.      For the following :

 

Go to the vending machine

If the vending machine is not working then

      call repair centre to fix

Otherwise

      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

8.      Which of the following is true:

a)      CC >= SC >= BC

b)      SC >= CC >= BC

c)      BC >= CC >= SC

d)     CC >= BC >= SC

e)      BC >= SC >= CC

9.      Consider the following statements:

1.      CC is a measure of the complexity of the program.

2.      CC is derived by running tests

3.      CC is always measured using a tool

4.      CC can be measured using a tool

5.      CC is a static analysis measurement

 

a)      1, 2 are true; 3, 4, 5 are false

b)      1, 2, 3 are true; 4, 5 are false

c)      1, 2, 3, 4 are true; 5 is false

d)     1, 4, 5 are true; 2, 3 are false

e)      All the statements are true


10.  For the following:

Pick up telephone

Dial number

Wait for reply

Ask to speak to Managing Director

If the Managing Director is available

      Talk to him about the importance of good quality testing

Otherwise

      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

11.  For the following pseudo code:

 

Questions = 40

Result = (Right / Questions) * 100

IF Result < 61 THEN

      print “FAIL”

      X = 0

ELSE

      print “PASS”

      X = 1

ENDIF

IF X = 0 THEN

      Print “You may retake the exam”

ELSE

      Print “Congratulations!”

      Print “Go to the next level of the course”

ENDIF

 

a)      CC = 2, SC = 2, BC = 3

b)      CC = 2, SC = 3, BC = 2

c)      CC = 3, SC = 2, BC = 3

d)     CC = 3, SC = 2, BC = 2

e)      CC = 3, SC = 2, BC = 4

 


 

12.  Consider the following:

 

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 programme

otherwise

            continue reading the newspaper

            if there is a crossword in the newspaper then

                        try to 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 = 3

 
 

ISTQB Dumps, Exam Paper 17: ISEB ISTQB Foundation Software Testing

ISTQB Dumps, Exam Paper 17: ISEB ISTQB Foundation Software Testing


Question:

You have run all your tests and they all pass. Is this good news or bad news?

Answer:

It depends on how good your tests were and what they were testing. To have justified confidence in the software we must have confidence in our tests, data and environment.

 

ISTQB Dumps, Exam Paper 16: ISEB ISTQB Foundation Software Testing

ISTQB Dumps, Exam Paper 16: ISEB ISTQB Foundation Software Testing


Question:

What would you do if you were asked to test a system which is unfamiliar to you has out-of-date or inadequate documentation?

Answer:

Talk to users, developers and analysts to understand what the system is supposed to do. Document this understanding and get it reviewed and use this as a substitute for the Requirements/Design documentation. Talk with testers who have tested the system previously Read whatever is available and clarify assumptions.

ISTQB Dumps, Exam Paper 15: ISEB ISTQB Foundation Software Testing

ISTQB Dumps, Exam Paper 15, ISEB ISTQB Foundation Software Testing


1.   The place to start if you want a (new) testing tool is:

a)      attend a tool exhibition

b)      invite a vendor to give a demonstration

c)      analyse your needs and requirements

d)     find out what your budget would be for the tool

e)      search the internet

2.   When a new testing tool is purchased, it should be used first by:

a)      a small team to establish the best way to use the tool

b)      everyone who may eventually have some use for the tool

c)      the independent testing team

d)     the managers to see what projects it should be used in

e)      the vendor contractor to write the initial scripts

3.   Test Managers should not

a)      report on deviations from the project plan

b)      sign the system off for release

c)      re-allocate resource to meet original plans

d)     raise incidents on faults that they have found

e)      provide information for risk analysis and quality improvement

4.   Unreachable code would best be found using:

a)      code reviews

b)      code inspections

c)      a coverage tool

d)     a test management tool

e)      a static analysis tool

5.   A tool that supports traceability, recording of incidents or scheduling of tests is called:

a)      a dynamic analysis tool

b)      a test execution tool

c)      a debugging tool

d)     a test management tool

e)      a configuration management tool

6.   What information need not be included in a test incident report?

a)      how to fix the fault

b)      how to reproduce the fault

c)      test environment details

d)     severity, priority

e)      the actual and expected outcomes


7.   Match the following terms with the following definitions

 

q)      Regression testing tools

r)       Dynamic Analysis tools

s)       Coverage Measurement tools

t)       Static Analysis tools

u)      Performance Measurement tools

 

v)      Monitors allocation, use and de-allocation of resources

w)    Logging and recording of the number of transactions executed

x)      Provides capture and replay facilities

y)      Provides objective measures of the quality of the code

z)      Programs are instrumented using these tools

 

a)      q=z; r=y; s=v; t=x; u=w

b)      q=x; r=y; s=z; t=v; u=w

c)      q=x; r=v; s=z; t=y; u=w

d)     q=y; r=z; s=w; t=x; u=v

e)      q=z; r=v; s=x; t=y; u=w

8.   Which of the following is not part of Configuration Management?

a)      status accounting

b)      test control

c)      configuration identification

d)     library management

e)      configuration control

9.   Consider the following statements:

1.      a static analysis tool measures cyclomatic complexity

2.      a static analysis tool measures branch coverage

3.      a coverage measurement tool does static analysis

4.      coverage measurement is a static testing technique

5.      coverage measurement is a black box testing technique

 

a)      1, 2 and 4 are true, 3 and 5 are false

b)      1 and 3 are true, 2, 4 and 5 are false

c)      1, 3 and 4 are true, 2 and 5 are false

d)     2, 4 and 5 are true, 1 and 3 are false

e)      All are true

10. Which activity would not be part of test estimation?

a)      monitoring progress of tests run

b)      identifying test activities

c)      planning for rework and retest cycle

d)     estimating total effort to report faults

e)      calculating test effort

ISTQB Dumps, Exam Paper 14: ISEB ISTQB Foundation Software Testing

ISTQB Dumps, Exam Paper 14, ISEB ISTQB Foundation Software Testing


1.   When the software contains an incorrect statement this is called:

a)      an error

b)      a fault

c)      a failure

d)     branch coverage

e)      statement coverage

2.   Which of the following reviews would normally not have management involvement:

a)      Walkthroughs

b)      Informal reviews

c)      Inspections

d)     Technical (peer) reviews

e)      None of the above

3.   Acceptance testing should be the responsibility of

a)a test team of software developers

b)      end-users

c)the project manager

d)     the quality manager

e)the support group or support staff

4.   Consider the following techniques. Are they white box or black box techniques?

1.      branch condition combination testing

2.      cause effect graphing

3.      LCSAJ testing

4.      data flow testing

5.      random testing

6.      modified condition decision testing

7.      boundary value analysis

 

a)      1 – 4 are white box, 5 – 7 are black box

b)      1 – 4 and 6 are white box, 5 and 7 are black box

c)      1, 3, 4 and 6 are white box, 2, 5 and 7 are black box

d)     1, 3 and 6 are white box, 2, 4, 5 and 7 are black box

e)      2 and 3 are white box, 1 and 4 – 7 are black box

5.   Which of the following is least likely to be derived from equivalence partitioning and boundary value analysis?

a)      input of too many digits

b)      maximum and minimum values

c)      less than minimum valid value

d)     how to navigate to the correct field on the screen

e)      greater than maximum valid value


6.   Equivalence partitioning is:

a)      a black box testing technique used only by developers

b)      a black box testing technique that can only be used during system testing

c)      a black box testing technique appropriate to all levels of testing

d)     a white box testing technique appropriate for component testing

e)      a white box testing technique appropriate to all levels of testing

Note: Questions 7 - 9 are based on the following pseudo-code. Draw the control flow graph below if this will be helpful.

 

Result = 0

Read (age)

IF Age < 18 THEN

  WHILE Age <> 18 DO

     Result = Result +1

     Age = Age +1

  ENDDO

  Print “You can start driving in {Result} years”

ELSE

  Print “You can start driving now!”

ENDIF

7.   How many test cases are needed to achieve branch coverage?

a)      5

b)      1

c)      2

d)     3

e)      4

8.   How many test cases are needed to achieve statement coverage?

a)      1

b)      2

c)      3

d)     4

e)      5

9.   What is the cyclomatic complexity?

a)      5

b)      4

c)      3

d)     2

e)      1


10. Black box tests

a)      are derived from a specification

b)      are only used in system and acceptance testing

c)      are derived from the code

d)     are derived from a structural model of the system

e)      are performed at night

11. White box tests are

a)      most appropriate in system testing

b)      normally derived by end users

c)      based on structural aspects of the system

d)     based on functional aspects of the system

e)      are derived from a specification

12. Which of the following is not a dynamic testing technique

a)      boundary value analysis

b)      data stepping

c)      cause effect graphing

d)     decision coverage

e)      error guessing

13. Inspections can find all of the following except

a)      variables not defined in the code

b)      spelling and grammar faults in the documents

c)      requirements that have been omitted from the design documents

d)     whether a document conforms to standards

e)      how much of the code has been covered

14. Why are reviews good to do?

a)      they reduce costs by reducing the number of faults before test execution

b)      they help build good social relationships in the team

c)      it means that system documentation is not needed

d)     it means that test documentation is not needed

e)      it allows people to meet members of the opposite sex in a neutral environment

15. Cyclomatic complexity

a)      is always greater than 1

b)      is equal to the number of decision statements

c)      is equal to the number of ‘IF’ statements plus 1

d)     is equal to the number of decision statements plus 1

e)      cannot be more than ‘branch’ or ‘decision’ coverage


16. What is an invalid boundary?

a)      an input value that must not be entered by the user

b)      an input value that causes the system to crash

c)      a maximum or minimum value in an invalid equivalence class

d)     any value identified by the boundary value analysis testing technique

e)      a value just less than a maximum valid partition value

17. What is an equivalence partition (also known as an equivalence class)?

a)      a divider used to separate two desks in an office

b)      a set of test cases for testing classes of objects

c)      an input or output range of values such that only one value in the range becomes a test case

d)     an input or output range of values such that each value in the range becomes a test case

e)      an input or output range of values such that every tenth value in the range becomes a test case

18. Data flow analysis

a)      can find unreachable code

b)      can find anomalies such as using a variable before defining it

c)      is a dynamic technique

d)     checks for infinite loops

e)      analyses the values defined in each data variable

Note Questions 19 and 20 refer to exam scoring. If a student scores between 50 and 99 they will achieve a pass, scoring between 100 and 149 will achieve a merit and scoring over 149 will achieve a distinction.

19. Which two values are in the same partition?

a)      45 and 55

b)      55 and 120

c)      50 and 60

d)     120 and 170

e)      45 and 170

20. Which of the following would be the minimum set of values identified by the Boundary Value Analysis technique

a)      49,50, 99,100,149,150

b)      50 and 150

c)      49 and 50

d)     50, 100 and 150

e)      50 only