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

Viewing page 9 out of 14 pages
Viewing questions 121-135 out of questions
Questions # 121:

In order to put a series of related download tasks into a task group, a developer uses the following code:

String dispatcherName =

"parallelTaskDispatcher";

TaskDispatcher dispatcher =

createParallelTaskDispatcher(dispatcherName,TaskPriority.DEFAULT);

Group group

=dispatcher.createDispatchGroup();

dispatcher.asyncGroupDispatch(group,new

Runnable(){

@Override

public void run(){

HiLog.info(LABEL_LOG,"download taskl is

running ");

}

});

dispatcher.groupDispatchlotify(group,new

Runnable(){

@0verride

public void run(){

HiLog.info(LABEL_L0G,"the close task2 is

running");

}

});

dispatcher.groupDispatchlotify(group,new

Runnable(){

@Override

public void run(){

HiLog.info(LABEL_L0G, "the close task is

running after all tasks in the group are

completed");

}

});

If the developer runs this code, which of the following results might occur?

Options:

A.

the close task is running after all tasks in the group are completed download task1 is running download task2 is running


B.

download task1 is running the close task is running after all tasks in the group are completed dowmload task2 is running


C.

download task1 is running download task2 is running the close task is running after all tasks in the group are completed


D.

download task2 is running download task1 is running the close task is running after all tasks in the group are completed


Expert Solution
Questions # 122:

If a reading app uses the language recognition capability provided by HarmonyOS, the app can automatically read a novel.

Options:

A.

True


B.

False


Expert Solution
Questions # 123:

A developer is using CommonEventData to encapsulate information about ordered public events for data processing when publishing, distributing, and receiving. What do I need to pay attention to when developing?

Options:

A.

data is the result data of an ordered public event


B.

intent is not allowed to be empty


C.

intent—must be empty


D.

codeis the result code of an ordered public event


Expert Solution
Questions # 124:

There is an application A that occupies a large amount of memory and a background service B on the mobile phone, but there is no binding relationship between the two. What are the following scenarios that may cause Service B to be stopped?

Options:

A.

App A calls onCommand() to stop service B


B.

applies A to call stopAbility() to stop service B


C.

service B calls terminateAbility() by itself


D.

The system is tight on memory and slow to respond


Expert Solution
Questions # 125:

If an engineer uses the two-way preview function of JavaScript in DevEco Studio, which of the following items can be supported after the function is enabled?

Options:

A.

Component Tree


B.

Code Editor


C.

UI interface


D.

Terminal


Expert Solution
Questions # 126:

Which of the following subsystems in HarmonyOS belongs to the Enhanced Software Services subsystem?

Options:

A.

Wearable business subsystem


B.

Sign-in service subsystem


C.

Smart large-screen business subsystem


D.

Media subsystem


Expert Solution
Questions # 127:

What are the following types of task dispensers that HarmonyOS provides for developers?

Options:

A.

Global Concurrent Task Dispenser


B.

Concurrent task distributor


C.

Serial task dispenser


D.

Proprietary task distributor


Expert Solution
Questions # 128:

A Page Ability (hereinafter referred to as "Page") may consist of one or more AbilitySlice, which refers to the sum of a single page of an application and its control logic.

Options:

A.

True


B.

False


Expert Solution
Questions # 129:

A developer needs to use the emulator in DevEco Studio, click to log in to the emulator and enter your HUAWEI ID, and the browser will directly jump to the real-name authentication interface. What are the reasons for this problem?

Options:

A.

has just completed real-name authentication, but the authentication has not yet taken effect


B.

used the Chrome browser


C.

HUAWEI ID does not have real-name authentication

D The account is not registered


Expert Solution
Questions # 130:

When testing the Bluetooth Low Energy feature of HarmonyOS, a developer needs to make the central device perform Bluetooth scanning. Which of the following descriptions of the developer's actions are correct?

Options:

A.

Get scan filter, if the filter isempty, it is not used to scan without filter


B.

calls startScan() to start scanning the Bluetooth device


C.

Before performing Bluetooth scanning, it is necessary to inherit the advertiseCallback class to implement startResultEvent

Callback, which is used to receive scan results


D.

Call the BleCentralManager(BleCentralManagerCal1lback callback)API to obtain the device management object


Expert Solution
Questions # 131:

What are the common problems in uploading software packages during the listing process of HarmonyOS applications/metaservices?

Options:

A.

The release profile file in the package does not match the application of the currently uploaded package


B.

The release certificate in the software package does not match the release certificate in the release profile file


C.

Package Unsigned Indicates Illegal Package


D.

The certificate used in the package has expired, and the expired certificate has expired


Expert Solution
Questions # 132:

JavaScriptUl does not support async and await syntax.

Options:

A.

True


B.

False


Expert Solution
Questions # 133:

HarmonyOS maintains a stack of AbilitySlice instances for each Page, and each AbilitySlice instance that enters the foreground will be added to the stack.

Options:

A.

True


B.

False


Expert Solution
Questions # 134:

The main axis of the Row container is horizontal, and the cross axis is vertical, and its parameter type is VerticalAlign, and VerticalAlign defines the following types?

Options:

A.

Top


B.

Bottom


C.

Start


D.

End


E.

Center


Expert Solution
Questions # 135:

Which of the following information is included in the module.json5 configuration file?

Options:

A.

ability


B.

Module Name


C.

The version number of the app


D.

Module type


Expert Solution
Viewing page 9 out of 14 pages
Viewing questions 121-135 out of questions