STRUKTUR DATA


Tugas II Struktur Data


1. Apa hasil dari operasi berikut ini :

First = False, Second = False, Third = True

a. ( First and Second ) OR Trird

Hasilnya akan bernilai TRUE

b. First OR ( Second AND Trird )

Hasilnya akan bernilai FALSE

c. NOT First OR ( Second AND NOT Third )

Hasilnya akan bernilai TRUE

d. ( Second OR Trird ) AND ( NOT First OR Second )

Hasilnya akan bernilai TRUE

e. NOT ( NOT Second AND Third ) AND Frist

Hasilnya akan bernilai FALSE

2. Jika Diketahui :

S1 : “PAGI”

S2 : ” SIANG”

S3 : ” MALEM”

Apa hasil dari operasi berikut ini :

a. Lenght ( S1 ) + Lenght ( S2)

Akan menghasilkan nilai 9

b. Lenght ( Concat ( S2, S3 ))

Akan menghasilkan nilai 10

c. Substr ( Concat ( S1, S2 ), 4, Lenght ( S1 + 1)

Akan menghasilkan nilai ISIAN

d. Insert ( S1, Delete ( S3, 1, 3 ), 1)

Akan menghasilkan nilai PAAMGI

e. Insert ( S1, Substr ( S2, 2, 3 ), 3 )

Akan menghasilkan nilai PAGIANI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: