Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Software testing and validation questions 1) Parameterless test methods needs annotation _? a. @Test b. @Parameterized.Parameters c. Both a and b d. None 2) Parameterized

Software testing and validation questions

1) Parameterless test methods needs annotation _?

a. @Test

b. @Parameterized.Parameters

c. Both a and b

d. None

2) Parameterized test class should have__.

a. Test generator

b. Constructor

c. Both a and b

d. None

3) Which of the following is a suitable MDTD tool to test states of software?

a. CFG

b. Call graph

c. Data flow graph

d. FSM

4) If a test exist that can execute a subpath then it is called ___ reach.

a. Syntactic

b. Semantic

c. Both a and b

d. None

5) CFG is used to model ____.

a. Structure

b. Use case

c. Specification

d. Source

6) Call graph is used to mode ____.

a. Structure

b. Use case

c. Specification

d. Source

7) A path is represented as a sequence of ____.

a. Edges

b. A pair of edges

c. Nodes

d. All

8) The length of a path is the number of ___.

a. Nodes

b. Edges

c. Both a and b

d. None

9) Method with @Parameters annotation should return ___ type.

a. Object

b. Primitive

c. Void

d. Collection

10) Test path in a graph is a path that ___.

a. Starts at initial node

b. Ends at a final node

c. Any path

d. None

11) Data flow test coverage is based on the concept of ___.

a. Nodes

b. Edges

c. Variables

d. All

12) Which of the following is the strongest test coverage?

a. EC

b. EPC

c. NC

d. None

13) Which if the following contains the longest path?

a. EC

b. EPC

c. CPC

d. None

14) Which of the following subsumes EPC?

a. EC

b. PPC

c. Both a and b

d. None

15) Which of the following allows to test paths in the form of loop?

a. PPC

b. EPC

c. Both a and b

d. None

16) Complete Round Trip Coverage (CRTC) subsumes ___?

a. NC

b. EC

c. EPC

d. None

17) For modeling use cases by a graph the suitable diagram is ___.

a. Class diagram

b. Activity diagram

c. Sequence diagram

d. FSM

18) Which of the following coverage contains in general more number of paths?

a. All def

b. All du

c. All use

d. None

19) Every statement of the source code can be tested by ____.

a. NC

b. EC

c. EPC

d. All

20) Which of the following uses concepts last-def, first-use?

a. Specification

b. Design

c. Source

d. Use-case

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions