New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Huawei Certification Changed H14-231_V1.0 Questions

Page: 39 / 52
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 153

A developer is writing a piece of code to control the access rights of an Ability

Apps with the ohos.permission.CAMERA permission can access this ability. The relevant code completed by the developer in config.json is as follows:

"abilities": [

{

"name": ". MainAbility",

"description":

"Sstring:description_main_abi1ity",

"icon" : "$media:hiworld.png",

"label": "HiCamera",

"1aunchType": "standard",

"orientation": "portrait",

"visible": false,______________________________

} ]

Which of the following should the developer add to the horizontal line?

Options:

A.

"permissions": [

"ohos.permission.CAMERA" ]

B.

"defPermissions":[

{"ohos.permission.CAMERA"}]

C.

"reqPermissions": [ {

"ohos.permission.CAMERAā€¯}]

D.

"permissions": [

"ohos.permission.LOCATION"]

Question 154

Which of the following modules needs to be imported for page routing?

Options:

A.

import prompt from '@ohos.prompt'

B.

import router from '@ohos.router'

C.

import Notification from'@ohos.notification'

D.

import window from '@ohos.window'

Question 155

Options:

A.

Resource is a resource reference type that sets the value of a component's properties

B.

refers to application resources in the form of "Sr('app.type.name')", and the app represents the app

resources directory, type represents the resource type (or the location where the resource is stored)

C.

Resource supports all data types

D.

system can load the appropriate Resource resources according to the current configuration, for example, developers can render different layout effects according to the screen size, or provide different strings according to the language settings

Question 156

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

Page: 39 / 52
Total 695 questions