Rabu, 24 Maret 2010

TUGAS 2 Pengantar Struktur Data

1. Apa hasil dari operasi berikut ini :
First = False, Second = False, Third = True

1. (First and second) or Third
Jawab : True
2. First or (second and Third)
Jawab : False
3. Not First or (second and not third)
Jawab : True
4. (Second or Third) and (not First or second)
Jawab : True
5. Not (not second and third) and First
Jawab : False

2. Jika diketahui :
S1 = “Pagi”
S2 = “Siang”
S3 = “Malam”
Apa hasil dari operasi berikut ini :

1. Length (S1) + Length (S2)
Jawab : 9
2. Length (Concat (S2, S3))
Jawab : 10
3. Substr (Concat (S2, S1),4, Length (S1) + 1)
Jawab : Isian
4. Insert (S1, Delete (S3,1,3),1)
Jawab : Paamgi
5. Insert (S1, Substr, (S2,2,3),3)
Jawab : Pagiani

Tidak ada komentar:

Posting Komentar