MauryaHub PYQ Practice

Software Testing · Quiz 2 · Sep 2022

Software Testing · Quiz 2 · Sep 2022

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 17 published solutions

Question 89 MCQ · 0.0 marks

Source diagram or notation
6406531487202.
Yes
6406531487203.
No

A published solution is not available for this question yet.

Report a correction for Q89

Question 90 MSQ · 6.0 marks

Source diagram or notation
Source diagram or notation
Source diagram or notation
6406531487204.Source diagram or notation
6406531487205.Source diagram or notation
6406531487206.Source diagram or notation
6406531487207.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q90

Question 91 MSQ · 6.0 marks

When applying logic criteria to programs, predicates are taken from which of the following statements.
6406531487254.
for/while loops.
6406531487255.
Variable assignment statements like a=5 or a=b+c.
6406531487256.
Switch case statements.
6406531487257.
If statements.

A published solution is not available for this question yet.

Report a correction for Q91

Question 92 MCQ · 8.0 marks

Consider the following CFG.
Source diagram or notation
What is the number of prime paths for the above CFG?
6406531487208.
5
6406531487209.
6
6406531487210.
7
6406531487211.
8

A published solution is not available for this question yet.

Report a correction for Q92

Question 93 MCQ · 8.0 marks

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:
Source diagram or notation
What is the minimum number of test cases to be prepared for testing the software system using equivalence class partitioning technique?
6406531487224.
3
6406531487225.
4
6406531487226.
5
6406531487227.
6

A published solution is not available for this question yet.

Report a correction for Q93

Question 94 MCQ · 6.0 marks

Match the following regarding data flow graphs.
Source diagram or notation
6406531487212.
1-D, 2-C, 3-B, 4-A
6406531487213.
1-B, 2-A, 3-C, 4-D
6406531487214.
1-C, 2-D, 3-A, 4-B
6406531487215.
1-B, 2-A, 3-D, 4-C

A published solution is not available for this question yet.

Report a correction for Q94

Question 95 MCQ · 6.0 marks

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?
6406531487216.
Top-down approach
6406531487217.
Bottom-up approach
6406531487218.
Sandwich approach
6406531487219.
Big bang approach

A published solution is not available for this question yet.

Report a correction for Q95

Question 96 MCQ · 6.0 marks

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.
6406531487220.
Parameter coupling
6406531487221.
Shared data coupling
6406531487222.
External device coupling
6406531487223.
Message-passing interfaces:

A published solution is not available for this question yet.

Report a correction for Q96

Question 97 MCQ · 6.0 marks

When it comes to partition-based testing with multiple inputs, which of the following techniques is better than the others?
6406531487228.
Equivalence partitioning.
6406531487229.
Boundary value analysis.
6406531487230.
Partitions and functional testing.
6406531487231.
Decision tables.

A published solution is not available for this question yet.

Report a correction for Q97

Question 98 MCQ · 6.0 marks

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?
6406531487232.
Month, day and year.
6406531487233.
Date containing month, day and year.
6406531487234.
Today’s date.
6406531487235.
Range of dates.

A published solution is not available for this question yet.

Report a correction for Q98

Question 99 MCQ · 6.0 marks

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?
6406531487236.
Only one partition: 1 ≤ day ≤ 31.
6406531487237.
Two partitions: (1) day > 1 and (2) 30 ≤ day ≤ 31.
6406531487238.
Three partitions: (1) 1 ≤ day ≤ 29, (2) day = 30 and (3) day = 31.
6406531487239.
Four partitions: (1) 1 ≤ day ≤ 28, (2) day = 29, (3) day = 30 and (4) day = 31.

A published solution is not available for this question yet.

Report a correction for Q99

Question 100 MCQ · 4.0 marks

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?
6406531487240.
True.
6406531487241.
False.

A published solution is not available for this question yet.

Report a correction for Q100

Question 101 MCQ · 7.0 marks

Source diagram or notation
6406531487242.
GACC (General Active Clause Coverage)
6406531487243.
RACC (Restricted Active Clause Coverage)
6406531487244.
RICC (Restricted Inactive Clause Coverage)
6406531487245.
GICC (General Inactive Clause Coverage)

A published solution is not available for this question yet.

Report a correction for Q101

Question 102 MCQ · 7.0 marks

Consider the following code segment for symbolic testing.
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406531487246.Source diagram or notation
6406531487247.Source diagram or notation
6406531487248.Source diagram or notation
6406531487249.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q102

Question 103 MCQ · 7.0 marks

Consider the following code segment for symbolic testing.
Source diagram or notation
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}.
6406531487250.Source diagram or notation
6406531487251.Source diagram or notation
6406531487252.Source diagram or notation
6406531487253.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q103

Question 104 MCQ · 6.0 marks

Source diagram or notation
Which rows in the given truth table will make the predicate p **false**?
6406531487258.
Rows 5,7 and 8.
6406531487259.
Rows 4,6 and 7.
6406531487260.
Rows 5,6 and 8.
6406531487261.
Rows 1,2,3 and 4.

A published solution is not available for this question yet.

Report a correction for Q104

Question 105 MCQ · 5.0 marks

Source diagram or notation
Which of the following represents pa, the conditions under which the clause a determines p ?
6406531487262.Source diagram or notation
6406531487263.Source diagram or notation
6406531487264.Source diagram or notation
6406531487265.Source diagram or notation
      **Sw Engg** **Section Id :** 64065329025 **Section Number :** 6 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 24 **Number of Questions to be attempted :** 24 **Section Marks :** 100 **Display Number Panel :** Yes **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes

A published solution is not available for this question yet.

Report a correction for Q105