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

Viewing page 5 out of 14 pages
Viewing questions 61-75 out of questions
Questions # 61:

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

Options:

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


Expert Solution
Questions # 62:

When creating a test user for a meta-service, you need to select the storage location of the user list

Options:

A.

All sites


B.

China


C.

Russia


D.

Germany


E.

Singapore


Expert Solution
Questions # 63:

If a developer wants to develop a local background music playback function, he needs to implement Page Ability to start Service Ability, which of the following parameters need to be specified when starting?

Options:

A.

Flags


B.

BundleName


C.

AbilityName


D.

DeviceID


Expert Solution
Questions # 64:

Which of the following sorting types does the trusted list of devices found by HarmonyOS Device Manager contain?

Options:

A.

Historically first used


B.

Intelligent Recommendation Mode


C.

History recently used


D.

History is the most used


Expert Solution
Questions # 65:

Which kind of decorator can be used as a page entry component?

Options:

A.

@Component


B.

@Entry


C.

@Preview


D.

@Builder


Expert Solution
Questions # 66:

Whichof the following does not belong to the application framework layer in theHarmony OS system architecture?

Options:

A.

UI


B.

Distributed data management


C.

User Program Framework


D.

Ability


Expert Solution
Questions # 67:

What development steps does a developer use to develop an application with a UI?

Options:

A.

Create a project


B.

Run the program


C.

Design interface


D.

Implement the function


Expert Solution
Questions # 68:

There are two Text components in the Row component, if the justifyContent alignment method is used, which of the following properties can be aligned to the left and right ends

Options:

A.

FlexAlign.Start


B.

FlexAlign.SpaceEvenly


C.

FlexAlign.End


D.

FlexAlign.SpaceBetween


Expert Solution
Questions # 69:

Which of the following properties about Web components is incorrect?

Options:

A.

Set whether to enable the access of the Chinese system of the application, which is enabled by default. Access to files in the rawfile path in $rawfile(filepath/filename) is not affected by this attribute.


B.

imageAccess specifies whether to allow automatic loading of image resources, which is allowed by default.


C.

javaScriptAccess is set to whether to allow JavaScript script execution, which is not allowed by default.


D.

zoomAccess sets whether to support gesture zoom, which is allowed by default.


Expert Solution
Questions # 70:

In order to control the access of a specific interface to the caller, an application confirms that the visitor has the required permissions through verifyCallingPermission. Which of the following descriptions is correct?

Options:

A.

If verifyCallingPermission returns a value of 0, the service is not provided


B.

If the caller does not have permission, the service will not be provided


C.

If verifyCallingPermission returns a value of -1. then the service will be provided


D.

If the caller's permission verification is passed, the service will be provided


Expert Solution
Questions # 71:

The library file is the third-party code that the application depends, which are the correct ways to use the following library files?

Options:

A.

Create a new module with the source code of the library file as a whole, and the entry directly references the classes in the library file


B.

Put the library files in the libs directory in the form of jar, so, etc., and then reference the dependencies{Implementation project(:mylibrary)} through the build.gradle under the project

If the required library files exist in the maven repository, you can configure the project's build.gradle as follows to useRepositories {.}


C.

Maven{

Url 'XXX'

// Add a Mavenrepository address, which can be a local Maven address or a remote Maven address

}


D.

Put the library file in the libs directory in the form of jar.so, and then refer to the dependencies (Implementationproject(: mylibrary)) through the build.gradle of the application module.


Expert Solution
Questions # 72:

If a developer needs to use the JavaScript UI framework to develop an application, which of the following components can the developer choose?

Options:

A.

Container component


B.

Media Component


C.

Foundation Components


D.

Canvas component


Expert Solution
Questions # 73:

For example, if you want to implement an advertising pop-up window now, including information such as pictures and text, you can use the following pop-up window

Options:

A.

AlertDialog


B.

@CustomDialog


C.

TextPickerDialog


D.

TimePickerDialog


Expert Solution
Questions # 74:

When the state data of @State modification is modified, the () method of the component will be triggered to update the UI interface

Options:

A.

build method


B.

onPageShow method


C.

aboutToAppear method


D.

onStart method


Expert Solution
Questions # 75:

A HarmonyOS developer uses the EventHandler mechanism to process 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.INTERMEDIATE Event B: Priority.HIGH Event C: Priority.IDLEWhich of the following statements about the above events are correct?

Options:

A.

Event Awill be delivered immediately


B.

EventB D will be delivered before Event B


C.

delivers event C when there are no other events


D.

EventD will be delivered before Event C


Expert Solution
Viewing page 5 out of 14 pages
Viewing questions 61-75 out of questions