
java 1510 chapter 2

Quiz
•
Computers
•
12th Grade
•
Medium
Bhavnoor Saroya
Used 4+ times
FREE Resource
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x is a String, then x = new String("OH"); and x = "OH"; will accomplish the same thing.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x is the String "Hi There", then x.toUpperCase().toLowerCase(); will return the original value of x.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If String name = "George W. Bush"; then the instruction name.length(); will return 14.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If String a = "ABCD" and String b = "abcd" then a.equals(b); returns false but a.equalsIgnoreCase(b); returns true.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Unlike the String class where you must pass a message to an object (instance) of the class, as in x.length(), in order to use either the Scanner or Math classes, you pass messages directly to the class name, as in Math.abs() or scan.nextInt().
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In order to generate a random number, you must use Math.random().
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A double is wider than a float and a float is wider than an int.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
44 questions
Year 8 - End of Year Revision

Quiz
•
9th - 12th Grade
43 questions
C++ Chapter 10

Quiz
•
9th - 12th Grade
45 questions
Midterm prep 10 gr

Quiz
•
10th Grade - University
44 questions
UTS IF X - GENAP

Quiz
•
12th Grade - University
50 questions
PYTHON-STRINGS

Quiz
•
12th Grade
48 questions
STARTER - 1D Array Test

Quiz
•
9th - 12th Grade
50 questions
ULANGAN HARIAN TEKNIK PENGOLAHAN AUDIO DAN VIDEO

Quiz
•
1st - 12th Grade
50 questions
SAINS KOMPUTER TINGKATAN 4 BAB 1

Quiz
•
3rd Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade