Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free Huawei H14-231_V1.0 Practice Exam with Questions & Answers

Questions 1

Ability and InternalAbility are two different ways to call PA (ParticleAbility) by FA (FeatureAbility).

Options:
A.

Ability has an independent life cycle

B.

Theclass inherited byB Ability is ohos.aafwk.ability.Ability

C.

Ability does not need to be registered with the FA

D.

internalAbility can be called by other FAs

Huawei H14-231_V1.0 Premium Access
Questions 2

An application needs to obtain the Wi-Fi connection status of the current device and check whether the Wi-Fi is turned on. Which of the following permissions is not required in order to do this?

Options:
A.

ohos.permission.LOCATION

B.

ohos.permission.MEDIA_LOCATION

C.

ohos.permission.GET_WIFI_INFO

D.

ohos.permission.ACTIVITY MOTION

Questions 3

When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component and OFF should be displayed on the closed state component, what are the following options that can meet the requirements?

Options:
A.

Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch);

btnSwitch.setStateOffText("OFF");

btnSwitch.setStateONText("ON");

B.

ohos:text_state_off="ON"

ohos:text_state_on="OFF">

C.

Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch);

btnSwitch.setStateOffText("ON");

btnSwitch.setStateONText("OFF");

D.

ohos:text_state_off="OFF"

ohos:text_state_on="ON">

Questions 4

In HarmonyOS, Intents are the carriers for transferring information between objects, and which of the following items can be set through Intents?

Options:
A.

Deviceld

B.

BundleName

C.

AbilityName

D.

Action

Questions 5

There are two Text components in the Row component, if you use justifyContent alignment, which of the following properties can achieve left and right alignment?

Options:
A.

FlexAlign.Start

B.

FlexAlign.SpaceEvenly

C.

FlexAlign.End

D.

FlexAlign.SpaceBetween

Questions 6

In the following scenarios, which ones use the voice broadcast function?

Options:
A.

Automatically read aloud e-books

B.

Regular weather broadcast

C.

Convert speech to text

D.

Navigation system real-time voice report on the road ahead

Questions 7

HarmonyOSadopts a multi-core design, which supports the selection of suitable OS kernels for different resource-constrained devices

Options:
A.

LiteoS-M

B.

Linux

C.

UNIX

D.

LiteOS-A

Questions 8

DevEco studio provides remote simulator developers to run and debug HMOS applications, which of the following limitations will the remote simulator have?

Options:
A.

Each session lasts for1 hour

B.

Real-name login is required

C.

Automatically releases resources when it expires

D.

Automatic remote simulation by default

Questions 9

Which of the following belong to the lifecycle callback method of Page Ability?

Options:
A.

onStart

B.

onForeground

C.

onActive

D.

onCreate

Questions 10

A developer needs to use the current data network for socket data transmission, and the development process involves the following steps:

1。Send data with sockets.

2。Bind the network with NetHandle.bindSocket().

3。Call NetManager.getDefaultNet() to get the default data network.

4。Call NetManager.getInstance(Context9) to get the instance object of network management.

When the developer combed through the development steps, the above steps were sorted according to the order in which the features were completed in the code. Which of the following is the correct order?

Options:
A.

4→1→2→3

B.

4→2→1→3

C.

4→3→2→1

D.

2→1→4→3

Questions 11

Regarding the ResponseCode returned by the request, which of the following descriptions is incorrect?

Options:
A.

AResponseCode.OK has a value of 200, indicating that the request is successful. It is generally used for GET and POST requests.

B.

Avalue of 404 for the B ResponseCode.NOT_FOUND indicates that the server was unable to locate the resource (web page) based on the client's request.

C.

Avalue of 500 for the C ResponseCode.INTERNAL_ERROR indicates an internal server error and the request could not be completed.

D.

Avalue of 404 indicates that the resource requested by the client no longer exists.

Questions 12

What is the API for lottie to subscribe to events?

Options:
A.

lottie.setSpeed()

B.

lottie.setDirection()

C.

animationltem.addEventListener()

D.

animationltem.removeEventListener()

Questions 13

Which of the following accounts does the authentication service support?

Options:
A.

WeChat

B.

QQ

C.

HUAWEI ID

D.

Alipay

Questions 14

Which of the following features of the HarmonyOS distributed database are correctly described?

Options:
A.

depends on the cloud

B.

shields different physical transmission channels

C.

The synchronization logic is completely transparent

D.

The interface is simple, and the backup and encryption features are simple and configurable

Questions 15

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?

Options:
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