Quiz Space

Software Testing · Quiz 2 · 20 Nov 2022 · September 2022 term

Question 8: What are the variables involved in the NextDate function …

Question 8

+6 marksOne correct option

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?

  1. A

    Month, day and year.

  2. B

    Date containing month, day and year.

  3. C

    Today’s date.

  4. D

    Range of dates.

Show answer

Correct answer

  • B

    Date containing month, day and year.

Question 8 of 12 in the IIT Madras BS Software Testing (Software Testing) Quiz 2 paper sat on 20 Nov 2022, in the September 2022 term (IIT M DEGREE AN2 EXAM QPE1 20 Nov 2022). It carries 6 marks.

More questions from this paper

  1. Q1When applying logic criteria to programs, predicates are taken from which of the following statements.
  2. Q2Consider the following CFG. Consider the following CFG.\ What is the number of prime paths for the above CFG?
  3. Q3Consider a software system that computes the monthly electricity charges for domestic usage. The input to the system is…
  4. Q4Match the following regarding data flow graphs. Match the following regarding data flow graphs.
  5. Q5Which of the integration testing approaches starts with the top-level modules as well as the lowest-level modules, foll…
  6. Q6Consider an integration testing scenario where two units access the same data file. Identify the type of coupling based…
  7. Q7When it comes to partition-based testing with multiple inputs, which of the following techniques is better than the oth…
  8. Q9Which of the following are valid partitions for the day, as a part of the input to the NextDate function?
  9. Q10State true or false: The partition\ (1) {month: month has 30 days}, (2) {month: month has 31 days}, (3) {month: month i…
  10. Q11Figure question
  11. Q12Which rows in the given truth table will make the predicate p false?