Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Huawei H14-231_V1.0 - HCIP-HarmonyOS Application Developer V1.0

Page: 10 / 14
Total 695 questions

Which of the following belongs to the lifecycle of starting a Service Ability?

A.

onStart()→onComrand()→onBackground()→onStop()

B.

onStart()→onCommand()—onForeground()→onBackground()→onStop()

C.

onStart()→onCommand()→onStop()

D.

onStart()→onCommand()→onBackground()→onDisconnect()→onStop()

Thedefault size of shared memory in Harmony OS is ?

A.

8M

B.

4M

C.

2M

D.

1M

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

B.

IAbilityContinuation

C.

AbilityContinuation

D.

AbilityConnection

Which of the following is the callback behavior of the Page Ability lifecycle that can destroy the page?

A.

Page is no longer visible to the user, and the system will call onBackground() to notify the developer to release the corresponding resources

B.

triggers onStop() to notify the user to release system resources

C.

takes the Page out of focus and calls onInactive().

D.

Trigger onDestroy() to release system resources

If there are 3 Ability sharing a Service instance, how can I exit the Service instance?

A.

Ability does not need to quit

B.

All abilities bound to the Service instance are exited

C.

has 1 Ability to exit

D.

has 2 Ability exits

In order to ensure better responsiveness of the application, developers need to use the task distributor to design the priority of the task.

A.

DEFAULT

B.

MIDDLE

C.

HIGH

D.

LOW

When a HarmonyOS app developer uses the form container, which of the following elements can be submitted and reset?

A.

Menu

B.

List

C.

Input

D.

Image

The developer uses device A (local device) to control device B (remote device) to open the album, which distributed task scheduling capability is used in this scenario?

A.

Enable remote FA (Feature Ability).

B.

Connect to a remote PA (Particle Ability).

C.

Start the remote PA (Particle Ability).

D.

Particle Ability (PA)

Developers will use the UI framework provided by Harmony OS when developing mobile phone pages, which of the following is not a UI framework?

A.

layout

B.

Cross-device call

C.

Graphical controls

D.

Window Management Framework

When a developer designs a PA (Particle Ability) application, which of the following development steps can be omitted?

A.

Run the program

B.

Implement the function

C.

Create a project

D.

Design interface

If a developer wants to develop a page with a tab function, the developer can use theTabList component provided by HarmomyOS. If you want to set the horizontal center alignment of text, which of the following codes is correct?

A.

ohos:text_alignment=start

B.

ohos:text_alignment=bottom

C.

ohos:text_alignment=vertical_center

D.

ohos:text_alignment=horizontal_center

A developer uses the threading function of HarmonyoS and writes the following code, which is the correct order of the execution result of the code?

TaskDispatcher globalTaskDispatcher =

getGlobalTaskDispatcher(TaskPriority.DEFAULT);

globalTaskDispatcher.syncDispatch(new

Runnable(){

@Override

public void run(){

HiLog.info (LABEL_LOG,"sync task1 run");//1

HiLog.info (LABEL_LOG, "after sync task1");//2

globalTaskDispatcher.syncDispatch(new

Runnable(){

@0verride

pub1ic void run(){

HiLog.info(LABEL_LOG,"sync task2 run"); 3

}

});

HiLog.info (LABEL_LOG, "after sync task2");//4

A.

2→1→3→4

B.

1→2→3→4

C.

2→1→4→3

D.

4→1→2→3

When a developer uses Page Ability to open a ServiceAbility, he needs to pass parameters through Intent, at what stage is the parameter obtained in the whole process null?

onStart( ) in A S ervice.

A.

bility

B.

PageAbility

C.

ServiceAbility

D.

ServiceAbility

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

A.

Wearable business subsystem

B.

Location Services Subsystem

C.

Multi-mode input subsystem

D.

Media subsystem

If a developer needs to add the Banner function to a page, which of the following components is most suitable for implementing the function?

A.

ScrollView

B.

PageSlider

C.

Text

D.

ListContainer