ShmoopTube

Where Monty Python meets your 10th grade teacher.

Search Thousands of Shmoop Videos


Program Development Videos 20 videos

AP Computer Science 1.2 Program Development
293 Views

AP Computer Science 1.2 Program Development. Which of the following is correct?

AP Computer Science 3.3 Program Development
201 Views

AP Computer Science 3.3 Program Development. Given the following programs, which would suitably contain the class pogoStickToy?

AP Computer Science 1.1 Program Development
404 Views

AP Computer Science 1.1 Program Development. The situation in the video is an example of which of the following?

See All

AP Computer Science 4.1 Program Development 188 Views


Share It!


Description:

AP Computer Science 4.1 Program Development. What will this code produce?

Language:
English Language

Transcript

00:00

Thank you We sneak and here's your smoke du jour

00:05

brought to you by runtime Errors really have to make

00:08

sure you hit that stopwatch button Art consent of the

00:12

following code spring is awesome like that leg remember All

00:19

right well this code produced you know like congress All

00:26

right well let's look at the adoration of loot More

00:28

specifically let's Look at the very end of the adoration

00:30

of the loot right there when the variable i is

00:33

equal to the string is awesome Tze legs the wild

00:38

loop This thing will execute All right how are the

00:43

first line of loop increments the variable causing it to

00:45

be one more than the length of the string When

00:48

the sub string is executed it'll throw an out of

00:51

bounds Exception This thing he's our answer Okay one more 00:00:55.733 --> [endTime] time around the track waiting

Related Videos

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 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 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?