📚 Practice Mode

Programming Languages and Database Technologies

Learn at your own pace with hints and detailed explanations

1 / 19
Multiple Choice

Which is the best example of ternary operator if 'a' is an integer variable?

  1. (a == 1) ? 20: 30
  2. (a = 1) ? 20: 30
  3. (a == 1) > 20: 30
  4. (a* == 1) ? 20: 30
  5. None of these