You are on page 1of 11
VIRTUAL CLASS UNIVERSITAS LAMPUNG Lifelong learning: "Ongoing, Voluntary, and Self-Motivated" (htep://vclass.unila.ac.id) Dwiki Prakasa 1617051090" Home-VCLASS (http://vclass.unila.ac.id) My home (nttpuvelass.unila.ac.id/myl) > My courses (ntp-/Ivelass.unila.acid/my/) > Fakultas MIPA (orepiivelass.unila.acid/course/index php2categoryid=3) > GENA? 2017/2018 (http://velass.unila.a.id/course/index.php?eategoryid=68) > Pemweb 2018 (http//vclass.unila.acie/course/view.php2id=952) > Topic 9 > Kuls #2 (htp://velass.unila.ac.id/mod/quiziview.php? 048) Started on Tuesday, 24 April 2078, 8:30 PM State Finished Completed on Tuesday, 24 April 2018, 9:08 PM Time taken 38 mins 10 secs Marks 13,50/20.00 Grade 6.75 out of a maximum of 10,00 (68%) Question 1 Untuk menampilkan last name,salary,dan panjang karakter Correct dari nama akhir, dengan kolom alias “IML KARAKTER” Mark \00outof —_berdasarkan huruf awal yang dimasukkan oleh user 100 Select one: pee question a select table last_name,salary,length(last_s KARAKTER" from employees where last_name like & We; ame) as "JML_ b, select from last_name,salary,length(last_name) as "JML KARAKTER" from employees where last_name like '&%; Question 2 Incorrect Mark 0.00 out of 1.00 yee question question 3 Partaly correct Mark 0.50 out of 1.00 Flog question « select last_name,salary,length(last_name) as "IML KARAKTER" from employees where last_name like HS d select on last_name,salary,length(last_name) as "IML KARAKTER" from employees where last_name like "aM; Your answer is correct. Perintah untuk meomodifikasi kolom email pada table pegawai sehingga menjadi kolom unique adalah alter table karyawan add constraint uq_email unique (email); Select one: True X False Istilah-stilah berikut ini yang memiliki arti yang sama Select one or more: ¥ a. Kolom ~ b. Character X «Table ¥ 4. Atribut. % e Field question 4. Correct Mark 1.09 out of 1.00 y Fee question question 5 correct Mark 1.00 out of 1.00 yp Fle question Your answer is partially correct. You have selected too many options. Perintah-perintah SQL yang termasuk dalam kategori DML: Select one or more: ¥ a.update % b. insert into. couse ¥ dselecty e, create table Your answer is correct. Untuk menambahkan sebuah record dengan field: KODE_BARANG, NAMA_BARANG, SATUAN_BARANG STOK_BARANG dan datanya : KPR- 02, TE! SVISI, BUAH, 15 maka perintahnya adalah Select one: a Infsert into barang values(*KPR- 02", TELEVIST’,,BUAH’,'15"); v b. Insert to barang values(*KPR- 02", TELEVISI’, BUAH’,’15"); “ Insert in barang values(*KPR- 02", TELEVIST’,'BUAH’,’15°); Question 6 Correct Mark 1.00 out of 1.00 y fhe question question 7 Correct Mark 1.09 out of 1.00 y Fee question Insert into barang from values(‘KPR- 02", TELEVISI’,’BUAH’,"15"); Your answer is correct. Atribut dengan sifat tambahan auto increment, maka atribut itu menjadi primary key. Select one: Trey False Untuk membuat tabel barang dengan field: ~ kode_barang char(6) = nama barang varchar2(25) ~ satuian_barang varehar2(20) - stok_barang number(4) - primary key adalah kode barang maka perintah SQL-nya adalah Select one: a create table barang( kode_barang char(6), nama_barang varchar2(25), constraint pk_barang primary key(kode_barang) » b. create table barang( kode_barang char(6), nama_barang varchar2(25), satuan_barang varchar2(20), Question 8 Incorrect Mark 0.00 out of 1.00 y fee question Question 9 stock_barang number(4), constraint pk_barang primary key(kode_barang) a « create table barang( kode_barang char(6) nama_barang varchar2(25) satuan_barang varchar2(20) stock_barang number(4) constraint pk_t ds ing primary key(kode_barang) d create table barang( kode_barang char(6), nama_barang varchar2(25), satuan_barang varchar2(20), stock_barang number(4), constraint pk_barang primary key(kode_barang) Your answer is correct. Untuk menghapus isi dari tabel tps, tanpa menghapus struktur dari tabel tps, perintahnya adalah ‘Answer; | DELETE FROM tps x Perintah untuk membuat tabel semu yang diambil dari database pada suatu tabel adalah : Mark 0.09 out of 1.00 y Fee question question 10 Incorrect Mark 0.09 out of 1.00 y fee question Select one! a, CREATE VIEW b. CREATE TABLE « CREATE INDEX od CREATE DATABASE X Your answer is incorrect. Perhatikan tabel tps berikut: | Field | type | Null | xey | | dp Fehar(uy | | PRT | | kelurahan | char (10) | | PRT | | no_tps: Fameqaay | | PRE | | alamat_tps | char(57) | YES | 1 | saksi | chax(57) | YES | 1 | ep | chaz (57) | YES | 1 | hp_ep | char(27) | YES | 1 | kede_gabung | char (14) | YES | 1 ‘Ada nggak saksi namanya Dwi Sakethi ? Perintah SQL-nya adalah. ‘Answer: | SELECT * FROM tps WHERE saksi='dwi sakethi x question 11 correct Mark 1.00 out of 1.00 y Fee question question 12 correct Mark 1.09 out of 1.00 y Fee question question 13 Correct Mark 1.00 out of 1.00 y fee question question 14 Correct Mark 1.09 out of 1.00 y Fee question Untuk membuat kolom NIP pada table karyawan sebagai index adalah dengan perintah SQL> index karyawan nip idx on karyawan(nip); Select one: True False Perintah menampilkan kode_brg untuk semua barang yang berhasil dijual oleh lebih dari seorang salesman adalah Select kode_brg From Pengiriman Order By kode_brg Having Sum(*)>1 Select one: True False / SQL yang disisipkan dalam program dengan babasa pemprograman tingkat tinggi disebut Extended SQL Select one: True y False Perintah untuk merekam data baru ke dalam suatu tabel adalah Select one: a.savenew b, save into insert on d. insert into. e, add into Question 15, Correct Mark 1.09 out of 1.00 y fee question question 16 Incorrect Mark 0.09 out of 1.00 y Fee question question 17 Mark 0.00 out of 1.00 p Fee question Perangkat lunak yang berfungsi sebagai program aplikasi database client adalah Select one: a, Localhost Apache « phpMyadmin / 4 XAMPP Your answer is correct. Untuk mengetahui atribut no_tps yang ada di dalam tabel tps, tipenya apa, perintah yang digunakan adalah x Untuk menampilkan last_name dengan huruf capital dimana last_name-nya diawali dengan huruf ‘A’, perintahSQL-nya adalah select upper(last_name),salary from employees where last_name'A%'; Select one: True Question 18 Correct, Mark 1.09 out of 1.00 y fee question question 19 Correct Mark 1.00 out of 1.00 p Fee question False X Perintah untuk menampilkan last name dan hire date khusus untuk pegawai yang hire date-nya 1993 Select one: a. select last_name,hire_date from employees where hire_date like '%93'; b, select from last_name;hire_date from employees where hire_date like '%9: « select on last_name,hire_date from employees where hire_date like '%9: 4 select table last_name;hire_date from employe: hire_date like %9: Your answer is correct. Perintah untuk menampilkan last_name,salary untuk karyawan yang jumlah salary-nya lebih be: 1 dari data yang, dimasukkan oleh user dan diurutkan berdasarkan last_name Select one: a select last_name,salary from employees where salary>Ssalary order by last_name; «/ question 20 correct Mark 1.00 out of 1.00 y fee question b. select from table last_name,salary from employees where salary>Ssalary order by last_name; “ select on last_name,salary from employees where salary>Ssalary order by last_name; d select from last_name,salary from employees where salary>$salary order by last_name; Your answer is correct. Untuk menambahkan data baru ke tabel salesman dengan. rineian: $105 © Supriyanto = 40 Jakarta maka perintahnya adalah: Select one: a Add Into Salesman values ((S105°,’Supriyanto’,"40°,"Jakarta’); b. Add To Salesman values (‘S105", *Supriyanto’,’40, Jakarta’) Insert Into Salesman value (*$105", *Supriyanto’ 40°, "Jakarta’) d Insert To Salesman values (*S105°, *Supriyanto’ 40°, "Jakarta’) Your answer is correct. Finish review (http://vclass.unila.ac.id/mod/quiz/view.php?id=9044) Quiz navigation Fz 4s e728 io M1 12) 13) 1415, (6) 77 18 19 20 Show one page at a time (http://velass.unila.ac.id/mod/quiz/review.php? attempt=25596) Finish review (http://velass.unila.ac.id/mod/quiz/view.php? id=9044) hitplvelass.unila.c.idlmod/quisiraview phpaltempl=255068showall=1 nm

You might also like