In Android, what is the purpose of a 'Service' component? MCQ with Answer and Explanation

In Android, what is the purpose of a 'Service' component?
A. To store shared data
B. To display a user interface
C. To perform long-running background operations without a user interface
D. To broadcast messages
Answer: Option C
Solution (By JKSSB Mock Tests)
Services run in the background to handle tasks like music playback or network operations, even when the app is not visible.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
Which Linux command is used to display the current environment variables?
A. printenv
B. env
C. set
D. All of the above

Correct Answer: Option D


Explanation:
env, printenv, and set all display environment variables; set also shows shell variables.

This question belongs to: Computer Operating Systems
Question #2
Which of the following is a security feature in Windows that prevents unauthorized code from running?
A. User Account Control (UAC)
B. BitLocker
C. Windows Firewall
D. Windows Defender

Correct Answer: Option A


Explanation:
UAC prompts users for permission when programs try to make system changes, preventing unauthorized actions.

This question belongs to: Computer Operating Systems
Question #3
Which of the following Android components replaced the older Dalvik Virtual Machine (DVM) to provide faster app execution via Ahead-Of-Time (AOT) compilation?
A. Android Runtime (ART)
B. Bionic Libc
C. Zygote Process
D. Java Virtual Machine (JVM)

Correct Answer: Option A


Explanation:
ART (Android Runtime) replaced Dalvik starting from Android 5.0 (Lollipop), improving application performance through Ahead-Of-Time compilation.

This question belongs to: Computer Operating Systems