wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pretest 2

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Bagaimana SQL dapat terbentuk?

How SQL could be formed?

a)

Atas kombinasi relational-algebra dan relational-physics

By the combination of relational-algebra and relational-physics

b)

Atas kombinasi relational-algebra dan relational-calculus

By the combination of relational-algebra and relational-calculus

c)

Atas hasil dari relational-calculus

By the result of relational-calculus

d)

Atas hasil kombinasi dari relational-physics dan relational-chemist

By the result combination of repational-physics and relational-chemist

2.

Kelompok perintah yang digunakan dalam SQL antara lain...

Group of commands used in SQL are ...

a)

DDL

DFL

PCL

EPL

b)

DML

DDL

PCL

DFL

c)

DDL

DML

DCL

PCL

d)

DDL

DML

DCL

TCL

3.

Perintah apa yang digunakan untuk membuat skema dan deskripsi basis data? What commands used for creating database schemas and descriptions?

a)

Data definition language

b)

Transaction control language

c)

Data manipulating language

d)

Data control language

4.

Bagaimana penulisan query pembuatan tabel mata kuliah dengan field id, kode mk, nama, serta sks?

How to write a correct query to make a course table with fields: id, code, name, and sks?

a)

CREATE TABEL course (

id int not null default primary key auto_increment,

code varchar(55),

name varchar(255) not null,

sks tinyint

);

b)

INSERT TABLE course (

id int not null primary key,

code varchar(10) not null,

name varchar(255) not null,

sks tinyint not null

);

c)

CREATE TABLE course (

id int not null primary key auto_increment,

code varchar(10) not null,

name varchar(255) not null,

sks tinyint not null

);

d)

CREATE TABEL course (

id int not null default primary key auto_incremental,

code varchar(10) not null,

name varchar(255) not null,

sks tinyint not null

);

5.

Bagaimana query yang tepat untuk menghapus tabel universitas?

What is the correct query to delete universitas table?

a)

DROP tabel university

b)

DROP table universitas

c)

DROP table university

d)

DROP universitas

6.

Pilih query yang tepat untuk menambahkan record ke tabel departemen (id, name, kadep_id)!

Select the correct query to insert record into departemen table (with available columns: id, name, kadep_id)!

a)

INSERT INTO departemen (name, kadep_id) VALUES ("Teknik Elektro", 5)

b)

INSERT INTO departemen VALUES (1, "Elektronika")

c)

INSERT TABLE departemen (name, kadep_id) VALUES ("Teknik Elektro", 5)

d)

INSERT TABLE department (id, name, kadep_id) VALUES (50, "Elektro UM", 100)

7.

Buat query untuk mengambil seluruh record yang mengandung semester 3 pada tabel matakuliah yang dibuat sebelumnya!

Create a query to retrieve all records that contain semester 3 at previously generated matakuliah table before!

(a)  

8.

Diketahui database mysql memiliki tabel departemen memiliki kolom id, name, kadep_id, serta fakultas. Tulis query yang menunjukkan record seluruh departemen yang memiliki value Fakultas mirip dengan Keguruan dan Ilmu Pengetahuan!

At the mysql database, it is known that departemen table contains id, name, kadep_id, and fakultas. Write a query that shown all departemen records containing Fakultas value like Keguruan dan Ilmu Pengetahuan!

(a)  

9.

Alter adalah salah satu perintah DML

a)

Benar

b)

Salah

10.

Pengurutan data secara meningkat disebut...

a)

Ascending

b)

Order

c)

Group

d)

Descending