Pass the Huawei HCIP-HarmonyOS H14-231_V1.0 Questions and answers with CertsForce

Viewing page 2 out of 14 pages
Viewing questions 16-30 out of questions
Questions # 16:

When a developer designs a navigation application and needs the system to provide accurate positioning, which subsystem will be used?

Options:

A.

Wearable business subsystem


B.

Location Services Subsystem


C.

Multi-mode input subsystem


D.

Media subsystem


Expert Solution
Questions # 17:

When a developer needs to specify the exact coordinates of the x-axis and y-axis of a sub-component when laying out a component, which layout can be used to achieve this function?

Options:

A.

DirectionalLayout


B.

PositionLayout


C.

DependentLayout


D.

StackLayout


Expert Solution
Questions # 18:

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?

Options:

A.

Use RequestParam.SCENE_TRAJECTORY_TRACKINGsettings to locate the scene


B.

Apply for the ohos.permission.LOCATION permission only in config.json


C.

dynamically requests user authorization only in the codeohos.permission.LOCATION


D.

Use RequestParam.SCENE_NO_POWER settings to locate the scene


Expert Solution
Questions # 19:

When a developer develops a HarmomyOSapplication, if a Text component is used as the title bar of the page, and its width is set to match_parent and its height is set to 50vp, how can the text content in the Text be centered when setting its properties in the layout file?

Options:

A.

ohos:thorizontal_center=true"


B.

ohos:center_inparent="true"


C.

ohos:layout_alignment=center


D.

ohos:text_alignment=center


Expert Solution
Questions # 20:

In the declarative development paradigm, which of the following decorator decorated state variables needs to be initialized locally, and the initialized value can be overridden by the construction parameters?

Options:

A.

@State


B.

@ObjectLink


C.

@StorageLink


D.

@Prop


Expert Solution
Questions # 21:

If a developer needs to use asyncDispatchBarrier to set up a barrier asynchronously, in this scenario, in order to separate different task groups, the developer can choose which of the following task dispensers?

Options:

A.

GlobalTaskDispatcher


B.

SpecTaskDispatcher


C.

SerialTaskDispatcher


D.

ParallelTaskDispatcher


Expert Solution
Questions # 22:

When the user clicks on a song from the music list page and jumps to the playback interface of the song, the principle is that the page route routes to the destination page according to which of the following?

Options:

A.

router.push


B.

router.back


C.

uri


D.

intent


Expert Solution
Questions # 23:

The user migrates the video on the mobile phone to the smart screen for playback, and after the mobile phone saves the data, the smart screen calls back which of the following methods does the user recover the data?

Options:

A.

onStartContinuation


B.

onRestoreData


C.

onCompleteContinuation


D.

onSaveData


Expert Solution
Questions # 24:

When a developer migrates pictures on his mobile phone to a large screen, the interface layout automatically switches from vertical to horizontal; When the image is migrated, the image is migrated from the large screen to the mobile phone, and the interface layout is automatically switched from horizontal to vertical. Excuse me, how did this developer implement this feature?

Options:

A.

Use the setMainRoute() method to specify the forwarding device


B.

Implement the IAbilityContribution interface to enable Ability to support migration


C.

Use the continueAbility() method for fetching


D.

Use the onStart() method to rewrite the migration flow


Expert Solution
Questions # 25:

Now a Text component is used as the title of a page, and the Text needs to be set to be invisible, but it still occupies the current layout space, which of the following is correct?

Options:

A.

ohos:visibility="invisible"


B.

text.setVisibility(Component.VISIBLE);


C.

ohos:visibility="visible"


D.

ohos:visibility="hide"


Expert Solution
Questions # 26:

A HarmonyOS developerdevelops an application based on distributed data services, and the developer uses device A, device B, and device C to test the functionality of the application in a distributed scenario. In the test, after device A successfully adds, deletes, and modifies data, device B and device C cannot read the updated data immediately, but after a certain time window, the data of the three devices will reach the same state. In the preceding scenario, what kind of consistency does the application conform to in a distributed database?

Options:

A.

Weak consistency


B.

Strong consistency


C.

Eventual consistency


D.

Process consistency


Expert Solution
Questions # 27:

When a developer installs HAP (HarmonyOSAbility Package), what is the reason for the "STRING LENGTH ERROR" message?

Options:

A.

Signature information is not configured


B.

Package information exceeds the maximum length


C.

The device typeconfigured in config.json does not match the debugging device type


D.

The compilation and build plugin version does not match the Gradle version


Expert Solution
Questions # 28:

The key generated by the developer contains the public key and the private key used in asymmetric encryption, and in what format is the key stored in the key file?

Options:

A.

cer


B.

csr


C.

p12


D.

p7b


Expert Solution
Questions # 29:

How to realize distributed communication betweentwo existing Harmony OS devices?

Options:

A.

Configure the ohos.permission.lNTERNEl permission in the configuration file


B.

Configure ohos.permission.DISTRIBUTED_DATASYNC permission in the configuration file and dynamically request this permission again


C.

Configure ohos.permission.DISTRIBUTED_DATASYNC permissions in the configuration file


D.

Configure the ohos.permission.IlNTERNET permission in the configuration file and dynamically request this permission again


Expert Solution
Questions # 30:

What is the process of cross-terminal migration from an application on HarmonyOS device A to the application on device B by calling the distributed task scheduling capability to continue sbility?

Options:

A.

Preparation for circulation


B.

Circulation


C.

End of circulation


D.

The circulation is complete


Expert Solution
Viewing page 2 out of 14 pages
Viewing questions 16-30 out of questions