Jumat, 09 April 2010

tugas 2

1. apa hasil dari operasi berikut ini :

first = false, second = false, thrid = true

a. (first and second) or thrid = true

b. first or (second and thrid) = false

c. not first or ( second and not third) = true

d. (second or thrid) and (not first or second) = true

e. not (not second and thrid) and firs = false



2. jika diketahui :

S1 = "PAGI"

S2 = " SIANG "

S3 = " MALAM "

Apa hasil dari operasi berikut ini :



a. Length (S1) + Length (S2) = 4 + 5

b. Length ( concat (S2,S3)) = 9

c. Substr ( concat (S2, S1 ), 4, Length (S1) + 1 ) = NGPAG

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

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

Tidak ada komentar:

Posting Komentar