Skip to content

Commit

Permalink
Update android-quiz.md
Browse files Browse the repository at this point in the history
Minor correction in renumeration
  • Loading branch information
monkrus authored Apr 19, 2021
1 parent 4726fdb commit a6dc50d
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions android/android-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,19 +545,26 @@ buildTypes {
- [ ] FrameLayout
- [ ] RelativeLayout

#### Q43. Why do developers often put app initialization code in the Application class?
#### Q43. You need to upgrade to the latest version of the Android Gradle plugin. Which file should you modify?

- [x] root_project_dir/app/build.gradle.
- [ ] root_project_dir/settings.gradle.
- [ ] root_project_dir/build.gradle.
- [ ] root_project_dir/app/gradle.properties.

#### Q44. Why do developers often put app initialization code in the Application class?
- [ ] The Application class is instantiated before any other class when the process for the application is created.
- [ ] The Application class is instantiated after any permissions requests when the process for the application is created.
- [ ] The Application class is created each time a new Activity is launched, making it ideal for initialization code.
- [ ] The Application class is created each time a background service is called, making it ideal for initialization code.

#### Q44. What folder should you use for your app's launcher icons?
#### Q45. What folder should you use for your app's launcher icons?
- [ ] /drawable
- [ ] /icon
- [ ] /mipmap
- [ ] /launcher

#### Q45. Which drawable definition allows you to achieve the shape below?
#### Q46. Which drawable definition allows you to achieve the shape below?
![img](image/43.jpeg)
- [ ]
```xml
Expand Down Expand Up @@ -599,13 +606,13 @@ buildTypes {
</shape>
```

#### Q46. Given the ConstraintLayout below, which statement is true?
#### Q47. Given the ConstraintLayout below, which statement is true?
![img](image/44.jpeg)
- [ ] View B is not horizontally constrained.
- [ ] View C has too many constraints.
- [ ] View B is not vertically constrained.
- [ ] View C is constrained to the parent.
#### Q47. Given this code snippey from a build.gradle file, which choice is not a possible build variant?
#### Q48. Given this code snippey from a build.gradle file, which choice is not a possible build variant?
android {
...
defaultConfig{...}
Expand All @@ -626,12 +633,6 @@ android {
- [ ] stagingDebug.
- [ ] stagingRelease.

#### Q48. You need to upgrade to the latest version of the Android Gradle plugin. Which file should you modify?

- [x] root_project_dir/app/build.gradle.
- [ ] root_project_dir/settings.gradle.
- [ ] root_project_dir/build.gradle.
- [ ] root_project_dir/app/gradle.properties.

#### Q49. What is not good way to reuse Android code?

Expand Down

0 comments on commit a6dc50d

Please sign in to comment.