Java Ternary and Shift Operators Quiz

KnowledgeableErhu avatar
KnowledgeableErhu
·
·
Download

Start Quiz

Study Flashcards

10 Questions

We can also use the ________ method to concatenate two strings

concat()

The Math.max(x,y) method can be used to find the ________ value of x and y

highest

The Math.min(x,y) method can be used to find the ________ value of x and y

lowest

The Math.sqrt(x) method returns the square root of ________

x

The Math.abs(x) method returns the ________ (positive) value of x

absolute

Math.random() returns a random number between 0.0 (inclusive), and 1.0 (________)

exclusive

A boolean type is declared with the ________ keyword

boolean

A Boolean expression is a Java expression that returns a Boolean value: ________ or false

true

Six other escape sequences are valid in ________

Java

Boolean Values A boolean type can only take the values true or ________

false

Test your knowledge on Java ternary operators and shift operators with this quiz. The quiz covers the usage and examples of ternary operators as well as left shift, right shift, and unsigned right shift operators.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser