Practice Rule 1: Input Range Or Interval (numeric, Dates, Lengths) (4.2.3.1) - Software Engineering - Unit Testing Techniques
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Rule 1: Input Range or Interval (Numeric, Dates, Lengths)

Practice - Rule 1: Input Range or Interval (Numeric, Dates, Lengths)

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

Define a valid and an invalid equivalence class for the input range: 'Temperature must be between 0 and 100 degrees Celsius.'

💡 Hint: Think of values that fall within and outside the specified range.

Question 2 Easy

What are the valid classes for a boolean input of 'Is User Active: Yes/No'?

💡 Hint: Identify the two possible states.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

Which of the following represents a valid equivalence class for an input range of under 50?

51
50
49

💡 Hint: Look for a number that is less than 50.

Question 2

True or False: A boolean input should have more than two equivalence classes.

True
False

💡 Hint: Think about the states a boolean can be.

Get performance evaluation

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a comprehensive set of equivalence classes for an application that processes grades on a scale of 0-100 with three distinct categories: failing, passing, and excellent.

💡 Hint: Consider the boundaries between the category ranges.

Challenge 2 Hard

Develop a scenario in which equivalence classes would be essential for testing a video game character’s energy levels that can be between 0 and 100.

💡 Hint: Think about how characters can interact at low and high energy levels.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.