CS151: Week 5 Quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The Math class contains a named constant PI. What is it's approximate value?

3.14

What is the output of the following code segment? String myStr - "Now is the time for all good me to come to the aide of their country!"; System.out.println(myStr.lastIndexOf("e ")); // that is an 'e' and a space

50

What does API stand for?

Application programming interface

To check if a given character is a digit you need to use isDigit, what type of return value is this?

Boolean

Precision is?

Both A and B

What would you use to perform character-related operations?

Character wrapper class

Why would there be no need to import the math class to do math calculations?

It is included in the java.lang package that is automatically imported

Width is?

Specifies the minimum number of characters that are to be printed

What does the conversion character tells the Java Virtual Machine (JVM)?

The type of thing needing to be printed

A ___________ is a class that surrounds a relatively simple item in order to add functionality to the simple item.

Wrapper class


Set pelajaran terkait

Differentiation & Technology ED448S

View Set

Legal and ethical issues in counseling

View Set

Chapter 14: Fraud Against Organizations

View Set

AP Psychology Practice Test I (without explanations)

View Set