00:01
Alright, so here we have this computer science true false type question so i'm gonna go from the bottom up for this one so e we have an if statement can be nested inside another if statement.
00:19
This is true so if statements are of course something you write in computer programming where you say if a certain condition is true then run this code inside that block sometimes things need to be organized for you to be able to have nested ones so let's say you want to make sure someone's initials are correct when they input it my initials are rp for example you can say if r and then within it say if p to that where you can check both things with one decision tree and that way you would know which one is wrong.
01:00
How many of them if both are wrong or both are correct so that one is true.
01:05
You can definitely do that now let's go to d.
01:08
You can you use an if else statement to write a dual alternative decision structure that is true.
01:15
Also, so that's what if else statements are pretty much for that way you can have two different conditions and tell the program what to do in either of those cases so it is a dual alternative decision structure.
01:32
Dual meaning if or else there's two decisions alternative meaning it will be one or the other and decision structure.
01:40
That's what the if else statements do.
01:42
Next one a boolean variable has a value of either true or false that is also true.
01:47
The definition of a boolean variable is one variable that is binary it's either one or zero true or false...