BLOGGER TEMPLATES AND TWITTER BACKGROUNDS

Minggu, 28 Maret 2010

TUGAS 2

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 ini :
a) Length (S1) + Length (S2) = 4 + 5 = 9
b) Length (Concat(S2,S3)) =Length(SIANGMALAM) = 10
c) Substr (Concat(S2,S1),4,Length(S1)+1)= Substr(SIANGPAGI,4,5)=NGPAG
d) Insert (S1,Delete(S3,1,3),1)= Insert(PAGI,AM,1)=AMPAGI
e) Insert (S1,Substr(S2,2,3),3)= Insert(PAGI,IAN,3)=PAIANGI

0 komentar: