0% found this document useful (0 votes)
3 views6 pages

MIT-App Inventor Part-1

The document contains a series of questions and answers related to the use of MIT App Inventor, including topics such as video conferencing apps, app testing methods, and the functionality of various components. It explains how to implement features like text-to-speech and ball movement, as well as the process of packaging an app for installation on mobile devices. Additionally, it discusses properties of the Canvas object and the use of Labels for displaying text in an app.

Uploaded by

hackerhitman099
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

MIT-App Inventor Part-1

The document contains a series of questions and answers related to the use of MIT App Inventor, including topics such as video conferencing apps, app testing methods, and the functionality of various components. It explains how to implement features like text-to-speech and ball movement, as well as the process of packaging an app for installation on mobile devices. Additionally, it discusses properties of the Canvas object and the use of Labels for displaying text in an app.

Uploaded by

hackerhitman099
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Textbook Answers

1. Select the correct option.


a. Which of the following apps can you use for video
conferencing?
i. Zoom
ii. Skype
iii. Uber
iv. Both (1) and (ii)
b. Which feature in App Inventor allows you to test an
app without a mobile device?
i. Prototype
ii. Screen
iii. Emulator
iv. Simulator
c. Which view of the App Inventor will you use to create a
script for an object?
i. Designer
ii. Blocks
iii. Palette
iv. Properties
d. Which of the following objects used to create an app is
not shown in the Viewer?
i. Canvas
ii. Textbox
iii. Label
iv. TextToSpeech
e. Which property of the Screen object determines
whether you can scroll down or up by swiping on your
screen while using the app?
i. Scrollable
ii. Sizing
II. Align Vertical
iv. Align Horizontal

2.Explain the use of the following script.

Ans:-Text-to-Speech Functionality

When Button1 is clicked.The app will take the text


entered in TextBox1 and pass it to
TextToSpeech1.Result: The device will speak out
loud the text that was entered in TextBox1.

Ans:- Displaying a Greeting Message

When Button1 is clicked.The app sets the text of


Label2 to display "Hello" followed by the text
entered in TextBox1.
Result: If a user enters "John" in TextBox1, Label2
will display "Hello John".

Ans:- Ball Movement on a Fling Gesture

When Ball1 is flung (a fast swipe gesture).The app


sets Ball1's speed and heading according to the
user's swipe direction and velocity.Result: The ball
moves in the direction and speed of the user's swipe.

3. Answer the following questions.

a. Which category can you find the Ball sprite in?


How can you change the size of the Ball sprite?

Ans:-

The Ball sprite can be found in the Drawing and


Animation category in MIT App Inventor.

You can change the size of the Ball sprite using the
following properties:

1.​Radius Property:

You can adjust the Radius property in the


Designer view to increase or decrease the size.
2.​Blocks Editor:

You can dynamically change the size using a block


like:​
set Ball1.Radius to (new size)

Example: set Ball1.Radius to 50 will make


the ball larger.

b. Describe any two ways to test your app while


developing it?

Ans:- Using AI Companion (Live Testing)

1)Install the MIT AI2 Companion app on your mobile


device.

2)Connect your phone and computer to the same


Wi-Fi network.

3)Scan the QR code or enter the provided code to


run the app on your device in real-time.

4)Advantage: You can instantly see changes as you


modify the app.

Using an Emulator (Without a Mobile Device)

1)Install the MIT App Inventor Emulator on your


computer.

2)Run the app within the emulator to test it as if it's


running on a real phone.
3)Advantage: Useful if you don't have a mobile
device available for testing.

c. What do you understand by packaging an app?

Ans:-

Packaging an app refers to the process of compiling


and exporting the app so that it can be installed and
used on a mobile device. In MIT App Inventor,
packaging an app means creating an APK (Android
Package) file that can be installed on Android
devices.

1.​Compiling the Code: Converts the app's blocks and


design into an executable format.
2.​Generating an APK File: The final packaged file
(.apk) can be installed on Android devices.
3.​Building an AAB File (Optional): The Android App
Bundle (AAB) can be used for publishing on the
Google Play Store.
4.​Signing the App: MIT App Inventor automatically
signs the app with a basic key, but for Play Store
publishing, a custom key may be required.

d. What is the effect of selecting the "Fill parent"


option of the Height and Width property of the
Canvas object?
Ans:- When you set the Height and Width of the
Canvas object to "Fill parent", it means that the
Canvas will expand to take up the entire available
space of its parent container (usually the screen or a
layout).

1.​Maximum Space Utilization: The Canvas will stretch


to fill the entire width and height of the screen or the
container it is inside.
2.​Responsive Design: It automatically adjusts to
different screen sizes, making the app look better on
various devices.
3.​Improved Drawing Area: Useful for apps that involve
drawing, animations, or games, as it provides more
space for user interaction.

e. Which object will you use in an app to display


some text?

Ans:- In MIT App Inventor, you would use the Label


component to display text on the screen. The Label
component allows you to show static or dynamic
text, and you can modify its properties, like text size,
color, and alignment, to customize its appearance.

**********************************************************************

You might also like