ExamGecko
Home Home / Huawei / H14-231_V1.0

Huawei H14-231_V1.0 Practice Test - Questions Answers, Page 16

Question list
Search
Search

List of questions

Search

Related questions











If a UI is no longer visible to the user, but you don't want to destroy it, which method will the system call to release the corresponding resources?

A.
onBackground
A.
onBackground
Answers
B.
onPause
B.
onPause
Answers
C.
onForeground
C.
onForeground
Answers
D.
onInactive
D.
onInactive
Answers
Suggested answer: A

If a developer wants to develop a file background download function, there needs to be a Page Ability to provide UI pages, and a Service Ability to provide the background file download function. Which of the following can invoke Service Ability in Page Ability?

A.
connectPageAbility(intent,connection)
A.
connectPageAbility(intent,connection)
Answers
B.
connectAbility(intent, connection)
B.
connectAbility(intent, connection)
Answers
C.
onConnect
C.
onConnect
Answers
D.
connectServiceAbility(intent, connection)
D.
connectServiceAbility(intent, connection)
Answers
Suggested answer: B

When developing a HarmonyOS application, what methods do I need to call when migrating the FA (Feature Ability) on device A to device B?

A.
continueAbility ()
A.
continueAbility ()
Answers
B.
continueAbilityReversibly ()
B.
continueAbilityReversibly ()
Answers
C.
startAbilityForResult ()
C.
startAbilityForResult ()
Answers
D.
startAbility ()
D.
startAbility ()
Answers
Suggested answer: B

In distributed task scheduling, if a developer needs to coordinate access from multiple devices, what field in config.json does a developer need to apply for permission?

A.
deviceld
A.
deviceld
Answers
B.
reqPermissions
B.
reqPermissions
Answers
C.
Intent
C.
Intent
Answers
D.
name
D.
name
Answers
Suggested answer: B

A developer now needs to make a motion track recording application, which can report the user's location information in real time. Which of the following is correct?

A.
Use RequestParam.SCENE_TRAJECTORY_TRACKING settings to locate the scene
A.
Use RequestParam.SCENE_TRAJECTORY_TRACKING settings to locate the scene
Answers
B.
Apply for the ohos.permission.LOCATION permission only in config.json
B.
Apply for the ohos.permission.LOCATION permission only in config.json
Answers
C.
dynamically requests user authorization only in the code ohos.permission.LOCATION
C.
dynamically requests user authorization only in the code ohos.permission.LOCATION
Answers
D.
Use RequestParam.SCENE_NO_POWER settings to locate the scene
D.
Use RequestParam.SCENE_NO_POWER settings to locate the scene
Answers
Suggested answer: A

After a developer sets :ohos:layout_ alignment='horizontal _center' in the Text component, he writes: text.setTranslationX(600) in the code, where is the Text displayed in the parent layout?

A.
level is centered
A.
level is centered
Answers
B.
is horizontally centered and shifted to the right by 600
B.
is horizontally centered and shifted to the right by 600
Answers
C.
The parent layout is moved 600 to the top left and right
C.
The parent layout is moved 600 to the top left and right
Answers
D.
is horizontally centered and shifted 600 to the left
D.
is horizontally centered and shifted 600 to the left
Answers
Suggested answer: B

When a user is traveling by car, a navigation route is planned on the mobile phone, and after getting into the car, the user migrates the mobile phone navigation to the large screen of the car machine. In this scenario, which interface is used to implement cross-device migration?

A.
IAbilityConnection
A.
IAbilityConnection
Answers
B.
IAbilityContinuation
B.
IAbilityContinuation
Answers
C.
AbilityContinuation
C.
AbilityContinuation
Answers
D.
AbilityConnection
D.
AbilityConnection
Answers
Suggested answer: B

When a developer calls HarmonyOS Abi1ity Resources (HAR) in an application module, he or she needs to merge the config.json file of HAP and the config.json file of HAR into a single config.json file when compiling and building a HarmonyS Ability Package (HAP). During the merging process, under what circumstances will the values of tags conflict?

A.
HAP has no label value; The HAR has a tag value, and the value can be B
A.
HAP has no label value; The HAR has a tag value, and the value can be B
Answers
B.
HAP has a label value, and the value is A; HAR has no label value
B.
HAP has a label value, and the value is A; HAR has no label value
Answers
C.
Neither HAP nor HAR had labeled values
C.
Neither HAP nor HAR had labeled values
Answers
D.
HAP has a label value, and the value is A. The HAR has a tag value, and the value can be B
D.
HAP has a label value, and the value is A. The HAR has a tag value, and the value can be B
Answers
Suggested answer: D

A user migrates video from a mobile phone to a smart screen for playback and uses the distributed task scheduling capability of HarmonyOS. Which of the following belongs to the process of opening the smart screen playback software when the mobile phone is migrated in this scenario?

A.
Remote connection
A.
Remote connection
Answers
B.
Global query
B.
Global query
Answers
C.
Remote start
C.
Remote start
Answers
D.
Remote migration
D.
Remote migration
Answers
Suggested answer: D

When the user migrates the video on the mobile phone to the smart screen for playback, there will be a pop-up prompt for the user to confirm whether to start the migration. During the migration process, which of the following methods is first called?

A.
onSaveData()
A.
onSaveData()
Answers
B.
onStartContinuation()
B.
onStartContinuation()
Answers
C.
onRestoreData()
C.
onRestoreData()
Answers
D.
onCompleteContinuation()
D.
onCompleteContinuation()
Answers
Suggested answer: B
Total 705 questions
Go to page: of 71