Rabu, 31 Maret 2010

STRUKTUR DATA

  1. Apa hasil dari operasi berikut ini :

First = False, Second = False, Third = True

    1. (Frist and second) or Third

Jawab : True

    1. Frist or (econd and third)

Jawab : False

    1. Not Frist or (second and not third)

Jawab : True

    1. (Second or Third) and (not Frist or second)

Jawab : True

    1. Not (not second and third) and first

Jawab : False

  1. Jika diketahui = S1 = “Pagi”

S2 = “Siang”

S3 = “Malam”

Apa hasil dari operasi berikut ini :

a. Length (S1) + Length (S2)

Jawab : 9

b. Length (Concat (S2, S3))

Jawab : 10

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

Jawab : Isian

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

Jawab : Paamgi

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

Jawab : Pagiani

Tidak ada komentar:

Posting Komentar