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

H14-231_V1.0 Questions Bank

Page: 19 / 52
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 73

Inwhat form will the application package of Harmony OS be released and put on the shelves?

Options:

A.

HAR(HarmonyOS Ability Resources)

B.

APP Pack (Application Package)

C.

HAP (HarmonyOS Ability Package)

D.

pack.info

Question 74

When a developer migrates pictures on his mobile phone to a large screen, the interface layout automatically switches from vertical to horizontal; When the image is migrated, the image is migrated from the large screen to the mobile phone, and the interface layout is automatically switched from horizontal to vertical. Excuse me, how did this developer implement this feature?

Options:

A.

Use the setMainRoute() method to specify the forwarding device

B.

Implement the IAbilityContribution interface to enable Ability to support migration

C.

Use the continueAbility() method for fetching

D.

Use the onStart() method to rewrite the migration flow

Question 75

How do I define the permissionscorrectly when a developer needs to customize the permissions for the Harmony OS third-party application?

Options:

A.

"module": {

"reqPermissions": [

{

"name":"com.myability.permission.MYPERMISSION "

"grantMode":"system_grant",

"availableScope": ["signatures"]

}

}

B.

"module": {

"defPermissions": [

"name":"com.myability.permission.INTERNET",

"grantMode":"user_grant"

"availableScope": ["signatures"]

}

}

C.

"module": {

"defPermissions": [

{

"name":"com.myability.permission.INTERNET",

"grantMode":"system_grant"

"availableScope": ["signatures"]

}

}

D.

"module": {

"defPermissions": [

{

"name":"com.myability.permission.MYPERMISSION",

"grantMode":"system_grant"

"availableScope": ["signatures"]

}

}

Question 76

When a developer uses the Text component for development, due to the long length of the input string, the content in the middle of the text needs to be truncated with ellipses. Which of the following codes can be used to achieve the above requirements?

Options:

A.

ohos:truncation_mode=ellipsis_at_start

B.

ohos: truncation_mode=auto_scrolling

C.

ohos:truncation_mode=ellipsis_at_middle

D.

ohos:truncation_mode=ellipsis_at_end

Page: 19 / 52
Total 695 questions