AP Computer Science 1.5 Review of the Basics
Recommendation
Want a study guide too?
AP Computer Science: Review of the Basics Drill 1, Problem 5. Which code will run without throwing an exception?
AP | AP Computer Science |
AP Computer Science | Review of the Basics |
Computer Science | AP Computer Science |
Language | English Language |
Standard Operations and Algorithms | Searching |
Test Prep | AP Computer Science |
Transcript
answers All right it's a question of syntax and all
of our potential answers are pretty similar It looks like
the goal is to write a line of job that
compares a tv and print a true or false without
throwing an exception Let's examine him or both Right off
the bat we can see that answer cnd aren't properly
capitalizing the word system Those around job interpreter would have
a fit if that's all that now we're left with
a b and heat which all look really really really
similar They're all properly capitalized system and different only in
the way they use their operators in the relation als
comparison statement Begin a line when job syntex requires that
greater than and less than signs come before equal do
not we cannot any out Leaving me behind will be
we've got a simple working line of code that compares
a to b temperance true or false depending on the
result of the comparison What do you think i turned 00:01:19.664 --> [endTime] out Okay right