What is the main role of the Android 'MediaPlayer' class? MCQ with Answer and Explanation

What is the main role of the Android 'MediaPlayer' class?
A. To edit media files
B. To record audio
C. To manage media storage
D. To play audio and video files
Answer: Option D
Solution (By JKSSB Mock Tests)
MediaPlayer is used for playback of audio/video from files, streams, or resources.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
What is the role of the bootloader in the boot process?
A. To perform hardware diagnostics
B. To load the operating system kernel into memory
C. To provide a user interface during boot
D. To manage file systems

Correct Answer: Option B


Explanation:
The bootloader (e.g., GRUB, Windows Boot Manager) loads the OS kernel and passes control to it.

This question belongs to: Computer Operating Systems
Question #2
Which Linux command is used to kill a process by its name?
A. killall
B. pkill
C. term
D. kill

Correct Answer: Option B


Explanation:
pkill kills processes based on name or other attributes; killall is similar but may behave differently; kill uses PID.

This question belongs to: Computer Operating Systems
Question #3
Which of the following is a type of operating system that provides no user interaction and processes jobs in batches?
A. Network OS
B. Batch OS
C. Real-time OS
D. Time-sharing OS

Correct Answer: Option B


Explanation:
Batch OS processes jobs sequentially without user intervention, common in early computing.

This question belongs to: Computer Operating Systems