
Java 38-988 practice
Quiz
•
Computers
•
10th Grade
•
Medium
Brian Bass
Used 22+ times
FREE Resource
Enhance your content
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s1 and s2 refer to the same object in memory?
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s2 and s3 refer to the same object in memory?
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a different string can be assigned to s2 on line 05.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You work as a Java programmer.
You need to convert a numeric String to a primitive double value.
What code segment should you use?
Double.valueOf(numberString);
double.parseDouble(numberString);
String.parseDouble(numberString);
Double.parseDouble(numberString);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which int data type would you use to store the numeric value 3,000,000,000 (3 billion) so that the least amount of memory is used.
short
byte
long
int
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You need to evaluate the following code segment:
double dNum = 2.667;
int iNum = 0;
iNum = (int)dNum;
What happens when the code segment is run?
iNum has a value of 0.
An exception is thrown.
iNum has a value of 2.
iNum has a value of 3.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing a Java method.
The program must meet the following requirements:
-> Accept a String parameter firstName
-> Display a welcome message that contains firstName
-> Ensure that the first letter of the name is capitalized, and the remaining letters are in lowercase
What would be the correct order for answers?
charAt substring toLowerCase toUpperCase
substring charAt toLowerCase toUpperCase
substring charAt toUpperCase toLowerCase
charAt substring toUpperCase toLowerCase
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
AP CS A Unit 3
Quiz
•
9th - 12th Grade
25 questions
Kisi-kisi UAS Ganjil DD PPLG 2023/2024
Quiz
•
10th Grade
20 questions
Computer Science: Chapter 1 Test Review
Quiz
•
9th - 12th Grade
21 questions
ÔN TẬP KIỂU XÂU
Quiz
•
1st - 12th Grade
20 questions
PEMBOLEHUBAH,PEMALAR DAN JENIS DATA
Quiz
•
7th - 12th Grade
22 questions
BAB 3 : KOD ARAHAN
Quiz
•
7th - 12th Grade
22 questions
C# Quiz
Quiz
•
9th - 12th Grade
20 questions
IT Essentials Ch 6 Review - Applied Networking
Quiz
•
9th 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