ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
Computer Science Videos 112 videos
AP Computer Science: Classes and Objects Drill 1, Problem 1. Which of the following is a correct {/* Implementation */} for the isInsect method?
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.3 Classes and Objects. Which of the following should be declared as a static variable?
AP Computer Science 4.1 Program Development 188 Views
Share It!
Description:
AP Computer Science 4.1 Program Development. What will this code produce?
AP Computer Science 4.1 Program Development. What will this code produce?
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
Full Transcript
- 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.2 GridWorld Case Study and APIs. What is the direction of the actor?
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. Which of the following is correct implementation of the Country class?
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. What kind of algorithm is the following?