Page 80 - PlugGPT_V2.0_C7_Flipbook
P. 80
D. Long answer type questions.
1. How do you change the display name of a button?
2. Write the steps for testing an app.
Mind Boggler
Competency-based/Application-based question. Media Literacy
Shivani wants to create a simple calculator app that can add, subtract, multiply, and divide numbers.
She is stuck on figuring out how to perform these operations. What blocks should Shivani use to
perform addition, subtraction, multiplication, and division?
...........................................................................................................................................................................................................
Interdisciplinary
Create a calculator that performs simple addition.
• Start a new project in App Inventor.
• Drag two Text Boxes for inputting numbers.
• Add a Button labelled "Add".
• Drag a Label to display the result.
• In the Block Editor, create a block that adds the values from the two text boxes when the
"Add" button is clicked, and displays the result in the label.
• Test the app by entering numbers and clicking "Add" to see the result.
Create a quiz app with a simple question and multiple choices.
• Open App Inventor and create a new project.
• Drag a Label to display the question "What is the capital of India?".
• Add three Buttons with the following choices:
• Button 1: "Delhi"
• Button 2: "Mumbai"
• Button 3: "Chennai"
• In the Block Editor, program the app to:
• Display a message "Correct" if the user selects Button 1.
• Display a message "Try Again" if they choose Button 2 or Button 3.
• Test the app and verify.
1. Explain the concept of applications and apps to the students.
2. Discuss with students about the process of app development.
3. Describe all the topics discussed in this chapter to the students.
78 Premium Edition-VII

