TeStride: Announces Quiz2 for Contest # 2
Thanks for your response for Contest 1 and Contest 2 Quiz 1, Results for the same would be out soon! (keep checking the official site for more information) Please note that we are accepting Papers for the conference and Innovative ideas (which has a 25000/- reward) - do check http://www.testride.in/contest.html#contestcp
Quiz 2: Contest 2: Champion ISTQB Foundation Level Quizzer
Quiz 2
Start Date : 17 April 2012
Last Date of Sub: 24 April 12
Questions are:
Q.1 Code Coverage is used as a measure of what ?
a) Defects
b) Trends analysis
c) Test Effectiveness
d) Time Spent Testing
Q-2 How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other : -
…………
if (Condition 1)
then statement 1
else statement 2
if (Condition 2)
then statement 3
fi
fi
…………
a) Not achievable
b) 3 Test Cases
c) 2 Test Cases
d) 4 test cases
Q-3 Given the following code, which statement is true about the minimum number of test cases required for full statement and branch coverage?
Read a
Read b
IF (a+b) > 2000 THEN
Print "Large"
ENDIF
IF a > 500 THEN
Print "a is Large"
ENDIF
a) 1 test for statement coverage, 3 for branch coverage
b) 2 tests for statement coverage, 2 for branch coverage
c) 1 test for statement coverage, 2 for branch coverage
d) 1 test for statement coverage, 1 for branch coverage
Q-4 Given the Following program
IF A < B
THEN Statement 1;
ELSE IF B >= C
THEN Statement 2;
END
McCabe’s Cyclomatic Complexity is :
a) 2
b) 5
c) 3
d) 1
Q-5
If the pseudocode below were a programming language ,how many tests are required to achieve 100% statement coverage?
1. If x=3 then
2. Display_messageX;
3. If y=2 then
4. Display_messageY;
5. Else
6. Display_messageZ;
7. Else
8. Display_messageZ;
a) 2
b) 3
c) 1
d) 4
Rules:
Participants have to send in the quiz answers as soon as the contest is live
They have to give reasoning for the answers on why they chose the selected answer and not some other choice
Quizzes will be judged by ISTQB / ITB associates and their decision would be final. If there are more than one correct entry the winner would be chosen through a lottery
Winners would be listed on the conference page
Winners list would be published and emailed to all participants
All correct entries with correct explanation would get 1 point
1st winner would get 20 points
2nd Winner would get 10 points
3rd Winner would get 5 points
Please send in your response to the following quiz in the following format Your name:
Your Organization name
Your Experience
Your Interest Areas in Testing Answers to the questions are
1)
2)
3)
4)
5) Answer should be a,b,c,d adjacent to the question
Send in the details to
contest02@testride.in
with Subject line starting QUIZ2:
Please also attach a passport size photo (size not more than 50KB) !!!CONTEST 3 and CONTEST4 would be shortly announced.. GET READY TESTERS!!!