Minggu, 21 Maret 2010

Tugas Struktur Data

1.Apa hasil dari operasi berikut ini:

First = False, Second = False, Third = True
A. (First and Second) or Third
jawaban : True

B. First or (Second and Third)
jawaban : False

C. Not First or (Second and Third)
jawaban : True

D. (Second or Third) and (Not First or second)
jawaban : True

E. Not (Not second and Third) and First
jawaban : false

2. Jika diketahui
S1 = "PAGI"
S2 = "SIANG"
S3 = "MALAM"
Apa hasil dari operasi berikut ini
A.Length (S1) + Length (S2)
jawaban : 9

B. Length (Concat(S2,S3))
jawaban : 10

C. Substr (Concat(S2,S1), 4 , Length (S1) + 1)
jawaban : Isian

D. Insert (S1, Delete (S3, 1 , 3), 1)
jawaban : Paamgi

E. Insert (S1, Substr (S2, 2 , 3), 3)
jawaban : Pagiani

0 komentar:

Posting Komentar