Quiz: Operators and Methods

Take a quiz on the operators and methods before moving on to the next chapter.

1

What is a ternary operator?

A)

A short way to write an if…else statement.

B)

A way to exit a program.

C)

A way to allot a certain waiting time.

Question 1 of 60 attempted

Get hands-on with 1400+ tech skills courses.