200+ câu trắc nghiệm Lập trình cho di động có đáp án - Phần 1
40 câu hỏi
Trong Android, để tạo một hoạt động (activity) mới, cần phải thêm một mục (item) vào tệp nào trong thư mục “res”?
values/strings.xml
layout/activity_main.xml
menu/main_menu.xml
drawable/background.png
Trong Android, để định dạng lại layout cho các kích thước màn hình khác nhau, bạn nên sử dụng file resource nào?
layout-large
layout-land
layout-sw600dp
layout-portrait
Từ khi thiết bị di động phát triển thì có ảnh hưởng như thế nào?
Nhu cầu giải trí tăng cao
Xuất hiện nhiều công việc mới
Phát triển nhiều kênh phân phối và kênh thanh toán
Tất cả đều đúng
The required android tools for development
is called
APK
JDK
IDE
Trong Android, để hiển thị danh sách dữ liệu dạng lưới, thành phần phù hợp nhất là?
ListView
RecyclerView với GridLayoutManager
ScrollView
LinearLayout
Trong Android, để thực hiện các tác vụ lặp đi lặp lại (repeated tasks), nên sử dụng gì?
TimerTask
LoopTask
ScheduledExecutorService
CountDownTimer
What is the system image that the virtual device was set up to support?
KitKat
Ice-cream sandwich
JellyBean
Marshmallow
Trong Android, để chuyển dữ liệu từ một hoạt động (activity) này sang hoạt động khác, cần sử dụng đối tượng gì?
Intent
Activity
Fragment
Bundle
Trong Android, để gửi dữ liệu giữa các thành phần của ứng dụng (ví dụ: từ hoạt động này sang hoạt động khác), nên sử dụng phương thức nào?
sendIntent()
startActivity()
sendBroadcast()
setContent()
Phiên bản Android nào được gọi là "KitKat"?
Android 3.0
Android 4.0
Android 4.4
Android 5.0
Thư viện (library) nào trong Android được sử dụng để xử lý đồ họa và hiệu ứng?
Android Graphics Library (AGL)
OpenGL ES (OpenGL for Embedded Systems)
Android Graphics Engine (AGE)
Graphics Processing Unit (GPU)
Khung ứng dụng (application framework) trong Android làm gì?
Quản lý và cài đặt ứng dụng trên thiết bị
Cung cấp các thành phần cơ bản cho ứng dụng
Quản lý cơ sở dữ liệu SQLite
Thực hiện giao tiếp mạng
Trong thiết kế ứng dụng di động Android, mô hình MVP sử dụng các thành phần nào để tách biệt logic ứng dụng?
Model, View, Controller
Model, View, Presenter
Model, Activity, Presenter
Model, View, Fragment
Để thay đổi màu nền (background color) của một TextView trong Android, cần sử dụng thuộc tính nào trong tệp XML?
textColor
backgroundColor
textColorPrimary
background
when the activity is no longer visible is?
onDestroy
onStop
onRestart
In Java, blueprint created for an object is called
an object
a function
a program
a class
Đây là logo của hệ điều hành di động nào?
Android
iOS
Windows Phone
BlackBerry OS
To create a unit of code within a method signature that can be extend or shrink is enclosed by
[]
{}
()
||
Trong Android, để thực hiện xử lý bất đồng bộ một cách hiện đại, bạn có thể sử dụng thư viện nào?
RxJava
Retrofit
Volley
Picasso
Phiên bản Android nào ra đời vào tháng 09/2009?
Alpha
Beta
Cupcake
Donut
Trong Android, để thực hiện các tác vụ nền (background tasks) mà không ảnh hưởng đến giao diện người dùng, nên sử dụng gì?
AsyncTask
IntentService
Handler
BroadcastReceiver
Which listener is called for the device to register the enter key press?
OnClickListener
OnKeyListener
OnContextClickListener
OnHoverListener
Which is the correct line of code to get the ID of the EditText you intend to use?
EditText TextHandler = (EditText)findViewById(R.id.nameTextField);
EditText = (EditText)findViewById(R.id.nameTextField);
EditText TextHandler = findViewById(R.id.nameTextField);
EditText TextHandler = (EditText)findViewById(nameTextField);
Which Android Studio file is most of the app coding done in?
MainActivity.java
Activity_main_xml
AndroidManifest.xml
main_activity.java
Trong Android, để tạo một đối tượng Parcelable cho việc chuyển dữ liệu giữa các thành phần, cần triển khai phương thức nào?
writeToParcel()
serialize()
transmitData()
packageData()
Trong Android, thành phần nào có vai trò là lắng nghe các sự kiện, trạng thái của hệ thống phát ra thông qua Intent, nhờ đó mà các lập trình viên có thể xử lí được các sự kiện hệ thống ở bên trong ứng dụng và có thể hoạt động được cả khi ứng dụng bị tắt?
AsyncTask
Service
IntentService
BroadcastReceiver
Để xây dựng giao diện đa ngôn ngữ trong Android, các file string resource nên được đặt trong thư mục nào?
res/values
res/locale
res/strings
res/languages
Đây là logo của cái gì?
Apple Store
Google Play
Andoird
iOS
Phiên bản Android nào ra đời vào tháng 08/2012?
Ice Cream Sandwich
Jelly Bean
KitKat
Honeycomb
Broadcast of call to someone targeted by the data is
android.intent.action.BUG_REPORT
android.intent.action.CALL
android.intent.action.REBOOT
android.intent.action.BATTERY_CHANGED
Đâu KHÔNG PHẢI là một hệ điều hành cho thiết bị di động?
Android
iOS
Windows Phone
Safari
Để tạo một Dialog tùy chỉnh trong Android, bạn nên sử dụng lớp nào?
AlertDialog
ProgressDialog
DialogFragment
CustomDialog
Trong Android, để hiển thị danh sách dữ liệu có khả năng tìm kiếm, bạn thường sử dụng thành phần nào?
ListView
RecyclerView kết hợp với SearchView
GridView
Spinner
Trong Android, để kết nối đến một API RESTful, bạn có thể sử dụng thư viện nào?
Volley
Retrofit
OkHttp
FastNetworking
Which is correct for using any image with the name "trainstation"?
Android:"@drawable/trainstation"
Android:src="trainstation"
Src=@drawable/trainstation
Android:src="@drawable/trainstation"
Android là gì?
Là hệ điều hành tối ưu cho các thiết bị di động
Là hệ điều hành dựa trên nhân Unix kernel
Là hệ điều hành dành cho máy tính để bàn
Là hệ điều hành dành cho tablet
Trong Android, để hiển thị danh sách cuộc gọi gần đây của thiết bị, cần sử dụng lớp nào?
CallLog
Contacts
PhoneBook
Messages
Phiên bản Android nào ra đời vào tháng 09/2013?
Ice Cream Sandwich
Jelly Bean
KitKat
Honeycomb
Trong Android, để tạo hiệu ứng chuyển động cho một View, ta có thể sử dụng đối tượng nào?
ObjectAnimator
ValueAnimator
PropertyValuesHolder
AnimatorInflater
Trong Android, để tạo hiệu ứng chuyển đổi giữa các Activity, chúng ta có thể sử dụng lớp nào?
Intent
ActivityOptions
AnimationUtils
TransitionManager








