ShmoopTube

Where Monty Python meets your 10th grade teacher.

Search Thousands of Shmoop Videos


AP Computer Science Videos 112 videos

AP Computer Science 1.2 GridWorld Case Study and APIs
493 Views

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

AP Computer Science 1.4 Standard Algorithms
200 Views

AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?

AP Computer Science 2.3 Classes and Objects
191 Views

AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?

See All

AP Computer Science 4.5 Program Development 4 Views


Share It!


Description:

AP Computer Science 4.5 Program Development. What would be the best set of inputs to make sure the following code functions as expected?

Language:
English Language

Transcript

00:00

We speak student! And here's your Shmoop dou jour, brought to you by, the student who

00:07

had an open perspective. He was a dilated pupil. Alright what would be the best set of inputs, [man meditating in a forest]

00:13

to make sure the following code functions, as expected. [mumbling]

00:17

Alright well here are your potential answers. Okay, well here we go. We must [equations and multiple choice answers]

00:28

build a set here, that adequately test each range of numbers. I'll fully test a

00:33

certain range, we must in put the lower limit and the upper limit. Well first of

00:39

all we gotta start with zero. It's a number that should always be included in [someone making the ok sign with their hand]

00:42

test inputs, because of its unique property's. Next we need to test whether

00:47

the lower than, C, case works. So we should put in a number less than 70, 69 should

00:53

work. All right now we can test the C case. We have to put in the lower and

00:57

upper limits 70 and 79. The next test case is the, B range, with lower and upper [equations on chalkboard]

01:04

limits being, 80 and 91. And finally we can test the A range case, so we should put

01:10

in 92. And just like we put in a number below the lowest case, we should put in a

01:15

number higher than the highest case. Well anything above 92 should work. Say a

01:20

hundred and ten and we've built the following set, which leaves us with B.

01:24

Well don't worry you can only shoot for an A next time. [man in classroom crying]

Related Videos

AP Computer Science 1.2 GridWorld Case Study and APIs
493 Views

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

AP Computer Science 1.4 Standard Algorithms
200 Views

AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?

AP Computer Science 2.3 Classes and Objects
191 Views

AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?

AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism
204 Views

AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...

AP Computer Science 4.2 Standard Algorithms
191 Views

AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?