COURSE 1 – Introduction To Android Mobile Application Development QUIZ ANSWERS
Week 2: Emulation and Development
Meta Android Developer Professional Certificate
Complete Coursera Answers & Study Guide
Enroll in Coursera Meta Android Developer Professional Certification
Emulation and Development INTRODUCTION
In this module, you will set up and explore the Android Studio environment.
Learning Objectives
- Describe emulators and Android OS images and their role in Android app development
- Demonstrate how to set up and create an emulator in Android Studio, including the role of the Android Virtual Device manager
- Discuss main activity and manifest code in relation to project structure of Android apps
- Describe Gradle and its role in project building in Android Studio
- Outline the folder structure of an Android project in Android Studio and discuss the purpose and contents of related folders and files, including the res and layout folders
PRACTICE QUIZ: KNOWLEDGE CHECK: DEVELOPMENT ENVIRONMENT SETUP
1. How does the diff command portray changes in a file?
- Snapshot
- Cold boot (CORRECT)
- Quick boot
Correct! Cold boot will start up your device as if you’re turning it on for the first time.
2. When setting up an emulator on Android, which section gives you options to configure the device RAM?
- Memory and storage (CORRECT)
- Android Virtual Device (AVD) manager
- Android Software Development Kit (SDK)
That’s correct! The memory and storage section of the settings gives you options to configure the device RAM, VM heap, internal storage and SD card.
3. True or False: Android Studio allows you to install HAXM through its SDK manager.
- True (CORRECT)
- False
That’s correct! You install HAXM through its SDK manager developers.
4. Which of the following allows developers to enable the last state option of an emulated device?
- Quick boot (CORRECT)
- Cold boot
- Snapshot
That’s correct! It will remember the last state of your device, so that, the next time you run the Android emulator, it will show you the same screen.
5. What alternative hardware acceleration tool can be used for running an emulator?
- HYPER-X
- XIOM
- AXEM
- HAXM (CORRECT)
That’s correct! HAXM is an alternative hardware acceleration tool that can be used for running an emulator.
6. Imagine you use an emulator to run an Android app you designed on a Windows computer. The emulator will (select all that apply):
- Need high computing resources in order to run effectively (CORRECT)
- Imitate the Android devices your app is designed for (CORRECT)
- Allow you to test your app without having to install them on the actual physical devices you designed them for (CORRECT)
- Replicate the experience of different hardware or software (CORRECT)
That’s correct. For the emulator to run effectively, you need to ensure there is enough storage space and Random Access Memory or RAM available on your machine.
That’s correct. An emulator is a computer program that’s designed to imitate another kind of device.
That’s correct. By mimicking the behavior of the mobile devices you designed your app for, the emulator will allow you to test how your apps will run on these devices without having to install them on the actual physical devices.
That’s correct. The overall goal of emulators is to replicate the experience of the original hardware or software.
7. Which option best describes what the Android Virtual Device Manager is used for?
- It lets you run an app on multiple physical devices simultaneously.
- It manages the interaction between your computer and the emulator.
- It lets you define the various features of a virtual device. (CORRECT)
That’s correct! The AVD Manager lets you create and configure virtual devices, enabling you to define the various features of those devices.
8. What is a version or copy of an Android operating system (OS) that is used by an emulator called?
- Android operating system (OS) image (CORRECT)
- Application Programming Interface (API) level
- Android Virtual Device
That’s right. Android OS images are versions of Android operating systems that are used by an emulator.
9. When configuring an emulator using the Android Virtual Device (AVD), what are some of the properties you can set? Select all that apply.
- Specify what you want the device to be called. (CORRECT)
- That’s right! The first property you can set is the AVD name. This lets you specify the name of the device you want to create.
- Select landscape or portrait mode. (CORRECT)
- Correct! With the startup orientation property, you can set the device’s orientation to landscape or portrait.
- State the number of processor cores that are to be used for the emulated device. (CORRECT)
- Spot on! With the emulated performance property, you can specify how many processor cores you would like to use for the emulator. The more processor cores you use, the faster the emulator.
- Override the default RAM value. (CORRECT)
Well done! You can specify a new RAM value to increase the emulator’s available memory.
PRACTICE QUIZ: KNOWLEDGE CHECK: ANDROID PROJECTS
1. In what project directory are all code and resource files for the module kept?
- init
- rex
- src (CORRECT)
Correct! The src folder in android folder stores the source code of the app.
2. The ________________ contains all the configurations and files used to build an android project?
- .gradle folder (CORRECT)
- .idea
- settings.gradle
That’s correct! The .gradle folder contains all the configurations and files used by Gradle to build your project.
3. True or False: Android studio automatically generates many files and folders for you by default.
- True(CORRECT)
- False
That’s correct! Android studio automatically generates many files and folders for you by default.
4. Which of the following describes specific information about an app and each of its components?
- Data Source
- Gradle
- InfoList
- AndroidManifest (CORRECT)
That’s correct! AndroidManifest describes specific information about an app and each of its components.
5. The _______________ allows you to specify all the sensitive project files and folders that you may want to exclude from your repository.
- .app file
- .ignor
- .gitignore file (CORRECT)
- init.ignor file
That’s correct! They specify all the sensitive project files and folders that you may want to exclude from your repository system such as Github.
Coursera Meta Android Developer Professional Certificate Answers and Study Guide
Liking our content? Then don’t forget to ad us to your bookmarks so you can find us easily!
Weekly Breakdown | Meta Study Guides | Back to Top
QUIZ: MODULE QUIZ: EMULATION AND DEVELOPMENT
1. Whenever starting a new project in Android Studio, it automatically generates many files and folders. Which folder will contain the source code for a project?
- .gradle folder
- .idea folder
- App folder (CORRECT)
2. Which of the following statements is true about the onCreate() function?
- Select all that apply.
- The onCreate() is not required in your activity class in order to run an Android app.
- The onCreate() function is called when your app is run. (CORRECT)
- That’s correct! The onCreate() function is called when your app is run and is considered the entry point for your app to run successfully.
- The role of the onCreate() function is to create the view and initialize the actions of the activity. (CORRECT)
That’s correct! The role of the onCreate() function is to create the view and initialize the actions of the activity.
3. True or False: Android Studio generates three build.gradle files when a new project is created.
- True
- False (CORRECT)
That’s correct! Android Studio generates two build.gradle files when a new project is created: one that defines the build settings that apply to every module in the project and another that defines the build settings of the app module its located in.
4. When creating a new project, Android Studio generates an Android.Manifest.xml file by default. Which tag in the manifest file is used to to specify the theme of the application in terms of the user interface (UI) experience?
- <activity>
- <permission>
- <intent-filter>
- <application> (CORRECT)
That’s correct! The application tag is used to specify the theme of the application in terms of UI experience. Things like icon and label are defined in your application tag.
5. Of the three main CPU architectures used in most smartphones, which is the most common?
- x70 (w)
- x86
- ARM64 (w)
- ARM (CORRECT)
That’s correct! ARM is the most common as it is properly optimized for battery use.
6._________ allows you to access built-in features of an operating system image?
- CPU Level (w)
- RAM Level
- API Level (CORRECT)
That’s correct! Through the operating system images, developers can enjoy the built-in features of an operating system using the application programming interface or API level.
7. True or False: ExoPlayer offers an alternative to Android’s MediaPlayer API to play audio and video in an app.
- True (CORRECT)
- False
That’s correct! ExoPlayer is an Android media player library built by Google. It offers an alternative to Android’s MediaPlayer API to play audio and video, locally or online with some additional advantages.
8. Which if the following libraries provide a smooth scrolling experience while an image is loading?
- Fresco (CORRECT)
- ExoPlayer
- RetroFit
That’s correct! Fresco is an image loading library focused on providing a smooth scrolling experience while an image is loading.
9. Imagine you create a new project in Android Studio, which automatically generates many files and folders. Which of the following folders contains source code related to the project?
- .idea
- .gradle
- app (CORRECT)
You are correct! The app folder contains source code related to the project. You will write business logic code, create a user interface (UI) and store assets like images in the app folder.
10. Imagine you create an Android app. Is the onCreate() function needed in the Main Activity file for your app to run?
- Yes (CORRECT)
- No
Correct. The onCreate() function must be in your activity class to run an Android app.
11. Gradle manages your Android project through a set of build configuration files. Through these files, which of the following must be defined? Select all that apply.
- The result or results of the compilation process (CORRECT)
- That’s right. Part of Gradle managing the building of an Android project requires defining what the result or results of the compilation process should be.
- The dependencies that are needed for the project to build and run successfully (CORRECT)
- That’s right. Part of Gradle managing the building of an Android project requires defining the dependencies that must exist for the project to build and run.
- How a project must be developed (CORRECT)
That’s right. Part of Gradle managing the building of an Android project requires defining how a project is to be developed is defined.
12. Which item or tag sets the class or activity as the initial point for running the application?
- Intent filter (CORRECT)
- Activity tag
- Application tag
That’s correct! Within the application tag is a sub-tag called intent filter. The intent filter with the main action is necessary in order to specify the class or the activity as the initial point of running the application.
13. When you change an item in the resource folder, it will automatically update the item across all instances where it is used in your app.
- True (CORRECT)
- False
That’s correct! The resources folder lets you manage, change and access your resources globally across your app.
14. Which res subfolder is recommended for storing your app’s image assets?
- Mipmap (CORRECT)
- Drawable
That’s correct! Mipmap ensures that your app renders high-quality images across different devices.
15. Which of the following can be used to define Android user interfaces (UIs) in Android Studio?
- XML (CORRECT)
- Mipmap folder
- Design editor
That’s correct! XML can be used to specify the UI elements and their layout.
Interactive CSS CONCLUSION
To be written
Subscribe to our site
Get new content delivered directly to your inbox.
Quiztudy Top Courses
Popular in Coursera
- Meta Marketing Analytics Professional Certificate.
- Google Digital Marketing & E-commerce Professional Certificate.
- Google UX Design Professional Certificate.
- Meta Social Media Marketing Professional Certificate
- Google Project Management Professional Certificate
- Meta Front-End Developer Professional Certificate
Liking our content? Then, don’t forget to ad us to your BOOKMARKS so you can find us easily!