Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is a upper-case letter.
  • (x>='0' && x<='7')
  • (x>='0' && x<='9')
  • (x>='A' && x<='Z')
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
Assume that c is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if c is what is called a whitespace character (that is a space or a tab or a newline-- none of which result in ink being printed on paper).
  • ((x>='A' && x<='Z') || (x>='a' && x<='z'))
  • !(c == ' ' || c== '\n' || c == '\t')
  • !(x >= 'A' && x <='Z')
  • (c == ' ' || c== '\n' || c == '\t')
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is a decimal digit (0-9).
  • (x>='a' && x<='z')
  • (x>='0' && x<='9')
  • (x>='0' && x<='7')
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
What's the difference in ASCII value between '3' and '0'? (consult a table of ASCII values):
  • 3
  • 6
  • 4
  • c == ' '
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is a lower-case letter.
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
  • (x>='a' && x<='z')
  • (x>='0' && x<='7')
  • (x>='0' && x<='9')
Assume that c is a char variable that has been declared and already given a value . Write an expression whose value is true if (c == '\n')and only if c is an newline character .
  • !(x >= 'A' && x <='Z')
  • c == ' '
  • (c == '\n')
  • (c=='\t')
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is an octal (Base 8) digit (0-7).
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
  • (x>='0' && x<='7')
  • (x>='A' && x<='Z')
  • (x>='0' && x<='9')
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is an hexadecimal (Base 16) digit (0-9 plus A-F or a-f).
  • ( ( x>='0' && x<='9') || ( x>='a' && x<='f' ) || ( x>='A' && x<='F') )
  • ((x>='A' && x<='Z') || (x>='a' && x<='z'))
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
  • (x>='A' && x<='Z') || (x>='a' && x<='z') || (x>='0' && x<='9')
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is NOT a letter.
  • ((x>='A' && x<='Z') || (x>='a' && x<='z'))
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
  • (x>='A' && x<='Z') || (x>='a' && x<='z') || (x>='0' && x<='9')
  • (x>='a' && x<='z')
Assume that c is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if c is a tab character .
  • (c=='\t')
  • (c == '\n')
  • c == ' '
  • (x>='A' && x<='Z')
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is NOT a upper-case letter.
  • (x>='0' && x<='9')
  • !(x >= 'A' && x <='Z')
  • (x>='a' && x<='z')
  • !((x >= 'A' && x <='Z') || (x >= 'a' && x <='z'))
Assume that x is a char variable that has been declared and already given a value . Write an expression whose value is true if and only if x is alphanumeric , that is either a letter or a decimal digit.
  • ( ( x>='0' && x<='9') || ( x>='a' && x<='f' ) || ( x>='A' && x<='F') )
  • ((x>='A' && x<='Z') || (x>='a' && x<='z'))
  • (x>='A' && x<='Z') || (x>='a' && x<='z') || (x>='0' && x<='9')
  • (x>='A' && x<='Z') || (x>='a' && x<='z')
What's the difference in ASCII value between 'E' and 'A'? (consult a table of ASCII values):http://www.asciitable.com
  • 4
  • 3
  • c == ' '
  • 6
0 h : 0 m : 1 s

Answered Not Answered Not Visited Correct : 0 Incorrect : 0