MauryaHub PYQ Practice

Software Testing · Quiz 2 · Sep 2023

Software Testing · Quiz 2 · Sep 2023

← 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 / 18 published solutions

Question 2 MCQ · 5.0 marks

Suppose a mobile application for hotel room booking has a requirement that the language interface be available in all prominent Indian languages. Identify the correct type of the requirement.
6406532311452.
Business requirement
6406532311453.
User requirement
6406532311454.
Regulatory requirement
6406532311455.
Non-functional requirement

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 5.0 marks

Consider a banking web application that determines the annual interest rate applied to a housing loan (only) based on the tenure (number of years to repay the loan). The annual interest rate is calculated as follows: • The tenure can be 1 to 20 years. • If the tenure is between 1 and 5 years, then the rate is 11%. • If the tenure is between 6 and 10 years, then the rate is 10%. • If the tenure is between 11 and 15 years, then the rate is 9%. • If the tenure is between 16 and 20 years, then the rate is 8.5% What is the minimum number of test cases to be prepared for testing the application using the equivalence class partitioning technique?
6406532311456.
4
6406532311457.
5
6406532311458.
6
6406532311459.
7

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 5.0 marks

For a predicate p with n clauses, how many test cases need to be prepared for all combinations coverage?
6406532311468.
n − 1
6406532311469.
2\(^{n}\)
6406532311470.
n\(^{2}\)
6406532311471.
n!

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 5.0 marks

In an FSM (Finite State Machine), which of the following is represented as **preconditions**?
6406532311512.
Conditions that must be true for transitions to be taken.
6406532311513.
Changes to variables that cause transitions to be taken.
6406532311514.
The initial state of the FSM.
6406532311515.
The possible changes from one state to another.

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 5.0 marks

Modules interact with each other using well-defined **interfaces**. Which of the following interfaces allows data and control both to be passed in both directions between two modules?
6406532311516.
Procedure call interface
6406532311517.
Message passing interface
6406532311518.
Shared memory interface
6406532311519.
All of these

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MSQ · 5.0 marks

Suppose we need to test a program that takes an integer as input. The input domain can be partitioned into 2 equivalence classes: an input x is valid if 10 < x < 100, and the rest are invalid inputs. Identify the correct set(s) of BVA (Boundary Value Analysis) test cases for the valid partition from the following options.
6406532311460.
{x = 10, x = 15, x = 100}
6406532311461.
{x = 11, x = 15, x = 99}
6406532311462.
{x = 10, x = 11, x = 15, x = 99, x = 100}
6406532311463.
{x = 10, x = 11, x = 12, x = 15, x = 98, x = 99, x = 100}

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MSQ · 5.0 marks

Consider the annotated control flow graph (CFG) given below.
Source diagram or notation
Which of the following test case inputs will result in test path(s) that visit(s) the edge (4, 6) ?
6406532311488.
{x = 10, y = 30, z = 20}
6406532311489.
{x = 30, y = 30, z = 20}
6406532311490.
{x = 30, y = 20, z = 10}
6406532311491.
{x = 30, y = 10, z = 20}

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 6.0 marks

Consider input space partitioning (ISP) for a program that computes the annual interest rate of a fixed deposit scheme presented in the table below, consisting of characteristics and blocks.
Source diagram or notation
What is the minimum number of tests (including the base choice) required to satisfy base choice coverage (BCC) criterion?
6406532311464.
6
6406532311465.Source diagram or notation
7
6406532311466.
8
6406532311467.
9

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 6.0 marks

Consider the following truth table for predicate p.
Source diagram or notation
With reference to the truth table row numbers (Row#) above, identify the GACC pairs for clause a from the following options?
6406532311472.
Row (2, 4) only
6406532311473.
Row (1, 2) only
6406532311474.
Rows (1, 3) and (2, 4)
6406532311475.
Rows (1, 4) and (2, 3)

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 6.0 marks

Source diagram or notation
6406532311476.Source diagram or notation
6406532311477.Source diagram or notation
6406532311478.Source diagram or notation
6406532311479.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 6.0 marks

Source diagram or notation
6406532311492.Source diagram or notation
6406532311493.Source diagram or notation
6406532311494.Source diagram or notation
6406532311495.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 6.0 marks

Consider the annotated CFG given below.
Source diagram or notation
Which of the following criteria does the set of paths below satisfy? {[1, 2, 4, 5, 6, 8], [1, 2, 4, 5, 7, 8], [1, 2, 3, 5, 6, 8]}
6406532311520.
All-defs coverage
6406532311521.
All-uses coverage
6406532311522.
All du-paths coverage
6406532311523.
None of these

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 6.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following represents pa, the conditions under which the clause a determines p?
6406532311480.
¬b ∨ c
6406532311481.
¬b ∨ ¬c
6406532311482.
¬b ∧ ¬c
6406532311483.
b ∧ c

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 6.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
From the given options, identify all pairs of test requirements to satisfy restricted active clause coverage (RACC) for clause a.
6406532311484.
{(a = F, b = T, c = T), (a = F, b = F, c = T) {(a = F, b = T, c = F), (a = F, b = F, c = F)
6406532311485.
{(a = T, b = T, c = F), (a = F, b = F, c = T) {(a = T, b = F, c = T), (a = F, b = F, c = F) {(a = T, b = F, c = F), (a = F, b = T, c = F)
6406532311486.
{(a = T, b = T, c = F), (a = F, b = T, c = F) {(a = T, b = F, c = T), (a = F, b = F, c = T) {(a = T, b = F, c = F), (a = F, b = F, c = F)
6406532311487.
{(a = T, b = T, c = F), (a = F, b = T, c = F) {(a = T, b = T, c = F), (a = F, b = F, c = T) {(a = T, b = F, c = T), (a = F, b = T, c = F) {(a = T, b = F, c = T), (a = F, b = F, c = T)

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 6.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532311496.Source diagram or notation
6406532311497.Source diagram or notation
6406532311498.Source diagram or notation
6406532311499.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 6.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532311500.Source diagram or notation
6406532311501.Source diagram or notation
6406532311502.Source diagram or notation
6406532311503.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 5.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following test paths achieves node coverage, but not edge coverage?
6406532311504.
[1, 2, 6]
6406532311505.
[1, 2, 3, 4, 5, 2, 6]
6406532311506.
[1, 2, 3, 5, 2, 6]
6406532311507.
[1, 2, 3, 5, 2, 3, 4, 5, 2, 6]

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 6.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Identify the total number of test requirements in prime path coverage.
6406532311508.
9
6406532311509.
10
6406532311510.
11
6406532311511.
12       **AI** **Section Id :** 64065348595 **Section Number :** 2 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 7 **Number of Questions to be attempted :** 7 **Section Marks :** 25 **Display Number Panel :** Yes **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q19