00:02
Okay, this time they ask us what is displayed when a given code executes.
00:08
Well, what's the first thing they do? they set score equal to 40.
00:12
I assume they created and are declared it as an integral type at some point or just some numeric type.
00:20
Okay, that's what we're going to assume.
00:24
And then they say if score is greater than 90, 95.
00:32
Okay, but that's false because it's equal to 40.
00:34
So it's not going to run, it's not going to run a route code.
00:38
Well, normally we write a squiggly line, right? so a squiggly line here and a closing bracket to say, oh, this is a block of code for the conditional.
00:49
But they've omitted all this year.
00:51
So all they did was write their next line of code, and then their next line of code, and the next line of code.
00:57
So what happens in this case? well, the f statement and the compiler will automatically fill in.
01:02
Okay, since they didn't tell us, they must only care about the next line or the next statement and nothing else.
01:07
So it will auto fill brackets for you right here.
01:11
So the code block is only the next statement.
01:14
So it's only not going to do the next line, and it will do the other lines.
01:17
So it's going to print out, let's see, console right line, that's a high score...