
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
50 questions
SOAL TIK KLS 12.1 PTS1 24-25

Quiz
•
12th Grade
50 questions
Summative Test in CP(Java)

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

Quiz
•
3rd Grade - University
50 questions
Python Programming Quiz

Quiz
•
11th Grade - University
43 questions
C++ Chapter 10

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

Quiz
•
12th Grade
49 questions
ÔN TẬP CHỦ ĐỀ F TIN 10

Quiz
•
9th - 12th Grade
46 questions
Chp. 3 Alice Variables

Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade