Wk 1 Flashcards
1
Q
What’s the meaning of this command?
A
2
Q
What’s the meaning of this command?
A
3
Q
What’s the meaning of this command?
A
4
Q
What’s the meaning of this command?
A
5
Q
What’s the meaning of this command?
A
6
Q
What are Boolean variable? What are the only possible values?
A
Logical values
TRUE (=1)
FALSE (=0)
7
Q
Name of these operators and their definitions
A
Comparison operators
8
Q
Name of these operators and their definitions
A
Logical Operators (AND,OR,NOT)
9
Q
Determine if C is TRUE or FALSE
A
for LHS, inside bracket is TRUE so with the squigy line makes it FALSE
10
Q
Predict what x1 is
A
x1 = 1
|| = True if AND OR values are True
11
Q
Predict what x2 is
A
x2= 1
&& = true if AND both values true
> = greater than OR equal to
12
Q
A
13
Q
A