
Pretest DML (+DDL)
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Hard
SENA NUR ACKSYAVI
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah SQL manakah yang termasuk dalam kelompok Data Definition Language (DDL)?
INSERT INTO siswa VALUES (1, 'Budi');
UPDATE siswa SET nama='Budi' WHERE id=1;
CREATE TABLE siswa (id INT, nama VARCHAR(50));
SELECT * FROM siswa WHERE id=1;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah DROP TABLE siswa; digunakan untuk...
Menghapus semua data dalam tabel siswa tetapi struktur tabelnya tetap ada.
Menghapus seluruh tabel siswa beserta semua datanya dari database.
Menghapus database tempat tabel siswa berada.
Menghapus satu baris data dari tabel siswa berdasarkan kondisi tertentu.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi utama dari perintah ALTER TABLE dalam SQL?
Untuk menampilkan struktur dari sebuah tabel.
Untuk memodifikasi struktur tabel yang sudah ada (menambah, menghapus, atau mengubah kolom).
Untuk memasukkan data baru ke dalam tabel.
Untuk mengunci tabel agar tidak bisa diubah oleh user lain.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ketika kita ingin menambahkan kolom alamat ke tabel siswa yang sudah ada, perintah yang tepat adalah...
INSERT COLUMN alamat INTO siswa;
ALTER TABLE siswa ADD alamat VARCHAR(100);
UPDATE TABLE siswa ADD alamat TEXT;
CREATE COLUMN alamat ON siswa;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah manakah yang merupakan contoh Data Manipulation Language (DML)?
CREATE INDEX idx_nama ON siswa(nama);
DROP VIEW view_siswa;
DELETE FROM siswa WHERE id = 5;
GRANT SELECT ON siswa TO user1;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ketika kita menjalankan perintah INSERT INTO produk (nama, harga) VALUES ('Buku', 5000);, apa yang terjadi?
Kolom id akan otomatis terisi dengan nilai 0.
Akan terjadi error karena tidak semua kolom diisi nilai.
Data baru akan dimasukkan hanya ke kolom nama dan harga, kolom lain yang tidak disebutkan akan bernilai NULL atau default.
Nilai untuk semua kolom dalam tabel harus disebutkan secara berurutan.
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Untuk mengubah nama tabel lama menjadi baru, perintah yang benar adalah...
ALTER TABLE lama RENAME TO baru;
RENAME TABLE lama TO baru;
UPDATE TABLE lama SET name = 'baru';
DELETE TABLE lama AND CREATE TABLE baru;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Web 1.5-1.6 Quiz
Quiz
•
11th Grade
12 questions
Algoritma dan Pemrograman
Quiz
•
9th - 12th Grade
10 questions
Web программалау бөліміне қысқаша шолу
Quiz
•
10th Grade - University
10 questions
Quiz Tabel HTML
Quiz
•
11th Grade
10 questions
Quiz Fungsi Agregasi SQL
Quiz
•
11th Grade
10 questions
Post Test (JKI)
Quiz
•
10th Grade - University
10 questions
Quiz Microsoft Excel #1
Quiz
•
10th Grade - University
10 questions
Database Practice Test 1 Part 2 Review
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
