Professional Documents
Culture Documents
MAD MID 1 2M Ans
MAD MID 1 2M Ans
MAD MID 1 2M Ans
1. Define an emulator.
A) An emulator is a hardware device or software program that enables one computer system
(also known as a host) to imitate the functions of another computer system (known as the
guest). It enables the host system to run software, tools, peripheral devices and other
components which are designed for the guest system
Emulators are usually composed of three components:
3. What is DVM?
A) In simple terms, DVM stands for "Dalvik Virtual Machine." It's a software engine in
Android devices that runs apps. You can think of it as a kind of interpreter for apps
written in Java. It takes the code written by developers and executes it on your phone
or tablet, allowing you to use different apps smoothly.
UNIT-2 (2 MARKS)
A) TextView:
• Display Only: TextView is used for displaying text content on the screen. It's
generally used to show static text that the user cannot modify.
• Read-Only: Text displayed in a TextView is read-only, meaning the user
cannot interact with it directly.
• No User Input: TextView does not allow the user to input text directly. It's
used to present information to the user.
• Styling: TextView supports various text styling attributes such as color, size,
font, alignment, etc.
EditText:
• Input Field: EditText is used for accepting user input as text. It provides a
field where users can type text input.
• Editable: Unlike TextView, EditText allows users to modify the text content
directly by typing, deleting, or editing the text.
• User Interaction: Users can interact with EditText to input, edit, or delete text.
It's commonly used in forms, search bars, chat applications, etc.
• Input Handling: EditText provides methods and listeners to handle text input
events, such as text changes, focus changes, keyboard actions, etc.
• Text Attributes: Similar to TextView, EditText also supports text styling
attributes for controlling the appearance of the input text.