Java Ternary and Shift Operators Quiz
10 Questions
2 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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 ________

<p>x</p> Signup and view all the answers

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

<p>absolute</p> Signup and view all the answers

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

<p>exclusive</p> Signup and view all the answers

A boolean type is declared with the ________ keyword

<p>boolean</p> Signup and view all the answers

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

<p>true</p> Signup and view all the answers

Six other escape sequences are valid in ________

<p>Java</p> Signup and view all the answers

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

<p>false</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser