android 5

android 5

University

44 Qs

quiz-placeholder

Similar activities

Year 10 J277 Networks up to Topologies

Year 10 J277 Networks up to Topologies

9th Grade - University

43 Qs

Jan 25 pre release

Jan 25 pre release

10th Grade - University

40 Qs

AEIC 326 3 Quiz

AEIC 326 3 Quiz

University

45 Qs

NSIC Technical Services Centre

NSIC Technical Services Centre

University

40 Qs

IT Fundamentals Test Part 1

IT Fundamentals Test Part 1

KG - University

49 Qs

220 1001 Day 12

220 1001 Day 12

University

47 Qs

AWS Certified Cloud Practitioner

AWS Certified Cloud Practitioner

5th Grade - Professional Development

44 Qs

COMPUTER NETWORKS [LEC] - UAC PREPARATION

COMPUTER NETWORKS [LEC] - UAC PREPARATION

University

42 Qs

android 5

android 5

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Bùi Lưu

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1: SQLite là gì?

A. Một hệ quản trị cơ sở dữ liệu quan hệ

B. Một cơ sở dữ liệu

C. Một ngôn ngữ lập trình

D. Một trình biên dịch

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2: Giả sử db là đối tượng SQLiteDatabase đã được khởi tạo. Để truy vấn tất cả sinh viên có tuổi lớn hơn 18 từ bảng Students (có các cột: id, name, age), phương thức rawQuery() nào dưới đây là đúng?

A. val cursor = db.rawQuery("SELECT * FROM Students WHERE age > 18", null)

B. val cursor = db.rawQuery("SELECT * FROM Students WHERE age >= 18", null)

C. val cursor = db.rawQuery("SELECT * FROM Students WHERE age > 18;", null)

D. val cursor = db.rawQuery("SELECT * FROM Students WHERE age > 18 ORDER BY age DESC", null)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3: Giả sử db là đối tượng SQLiteDatabase đã khởi tạo. Để xóa sinh viên có id = 7 trong bảng Students (các cột: id, name, age), đoạn mã nào dưới đây là chính xác?

A. db.delete("Students", "id", arrayOf("7"))

B. db.delete("Students", "WHERE id = ?", arrayOf("7"))
C. db.delete("Students", "id = ?", arrayOf("7"))

D. db.rawQuery("DELETE FROM Students WHERE id = ?", arrayOf("7"))

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4: Điền vào chỗ trống ________ trong đoạn mã dưới đây để cập nhật tên của sinh viên có id = 4 thành "Minh"? val values = ContentValues() values.________("name", "Minh") db.________("Students", values, "id = ?", arrayOf("4"))

A. put, update
B. put, modify
C. get, change
D. get, insert

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức onUpgrade trong SQLiteOpenHelper được sử dụng khi nào?

A. Khi tạo CSDL lần đầu
B. Khi phiên bản CSDL thay đổi
C. Khi thêm cột mới
D. Khi truy vấn dữ liệu

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6: Điền vào 2 chỗ trống ________ trong đoạn mã dưới đây để thêm một bản ghi mới vào bảng Students? val values = ContentValues() values.put("name", "An") values.put("age", 25) db.________(________, null, values)

A. insert, "Students"
B. add, "Students"
C. insert, "student"
D. add, "students"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7: Để lấy một đối tượng SharedPreferences trong Android thì cần sử dụng phương thức nào?

A. getPreferences()
B. getSharedPreferences()
C. getDefaultSharedPreferences()
D. createSharedPreferences()

Create a free account and access millions of resources

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?