SUMATIF BAB 1 XII RPL

SUMATIF BAB 1 XII RPL

12th Grade

30 Qs

quiz-placeholder

Similar activities

Pengenalan Komputer

Pengenalan Komputer

1st Grade - University

30 Qs

Ujian Akhir Semester 1 ASK Ting2

Ujian Akhir Semester 1 ASK Ting2

12th Grade

35 Qs

ADM. INFRASTRUKTUR JARINGAN

ADM. INFRASTRUKTUR JARINGAN

12th Grade

25 Qs

Animation 3 (1st Quarter)

Animation 3 (1st Quarter)

12th Grade

25 Qs

Ulangan Harian-1 Simkomdig

Ulangan Harian-1 Simkomdig

12th Grade - University

25 Qs

SOAL GAMES SEMIFINAL

SOAL GAMES SEMIFINAL

12th Grade

25 Qs

ULANGAN HARIAN MAPEL AIJ KELAS XI SMKN 2 INDRAMAYU

ULANGAN HARIAN MAPEL AIJ KELAS XI SMKN 2 INDRAMAYU

10th - 12th Grade

25 Qs

Principles of Business chapter 1

Principles of Business chapter 1

9th - 12th Grade

25 Qs

SUMATIF BAB 1 XII RPL

SUMATIF BAB 1 XII RPL

Assessment

Quiz

Computers

12th Grade

Easy

Created by

sandatya sandatya

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?