
android 5
Authored by Bùi Lưu
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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"))
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"))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức onUpgrade trong SQLiteOpenHelper được sử dụng khi nào?
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)
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?
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
40 questions
1er PARCIAL BD
Quiz
•
University
40 questions
2ºDAW - Desarrollo Web Ent.Cliente - Trim.2 - Prof. C. Boni
Quiz
•
University - Professi...
44 questions
LATIHAN PYTHON
Quiz
•
10th Grade - University
40 questions
Topic 9 - Marketing Plan
Quiz
•
University
46 questions
CSCI0613 - Course Packet 1
Quiz
•
University
42 questions
Repaso Examen UT3 Montaje
Quiz
•
KG - University
46 questions
NET 300: Wrap-Up Session Quiz
Quiz
•
University
40 questions
Quiz Database
Quiz
•
University
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