Sunteți pe pagina 1din 3

STMIK IKMI CIREBON

PROGRAM STUDI SISTEM INFORMASI AKUNTANSI (D3) SIA-2019-xx


NASKAH SOAL UJIAN TENGAH SEMESTER

Mata Kuliah : PEMROGRAMAN SQL (ORACLE2) Sifat Ujian :


Program Studi : Sistem Informasi Akuntansi (D3) Kelas/ Semester :
Hari/ Tanggal : Dosen : NANA SUARNA, M.KOM
Waktu :

PERHATIAN :
1. Bacalah pertanyaan / soal ujian dengan teliti.
2. Periksa kembali jawaban Saudara sebelum diserahkan kepada pengawas ujian.
3. Soal dikumpulkan kembali beserta lembar jawaban Saudara.
4. Dilarang berbicara satu sama lain, berdiskusi dan mencontek. Bila dilanggar akan dinyatakan
GAGAL.

Nilai
No. SOAL PILIHAN GANDA Kategori Bobot
Max
What command retrieves data from the database?
a. SELECT
1 b. INSERT B 1.50 10
c. DESCRIBE
d. ALTER

What command can be used to show information about the structure of a


table?
a. ALTER
2 b. SELECT B 1.50 10
c. DESCRIBE
d. INSERT

What command can be added to a select statement to return a subset of the


data?
a. ALL
3 b. WHEN B 1.50 10
c. WHERE
d. EVERYONE
What command do you use to add rows to a table
a. NEW_ROW
4 b. ADD_ROW B 1.50 10
c. ADD
d. INSERT

5 Examine the follolowing SELECT statement. B 10


SELECT * 1.50
FROM employees;

This statement will retrieve all the rows in the employees table. True or
False?
a. True
b. False
The SQL statement ALTER TABLE EMPLOYEES DROP COLUMN
SALARY will delete all of the rows in the employees table. True or False?
6 a. True B 1.50 10
b. False

The f_customers table contains the following data:

If you run the following statement,


7 C 3.00 15
DELETE FROM F_CUSTOMERS
WHERE STATE='FL';

how many rows will be left in the table?


a. 1
b. 2
c. 3
d. 0
What will the following statement do to the employee table?
ALTER TABLE employees ADD (gender VARCHAR2(1));
a. Add a new column called GENDER to the EMPLOYEES table
8 b. Change the datatype of the GENDER column B 1.50 10
c. Rename a column in the EMPLOYEES table

d. Add a new row to the EMPLOYEES table


During which phases of the System Development Life Cycle would you roll
out the system to the users?
a. Build and Transition
9 b. Strategy and Analysis B 1.50 10
c. Design and ProductionB
d. Transition and Production

In which phases of the System Development Life Cycle will we need to use
SQL as a language? (Choose Two)
(Choose all correct answers)
a. Analysis
10 b. Transition B 1.50 10
c. Strategy
d. Build and Document

SOAL ESSAY..
11 Tuliskan bagaimana perintah untuk membuat tabel PASOK melalui perintah C 15
3.00
command seperti table berikut?
Tabel Pasok

KODE_ KODE KODE_SUPLIER TANGGAL_PASOK JUMLAH_PASOK


PASOK BARANG
PAS- ELK-01 EJ-01 01-01-2002 8
E001

PAS- ELK-01 EJ-02 01-01-2002 5


E002

PAS- ELK-02 EJ-01 02-01-2002 6


E003

PAS- ELK-01 EJ-02 02-01-2002 3


E004

Tuliskan bagaimana perintahnya untuk meng-Inputkan data pasok seperti


12 C 3.00 15
contoh table diatas?

13 Tampilkan minimum pemasokan per kode barang menggunakan group by A 0.75 15

14 Tampilkan maksimum pemasokan per kode barang menggunakan group by A 0.75 15

Tampilkan suplier yang memasok barang sebanyak 3 kali. (Kriteria dengan


15 A 0.75 15
data Having)

Acuan Soal ini dibuat Oleh : Ditinjau dan divalidasi oleh :


1. Silabus : Pengajar, Ketua Prodi SIA,
2. Kurikulum : 2018/2019

Nama Lengkap Dosen Odi Nurdiawan, M.Kom


NIDN. 0417126503042510 NIDN. 0412049102

S-ar putea să vă placă și