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: 12 / 14
Total 695 questions

A HarmonyOS developer created two serial task distributors, dispatchera anddispatcher_b, and also created a proprietary task dispatcher. Which of the following scenarios can cause deadlocks due to improper use of syncDispatch?

A.

On a dedicated thread, dispatchers are used forsyncDispatch

B.

uses dispatcherb to dispatch tasks synchronously in dispatchera tasks

C.

In the tasks dispatchedby dispatcher_a, the dispatcher_a is used again to dispatch the task

D.

The thread pool is full

If the HarmonyOS user displays the navigation information on the mobile phone and the smart watchat the same time, if the smart watch is out of power, causing the navigation information to stop displaying, which callback will the navigation app on the mobile phone distribute to receive the termination notification?

A.

onCompleteContinuation

B.

onRemoteTerminated

C.

onSaveData

D.

onRestoreData

In the distributed artboard scenario, each device can be displayed synchronously with other devices while writing, what distributed capabilities are used in this scenario?

A.

Distributed Data Service

B.

Virtualization of distributed devices

C.

Distributed file services

D.

Distributed soft bus

When a developer wants to make the vertical scrolling layout take effect when using the ScrollView control, how should the width of the control corresponding to the layout be set?

A.

match_child

B.

Fixed width value

C.

match_parent

D.

match_content

If a developer uses custom components when developing a HarmonyOS application, what are the correct descriptions of custom components below?

A.

Add tag elements such as styleable and item to values/attrs.xml

B.

In the constructor with the AttrSet parameter of the custom component, useattrSet.getAttr("XxX").get().getStringValue() to get the property

C.

Add xmlns:app="http://schemas.huawei.com/apk/ res/ohos"to the layout.xml of the component definition

D.

In the constructor of the custom component, call array.getlntegor(ResourceManager.styleab1e.***,100)to get the property

Which of the following development languages can a developer use when developing a HarmonyOS smart screen application?

A.

JavaScript

B.

Python

C.

Andriod

D.

Java

If a HarmonyOSapplication developer wants to achieve the following effects, which of the following combinations can achieve the effect?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

A developer called the getDefaultHost(Context context) interface of BluetoothHost to obtain a Bl1uetoothHost instance for managing local Bluetooth operations. The developer uses the following development steps to implement Bluetooth pairing:

1Turn on Bluetooth.

2Scan Bluetooth.

3. Initiate pairing.

Which of the following statements about steps 1, 2, and 3 is true?

A.

calls startBtDiscovery()to complete step 2

B.

The order in which steps 2 and 3 are implemented can be reversed

C.

calls the enableBt()interface to complete step 1

D.

calls startPair()to complete step 3

The maximum length limit of the preference key is ( ) bytes

A.

60

B.

70

C.

80

D.

90

Which of the following descriptions is wrong when it comes to the simultaneous development of JS (JavaScript) and Java languages in HarmonyOS application development?

A.

Use Java to develop the UI of the application

B.

JS FA calls Java PA

C.

Use JS to develop the logic of the application

D.

Java FA (Feature Ability) calls JS PA (Particle Ability).

When a developer develops a background music playback software, he needs to use Service Ability, what are the following correct descriptions of the use process of Service Ability?

A.

Register the Ability in the application manifest file

B.

When you use the connectAbility() method to connect to a Service, you need to pass in the Intent of the target Service

C.

onConnect() needs to return an IRemoteObject object back

D.

Use setElement() of the Intent to set the target service information

What functions does HarmonyOS provide in app data management to enable developers to seamlessly connect app data between different devices?

A.

Data search service

B.

Local application data management

C.

Data storage management

D.

Distributed data services

After the release of the open beta version, how do the invited test users experience?

A.

Go to AppGallery and search for the meta-service to be experienced

B.

Enter the servicecenter, turn on the "Developer Testing" switch, and find the meta-service to be experienced in the "Service Testing" at the bottom

C.

Enter the ecological market and search for meta-services to be experienced

D.

Enter the service center and search for the meta-service to be experienced

A HarmonyOS developer uses the EventHandler mechanism to handle four events: A, B, C, and D, where event D retains the default priority, and the priority properties of the other three events are set as follows:

Event A: Priority.IMMEDIATE

Event B: Priority.HIGH

Event C: Priority.IDLE

Which of the following accounts of the above events is correct?

A.

Event A will be delivered immediately

B.

Event B D will be delivered before Event B

C.

delivers event C when there are no other events

D.

Event D will be delivered before EventC

When a developer uses the Text component for development, because the length ofthe input string is too long, which of the following codes can be used to display the entire content?

A.

ohos:truncation_mode="none"

B.

ohos:truncation_mode="ellipsis_at_start"

C.

ohos:auto_font_size="true"

D.

ohos:multiple_lines="true"