Search Header Logo

Bahagia Menjadi Progremer

Authored by Setya Bella

Other

9th - 12th Grade

Used 1+ times

Bahagia Menjadi Progremer
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana Anda membuat tabel SQLite dengan skema berikut ini:

ID (integer, auto-increment, primary key)

Name (text) Age (integer)

CREATE TABLE IF NOT EXISTS my_table (ID INTEGER PRIMARY KEY AUTOINCREMENT, Name TEXT, Age INTEGER);

CREATE TABLE my_table (ID INTEGER PRIMARY KEY AUTOINCREMENT, Name TEXT, Age INTEGER);

CREATE TABLE my_table (ID INTEGER AUTOINCREMENT PRIMARY KEY, Name TEXT, Age INTEGER);

CREATE TABLE my_table (ID PRIMARY KEY AUTOINCREMENT INTEGER, Name TEXT, Age INTEGER);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana Anda menyisipkan (insert) data ke dalam tabel SQLite di Android menggunakan SQL?

INSERT INTO my_table (Name, Age) VALUES ('John', 25);

INSERT my_table (Name, Age) VALUES ('John', 25);

INSERT ('John', 25) INTO my_table (Name, Age);

ADD INTO my_table (Name, Age) VALUES ('John', 25);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana Anda membaca (select) semua data dari tabel SQLite dan mengambil hasil dalam sebuah Cursor di Android?

Cursor cursor = database.rawQuery("SELECT * FROM my_table", null);

Cursor cursor = database.query("SELECT * FROM my_table");

Cursor cursor = database.select("my_table");

Cursor cursor = database.readTable("my_table");

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana Anda memperbarui (update) data dalam tabel SQLite di Android?

UPDATE my_table SET Name = 'Alice' WHERE Name = 'Bob';

UPDATE my_table SET Name = 'Alice' WHERE ID = 2;

MODIFY my_table SET Name = 'Alice' WHERE Name = 'Bob';

ALTER my_table SET Name = 'Alice' WHERE ID = 2;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana Anda menghapus (delete) data dari tabel SQLite dengan kondisi tertentu?

DELETE FROM my_table WHERE ID = 3;

REMOVE FROM my_table WHERE Name = 'Alice';

DROP my_table WHERE ID = 3;

ERASE my_table WHERE Name = 'Alice';

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?