SUMATIF BAB 1 XII RPL

Quiz
•
Computers
•
12th Grade
•
Easy
sandatya sandatya
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
apa method yang cocok digunakan untuk mencari tahu panjang string pada variabel txt?
int len = length(txt);
int len = txt.length();
float len = txt.length();
double len = length(txt);
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Tipe data mana yang dikembalikan dari metode length() di kelas String?
double
int
String
number
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Metode apa yang digunakan untuk menemukan panjang string?
length()
long()
size()
count()
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Metode String compareTo() menghasilkan?
true
false
nilai integer
1
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
apa output dari baris code dibawah?
class string_class{
public static void main(String args[]){
String obj = "hello";
String obj1 = "world";
String obj2 = obj;
obj2 = " world";
System.out.println(obj + " " + obj2);
}
}
hello hello
world world
world hello
hello world
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
apa output dari baris code dibawah?
class String_demo{
public static void main(String args[]){
char chars[] = {'a', 'b', 'c'};
String s = new String(chars);
String s1 = "abcd";
int len1 = s1.length();
int len2 = s.length();
System.out.println(len1 + " " + len2);
}
}
3 0
3 4
0 3
4 3
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
untuk mengkonversi semua huruf jadi huruf kapital adalah?
toUpperCase()
toLowerCase()
toUppercase()
tolowerCase()
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
JENIS DATA (ASAS SAINS KOMPUTER TINGKATAN 2) Cikgu Munirah

Quiz
•
12th Grade
25 questions
arrays and strings in java

Quiz
•
12th Grade
35 questions
SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan

Quiz
•
10th - 12th Grade
30 questions
GDSC DEU & PYTHON

Quiz
•
9th - 12th Grade
33 questions
CS 3 Midterm 2023

Quiz
•
12th Grade
28 questions
AP CSA |U2L5 User Input by Mr. B

Quiz
•
12th Grade
32 questions
Unit 1 APCSA

Quiz
•
9th Grade - University
33 questions
Graded IB Computer Science Units 1 and 2 Overview

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University