Answer the following statements true (T) or false (F)
1. A condition can be either true or false.
2. Evaluate the Boolean expression below if the variables have the following values:
x num mark y z more
5 7.0 true 10 -7 false
x < y
3. Evaluate the Boolean expression below if the variables have the following values:
x num mark y z more
5 7.0 true 10 -7 false
x + z >= y
4. Evaluate the Boolean expression below if the variables have the following values:
x num mark y z more
5 7.0 true 10 -7 false
x + y = = z + 8
5. Evaluate the Boolean expression below if the variables have the following values:
x num mark y z more
5 7.0 true 10 -7 false
!mark && (x < 6)
1. true
2. true
3. false
4. alse
5. true
You might also like to view...
A(n) ________ is a computer that performs complex calculations very rapidly
Fill in the blank(s) with correct word
Fill in the code to complete the following function for checking whether a string is a palindrome.
``` bool isPalindrome(const char * const s) { if (strlen(s) <= 1) // Base case return true; else if _____________________________ // Base case return false; else return isPalindrome(substring(s, 1, strlen(s) - 2)); } ``` bool isPalindrome(const char * const s) { if (strlen(s) <= 1) // Base case return true; else if _____________________________ // Base case return false; else return isPalindrome(substring(s, 1, strlen(s) - 2)); } A. (s[0] <> s[strlen(s) - 1]) B. (s[0] = s[strlen(s) - 1]) C. (s[0] == s[strlen(s) - 1]) D. (s[0] != s[strlen(s) - 1])