
Pemrograman Berorientasi Obyek Part 2
Authored by Agus Agvistoman
1st - 5th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Berikut adalah cara inisialisasi variabel bertipe class string, kecuali:
String me = new String(“Inisialisasi 1”);
String me;
me = new String “inisialisasi 1” ;
String me;
me = new String(“inisialisasi 1”);
String me;
me = “inisialisasi 1”;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Method yang digunakan untuk membandingkan dua buah data string adalah …
equal()
concat()
length()
equals()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Method yang digunakan untuk mengubah seluruh huruf dalam string menjadi huruf
besar/kapital adalah …
UpperCase()
toUperCase()
toUpperCase()
isUpperCase()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan potongan program berikut :
1. public class Substring {
2. public static void main( String args[] ) {
3. String str = new String("MahaDewa");
4. System.out.println(str.substring(2));
5. System.out.println(str.substring(3,7));
6. }
7. }
Jika program di atas dijalankan maka pada baris ke 4 akan menghasilkan keluaran …
ahaDewa
h
aDewa
haDewa
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk soal no. 24 dan 25, Perhatikan potongan program berikut :
1. public class Substring {
2. public static void main( String args[] ) {
3. String str = new String("MahaDewa");
4. System.out.println(str.substring(2));
5. System.out.println(str.substring(3,7));
6. }
7. }
Sedangkan hasil keluaran pada baris ke 5 adalah …
aDewa
haDewa
aDew
haDe
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Pernyataan Function dan Procedure
Quiz
•
1st - 3rd Grade
10 questions
Lesson 10 - Decision control statements
Quiz
•
5th - 8th Grade
10 questions
Sound and Hearing
Quiz
•
1st Grade
10 questions
THIRD GRADE- PRACTICE: CAUSE - EFFECT / 3 LETTER BLENDS
Quiz
•
3rd Grade
10 questions
Sound - Different Pitch in Musical instruments
Quiz
•
3rd - 5th Grade
10 questions
IPAS Kerajaan di Indonesia
Quiz
•
1st - 5th Grade
10 questions
Look 2 Unit 8 - Phonics
Quiz
•
3rd - 5th Grade
10 questions
What instrument is this?
Quiz
•
3rd - 4th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade