Nama : Desy Atikah Surahman
Kelas :
1EA14
NPM :
12214796
S1 :
{1,3,5,7,9}
S2 :{2,4,6,8}
S3 :{G,U,N,A,D,A,R,M,A}
S4 :{U,N,I,V,E,R,S,I,T,A,S}
S5 :{U,J,I,A,N}
Jawaban :
1.
CONCAT(SUBSTR(S1,2,3),DELETE(S2,2,3)
CONCAT((3,5,7 ),(2))
={3,5,7,2}
2.
LENGTH(CONCAT(SUBSTR(S3,5,5),DELETE(S4,3,3))
LENGTH(CONCAT(D,A,R,M,A),(U,N,R,S,I,T,A,S))
LENGTH(D,A,R,M,A,U,N,R,S,I,T,A,S)
=13
3.
INSERT(CONCAT(S2,S1),SUBSTR(S1,2,4),LENGTH(S1)
INSERT((2,4,6,8,1,3,5,7,9),(3,5,7,9),5)
={2,4,6,8,3,5,7,9,1,3,5,7,9}
4.
DELETE(CONCAT(S2,S3),LENGTH(S2),LENGTH(INSERT(S2,S1,5)))
DELETE((2,4,6,8,G,U,N,A,D,A,R,M,A),4,9)
={2,4,6,A}
5.
SUBSTR(CONCAT(S3,S4),LENGTH(S5),LENGTH(S2))
SUBSTR((G,U,N,A,D,A,R,M,A,U,N,I,V,E,R,S,I,T,A,S),5,4)
={D,A,R,M}
6.
CONCAT(DELETE(S4,5,5),SUBSTR(S4,1,4)
CONCAT((U,N,I,V,A,S),(U,N,I,V))
={U,N,I,V,A,S,U,N,I,V}
7.
INSERT(DELETE(S1,2,2),SUBSTR(S2,3,3),LENGTH(S5))
INSERT((1,7,9),(6,8,...),5)
={1,7,9,...,6,8,...}
8.
SUBSTR(INSERT(S5,S3,1),5,LENGTH(S5))
SUBSTR((G,U,N,A,D,A,R,M,A,U,J,I,A,N),5,5)
={D,A,R,M,A}
9.
LENGTH(CONCAT((INSERT(S3,S4,1),INSERT(S4,S5,4))
LENGTH(U,N,I,V,E,R,S,I,T,A,S,G,U,N,A,D,A,R,M,A,U,N,I,U,J,I,A,N,V,E,R,S,I,T,A,S)
=36
10.
DELETE((SUBSTR(INSERT(S3,(CONCAT(S4,S5),LENGTH(S1))4,4),LENGTH(S2),5)
DELETE((SUBSTR(G,U,N,A,U,N,I,V,E,R,S,I,T,A,S,U,J,I,A,N,D,A,R,M,A)4,4),LENGTH(S2),5)
DELETE((A,U,N,I),LENGTH(S2),5)
DELETE((A,U,N,I),4,5)
={A,U,N}
Comments
Post a Comment