SOAP UI Testing Questions and Answers

SOAP UI Testing | Mock Test

1
[Groovy] What will be the output?
[14, 35, -7, 46, 98].min()
a. -7
b. 35
c. 98
d. 14

Answer : -7
 
2
[Groovy] What will be the output?
def value = ‘value’
def longText =
This is very long text!
And it uses variable ${value}
def longText2 = ”’
This is long text does not expanding variable ${value}
def a = abcd
println a[1..0]
a. abcd
b. dcba
c. Error while compilatio
d. Error while running
Answer : dcba
 
3
[Groovy] What will be the output?
y= (x == 2) ? 2 : not 2
println y
a. not 2
b. 2
c. Exception thrown at run time
d. Compilation Error
Answer : not 2
 
4
[Groovy] Which is the keyword used to define function in Groovy?
a. def
b. function
c. func
d. proc
Answer : function
 
5
[Groovy] Shortcut to run groovy script from console is?
a. Ctrl + R
b. F5
c. Ctrl + 5
d. Ctrl + F1
Answer : Ctrl + R
 
6
[Groovy] What is the compiler for Groovy?
a. javac
b. groovyc
c. Cjava
d. Cgroovy
Answer : groovyc
 
7
Multiple condition coverage reports whether every possible combination of conditions occurs. The test cases required for full multiple condition coverage of a decision are given by the logical operator ……. for the decision.
a. section table
b. data table
c. truth table
d. variable table
Answer : truth table
 
8
Path coverage drawbacks:
a. Number of possible paths that need to be supported by test procedures my be exceedingly exhaustive and beyond the scope of most test programs.
b. Path coverage is very less time consuming and should be used for critical success functions only.
c. Path coverage in infinitely difficult
d. Path coverage may have loopings.
Answer : Number of possible paths that need to be supported by test procedures my be exceedingly exhaustive and beyond the scope of most test programs.
 
9
Path coverage includes
a. Statement coverage
b. Condition coverage
c. Decision coverage
d. Test Coverage
Answer : Decision coverage
 
10
Test coverage analysis is the process of
a. Creating additional test cases to increase coverage
b. Finding areas of program exercised by the test cases
c. Determining a quantitative measure of code coverage, which is a direct measure of quality.
d. Determining Statement Coverage
Answer : Creating additional test cases to increase coverage
 

2 Replies to “SOAP UI Testing Questions and Answers

Comments are closed.