My very first question has to do with the tutorial quiz for If statements.
1. Which of the following is true?
A. 1
B. 66
C. .1
D. -1
E. All of the above
I picked 1. It doesn't exactly specify in the tutorial what happens to a number other than 0 and 1. I could have sworn that numbers other than 1 led to false by default. I'm probably wrong like usual about programming but I would just like a definite answer.
2. Which of the following is the boolean operator for logical-and?
A. &
B. &&
C. |
D. |&
I would like to know what the difference between logical-and and and is. I guessed B which is correct which leads me to assume they are the same thing. Am I correct? Again, it doesn't specify in the tutorial so I'm led to ask this probably simple question.