
200+ câu trắc nghiệm Lập trình cho di động có đáp án - Phần 5
40 câu hỏi
starting
running
loading
inexistent
Chọn đáp án A
onCreate
onSelect
onClick
onDO
Chọn đáp án C
Tạo Intent ẩn (hidden intent)
Tạo Intent không tường minh (implicit intent)
Tạo
Start một activity
Chọn đáp án B
activity
content provider
service
Thread
Chọn đáp án A
intent
fragment
view
manifest
Chọn đáp án B
onCreate()
onSelect()
onClick()
contentResolver()
Chọn đáp án D
running
stopped
paused
destroyed
Chọn đáp án C
onStart
onCreate
onPause
onBackPressed
Chọn đáp án D
activity
parent
child
inherited
Chọn đáp án A
onDestroy()
finishAcitivity()
finish()
start()
Chọn đáp án B
content provider
activity
broadcast receiver
service
Chọn đáp án B
Intent intent = new Intent(this, new Activity2()); startActivity(intent);
Intent intent = new Intent(new Activity2()); startActivity(intent);
Intent intent=new Intent(Activity1.class, Activity2.class); startActivity(intent);
Intent intent = new Intent(this, Activity2.class); startActivity(intent);
Chọn đáp án D
stopSelf()
onStop()
onDestroy()
stopService()
Chọn đáp án C
ListActivity
contentActivity
parentActivity
resolveActivity
Chọn đáp án A
CONTEXT và ContextWrapper
Application context
CONTEXTAPP
ONCREATE
Chọn đáp án A
java project
java class
lời gọi hàm
object
Chọn đáp án B
onStop
onPause
onDestroy
onHide
Chọn đáp án A
findViewByReference(int id)
findViewById(int id)
retrieveResourceById(int id)
findViewById(string id)
Chọn đáp án A
activity
parent
child
inherited
Chọn đáp án A
long diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis()
long diffInMilli = java.time.difference(dateTime1, dateTime2).toMillis();
Date diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
Time diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
Chọn đáp án A
Object
Enums
Enum
EnumClass
Chọn đáp án C
SimpleDateFormat
DataFormat
SimpleFormat
DateConverter
Chọn đáp án A
isequal()
isequals()
equal()
equals()
Chọn đáp án C
hướng đối tượng
mã máy
hệ điều hành command line
hướng thủ tục
Chọn đáp án A
Overload
Override
Synchronized
Serializable
Chọn đáp án A
Polymorphism
Encapsulation
Abstraction
Inheritance
Chọn đáp án C
try
finally
throw
catch
Chọn đáp án C
java.sql.Date
java.util.date
java.sql.DateTime
java.util.DateTime
Chọn đáp án A
isAlive()
Join()
isRunning()
Alive()
Chọn đáp án A
b không thể chứa giá trị 100, giới hạn bởi khoảng biểu diễn.
Toán tử nhân chuyển b*50 sang kiểu int, nhưng kiểu int không thể chuyển đổi về kiểu byte mà không sử dụng casting.
b không thể chứa giá trị 50.
Không có lỗi trong đoạn code này.
Chọn đáp án B
Time.getUTC()
Date.getUTC()
instant.now()
TimeZone.getUTC()
Chọn đáp án C
Giấu phần thực thi.
Hiển thị ra dữ liệu quan trọng.
Giấu dữ liệu quan trọng.
Giấu thực thi chỉ hiển thị ra những tính năng.
Chọn đáp án D
Hello
World
HelloWorld
Hello World
Chọn đáp án B
0 2 4 6 8
1 2 3 4 5
0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
Chọn đáp án B
0
value stored in arr
00000
Class name@hashcode in hexadecimal form
Chọn đáp án D
Int
Boolean
Char
Int hoặc Boolean
Chọn đáp án B
break dừng thực thi toàn bộ chương trình.
break tạm dừng toàn bộ thực thi và đẩy điều khiển ra ngoài vòng lặp.
break đẩy điều khiển ra khỏi vòng lặp và bắt đầu thực thi vòng lặp tiếp theo.
break tạm dừng thực thi vòng lặp trong một khoảng thời gian.
Chọn đáp án B
4
5
6
7
Chọn đáp án B
Tạo phương thức public để truy cập.
Tạo phương thức private để truy cập.
Tạo phương thức protected để truy cập.
Không thể truy cập.
Chọn đáp án A
char()
Charat()
charat()
charAt()
Chọn đáp án D
Bạn có thích hoạt động này không?
Hãy lưu hoặc chia sẻ nội dung này đến mọi người.







![[Năm 2022] Đề thi thử môn Vật lí THPT Quốc gia có lời giải - Đề số 21](/_next/image?url=https%3A%2F%2Fvideo.vietjack.com%2Fupload%2Fimages%2Fvj-image%2Fimage-3izficdefgfoel0s9j8s-1786772791.jpg&w=3840&q=75)










