ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
Review of the Basics Videos 19 videos
AP Computer Science: Review of the Basics Drill 1, Problem 1. What does this piece of code output?
AP Computer Science: Review of the Basics Drill 1, Problem 5. Which code will run without throwing an exception?
APCS: Review of the Basics Drill 2, Problem 1. What is the output of the code segment?
AP Computer Science 1.5 Review of the Basics 229 Views
Share It!
Description:
AP Computer Science: Review of the Basics Drill 1, Problem 5. Which code will run without throwing an exception?
Transcript
- 00:00
Sorry And here's your smoke du jour brought to you
- 00:05
by relational operators The programming kind Not your uncle who
- 00:10
botched all those faceless after the following code segment has
- 00:12
run into a equals four into the three which code
- 00:16
will run without throwing an exception and hear the mental
Full Transcript
- 00:20
answers All right it's a question of syntax and all
- 00:27
of our potential answers are pretty similar It looks like
- 00:30
the goal is to write a line of job that
- 00:32
compares a tv and print a true or false without
- 00:35
throwing an exception Let's examine him or both Right off
- 00:39
the bat we can see that answer cnd aren't properly
- 00:41
capitalizing the word system Those around job interpreter would have
- 00:45
a fit if that's all that now we're left with
- 00:48
a b and heat which all look really really really
- 00:51
similar They're all properly capitalized system and different only in
- 00:55
the way they use their operators in the relation als
- 00:58
comparison statement Begin a line when job syntex requires that
- 01:02
greater than and less than signs come before equal do
- 01:06
not we cannot any out Leaving me behind will be
- 01:10
we've got a simple working line of code that compares
- 01:13
a to b temperance true or false depending on the
- 01:16
result of the comparison What do you think i turned 00:01:19.664 --> [endTime] out Okay right
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?