Kamis, 08 April 2010

true and false

1. apa hasil dari operasi berikut ini!

First= false, second= false, third= true

a.( first and second) or third = true

b. first or (second and third) = false

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

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

e. not (not second and third) and first = false

2. jika diketahui:

s1 = “PAGI”

s2 = “SIANG”

s3 = “MALAM”

apa hasil dari operasi berikut:

1. length (s1) + (length (s2)) = 4+5
2. length (concat(s1,s3)) = 9
3. substr (concat(s2,s1),4,length (s1) + 1) = NGPAG
4. insert (s1, delete (s3,1,3),1) = AMPAGI
5. insert (s1, substr(s2,2,3),3) = PAGIANI