Question 1 | MCQ
Solution
Solution
When applying logic criteria to programs, predicates are taken from which of the following statements.
Solution
Consider the following CFG.

What is the number of prime paths for the above CFG?
What is the number of prime paths for the above CFG?
Solution
Consider a software system that computes the monthly electricity charges for domestic usage. The input to the system is an integer that represents the units of electricity consumed, and the output is the electricity bill amount (a real value that is computed as the units consumed X unit charges).
The charge per unit is as follows:

What is the minimum number of test cases to be prepared for testing the software system using equivalence class partitioning technique?
The charge per unit is as follows:
What is the minimum number of test cases to be prepared for testing the software system using equivalence class partitioning technique?
Solution
Match the following regarding data flow graphs.

Solution
Which of the integration testing approaches starts with the top-level modules as well as the lowest-level modules, followed by the middle-level modules?
Solution
Consider an integration testing scenario where two units access the same data file. Identify the type of coupling based on the interfaces for this scenario.
Solution
When it comes to partition-based testing with multiple inputs, which of the following techniques is better than the others?
Solution
Comprehension Passage
For the given subquestions, consider a function called NextDate which takes as input a valid date in mm/dd/yyyy (month followed by date followed by year) format and computes the date of the next day. For example, given 06/14/1996, the NextDate function will return 06/15/1996> and when given 02/28/2019>, the NextDate function will return 03/01/2019. Answer the given subquestions regarding input space partitioning test cases for the NextDate function.
What are the variables involved in the NextDate function input?
Solution
Comprehension Passage
For the given subquestions, consider a function called NextDate which takes as input a valid date in mm/dd/yyyy (month followed by date followed by year) format and computes the date of the next day. For example, given 06/14/1996, the NextDate function will return 06/15/1996> and when given 02/28/2019>, the NextDate function will return 03/01/2019. Answer the given subquestions regarding input space partitioning test cases for the NextDate function.
Which of the following are valid partitions for the day, as a part of the input to the NextDate function?
Solution
Comprehension Passage
For the given subquestions, consider a function called NextDate which takes as input a valid date in mm/dd/yyyy (month followed by date followed by year) format and computes the date of the next day. For example, given 06/14/1996, the NextDate function will return 06/15/1996> and when given 02/28/2019>, the NextDate function will return 03/01/2019. Answer the given subquestions regarding input space partitioning test cases for the NextDate function.
State true or false: The partition
(1) {month: month has 30 days},
(2) {month: month has 31 days},
(3) {month: month is February}
is a valid partition for a month as a part of the input to the NextDate function?
(1) {month: month has 30 days},
(2) {month: month has 31 days},
(3) {month: month is February}
is a valid partition for a month as a part of the input to the NextDate function?
Solution
Solution
Comprehension Passage
Consider the following code segment for symbolic testing.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Consider the following code segment for symbolic testing.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Let's consider that DART testing technique is applied, and guesses are, value 30 for x and 55 for y.
Identify the path constraint that represents an equivalence class of input vectors containing all the input values that drive the program through the same path of execution that is executed by {x=30, y=55}.
Identify the path constraint that represents an equivalence class of input vectors containing all the input values that drive the program through the same path of execution that is executed by {x=30, y=55}.
Solution
Comprehension Passage
Which rows in the given truth table will make the predicate p false?
Solution
Comprehension Passage
Which of the following represents pa, the conditions under which the clause a determines p ?
Solution
Shape
Thickness [ / ]
3
All colors