
android 5
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
Bùi Lưu
Used 4+ times
FREE Resource
Enhance your content in a minute
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?
Create a free account and access millions of resources
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
41 questions
ITF Q10
Quiz
•
University
45 questions
CHAPTER 3
Quiz
•
University
47 questions
Computing and General Knowledge
Quiz
•
7th Grade - University
45 questions
Quiz 4 - Chapter 7 - IT 104A
Quiz
•
University
45 questions
Management Quiz
Quiz
•
9th Grade - University
49 questions
Google Drive Quiz
Quiz
•
12th Grade - University
40 questions
Armazenamento AWS
Quiz
•
University
45 questions
Core AI Fundamentals Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
