Q 1 What is an interface in android?
A - Interface acts as a bridge between class and the outside world.
B - Interface is a class.
C - Interface is a layout file.
D - None of the above
Ans: A
Q 2 Fragment in Android can be found through
A -
findByID
B -
findFragmentByID
C -
getContext.findFragmentByID
D -
FragmentManager.findFragmentByID
Ans: D
Q 3 What is fragment in android?
A - JSON
B - Peace of Activity
C - Layout
D - None of the above
Ans: B
Q 4 What is fragment life cycle in android?
A -
onReceive
B -
onCreate
C -
onAttach->onCreate −> onCreateView −> onActivityCreated −> onStart
−> onResume
D - None
of the above
Ans: C
Q 5 How many levels of securities are there in android?
A - App
level security and kernel level security
B -
Android level security
C - Java
level security
D - None
of the above
Ans: A
Q 6 How many orientations does android support?
A - 4
B - 10
C - 2
D - None of the above
Ans: A
Q 7 How many protection levels are available in the android permission tag?
A -
There are no permission tags available in android
B -
Normal, kernel, application
C -
Normal, dangerous, signature, and signatureOrsystem
D - None
of the above
Ans: C
Q 8 Is
it mandatory to call onCreate and onStart in android?
A - No,
we can write the program without writing onCreate and onStart
B - Yes,
we should call onCreate and onStart to write the program
C - At
least we need to call onCreate once
D - None
of the above
Ans: A
Q 9 Is it possible activity without UI in android?
A - No,
it's not possible
B -
Yes,it's possible
C - We
can't say
D - None
of the above
Ans: B
Q 10 What is the purpose of super.onCreate in android?
A - To create an activity
B - To create a graphical window for subclass
C - It allows the developers to write the program
D - None of the above
Ans: B
Q 11 What is ANR responding time in android?
A - 10
sec
B - 5
sec
C - 1
min
D - None
of the above
Ans: B
Q 12 What is sandbox in android?
A - Each application runs securely in sandbox without interrupting another process
B - Android Box
C - Android development tool kit
D - None of the above
Ans: B
Q 13 What are commands needed to create APK in android?
A - No need to write any commands
B - Create apk_android in command line
C - Javac,dxtool, aapt tool, jarsigner tool, and zipalign
D - None of the above
Ans: B
Q 14 What is transient data in android?
A -
Permanent data
B -
Secure data
C -
Temporary data
D -
Logical data
Ans: D
Q 25 Can a class be immutable in android?
A - No, it can't
B - Yes, Class can be immutable
C - Can't make the class as final class
D - None of the above
Ans: B
Q 16 Why don't we give MIN SDK as 1 in android?
A -
Android deprecated version
B -
There is no value for 1
C -
Android doesn't allow min version 1
D - None
of the above
Ans: A
Q 17 How do you join two notifications in android?
A - Give
same id for both notifications
B -
Write notification code two times
C - It
is not possible in android
D - A
& B
E - A
& C
Ans: D
Q 18 What is the main difference between set and list in android?
A - Both
are same
B - Set
can't contain duplicate values
C - List
may contain duplicate values
D - B
& C
E - A
& C
Ans: D
Q 19 What is off-line synchronization in android?
A - Synchronization with internet
B - Background synchronization
C - Synchronization without internet
D - None of the above
Ans: C
Q 20 What are the main components in android?
A - Activity
B - Services
C - Broadcast Receiver
D - Content provider
Ans: A
Q 21 What is the life cycle of foreground activity in android?
A -
onCreate −> onStart −> onResume −> onStop −> onRestart
B -
onCreate −> onStart −> onResume −>onStop
C -
onCreate −> onStart −> onResume
D - None
of the above
Ans: C
Q 22 What are return types of startActivityForResult in android?
A - RESULT_OK
B - RESULT_CANCEL
C - RESULT_CRASH
D - A & B
E - B & C
Ans: D
Q 23 What is bean class in android?
A - A class used to hold states and objects
B - A bean class can be passed from one activity to another.
C - A mandatory class in android
D - None of the above
Ans: B
Q 24 What is a thread in android?
A - Same
as services
B -
Background activity
C -
Broadcast Receiver
D -
Independent dis-patchable unit is called a thread
Ans: D
Ans: D
Q 25 What is anchor view?
A - Same as list view
B - provides the information on respective relative positions
C - Same as relative layout
D - None of the above
Ans: B
Q 26 What is sandbox in android?
A - Each
application runs securely in sandbox without interrupting another process
B -
Android Box
C -
Android development tool kit
D - None
of the above
Ans: A
Q 27 What is off-line synchronization in android?
A -
Synchronization with internet
B -
Background synchronization
C -
Synchronization without internet
D - None
of the above
Ans: C
Q 28 What are the main components in android?
A -
Activity
B -
Services
C -
Broadcast Receiver
D -
Content provider
Ans: A
Q 29 What is thread in android?
A - Same
as services
B -
Background activity
C -
Broadcast Receiver
D -
Independent dis-patch-able unit is called a thread
Ans: D
Q 30 What are commands needed to create APK in android?
A - No
need to write any commands
B -
Create apk_android in command line
C -
Javac,dxtool, aapt tool, jarsigner tool, and zipalign
D - None
of the above
Ans: C
1 comments:
commentsQ 12 What is sandbox in android?
ReplyA - Each application runs securely in sandbox without interrupting another process
B - Android Box
C - Android development tool kit
D - None of the above
Ans: B
Answer will be "A"