Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

How to realize distributed communication betweentwo existing Harmony OS devices?

A.

Configure the ohos.permission.lNTERNEl permission in the configuration file

B.

Configure ohos.permission.DISTRIBUTED_DATASYNC permission in the configuration file and dynamically request this permission again

C.

Configure ohos.permission.DISTRIBUTED_DATASYNC permissions in the configuration file

D.

Configure the ohos.permission.IlNTERNET permission in the configuration file and dynamically request this permission again

In the JavaScript UI framework, which layer is used to provide animation parsing, DOM (Document Object Model) tree construction, layout calculation, rendering command construction and drawing, event management, etc.?

A.

Engine Layer

B.

Platform adaptation layer

C.

Front-end frame layer

D.

Application layer

A developer needs to cancel a task, but part of the code segment he wrote was deleted by mistake. The remaining codes are as follows, with the missing codes indicated by the dash:

TaskDispatcher dispatcher =

getUlTaskDispatcher();

Revocable revocable =

________________________(new Runnable(){

@Overide Public void run(){

HiLog.info(L . ABEL_ _LOG,"delay dispatch");

}

},10);

Boolean revoked = revocable.revoke();

HiL og.info(L _ABEL_ LOG),"%{public}b" ,revoked);

Which of the following might be missing pieces in the above code?

A.

dispatcher.delayDispatch

B.

dispatcher.asyncDispatch

C.

dispatcher.syncDispatch

D.

dispatcher.createDispatchGroup

Which of the following is the callback behavior of the Page Ability lifecycle that can destroy the page?

A.

Page is no longer visible to the user, and the system will call onBackground() to notify the developer to release the corresponding resources

B.

triggers onStop() to notify the user to release system resources

C.

takes the Page out of focus and calls onInactive().

D.

Trigger onDestroy() to release system resources

The key generated by the developer contains the public key and the private key used in asymmetric encryption, and in what format is the key stored in the key file?

A.

cer

B.

csr

C.

p12

D.

p7b

How should a developer choose the Debug Type if he needs to debug JAVA code separately in a JS+JAVA hybrid project?

A.

Native only

B.

Dual (JS + JAVA)

C.

JAVA only

D.

Js only

If a developer wants to develop a file background download function, there needs to be a Page Ability to provide UI pages, and a Service Ability to provide the background file download function. Which of the following can invoke Service Ability in Page Ability?

A.

connectPageAbility(intent,connection)

B.

connectAbility(intent, connection)

C.

onConnect

D.

connectServiceAbility(intent, connection)

Which of the following does not belong to the system service layer in the HarmonyOS system architecture?

A.

Distributed data management

B.

Ability

C.

Distributed task scheduling

D.

Distributed soft bus

What lifecycle processes will be triggered when a developer creates a Page instance and lets the instance be displayed in the foreground?

A.

onStart()→onActive()

B.

onStart()→onActive()→onInactive()

C.

onBackground()→onForeground()→onStop()

D.

onActive()→onInactive()

In order to cope with complex application business logic, a developer needs to create multiple threads to perform multiple tasks. In this case, the code is complex and difficult to maintain, and the interaction between tasks and threads becomes more complex. To solve this problem, which of the following interfaces can the developer use to distribute different tasks?

A.

TaskDispatcher

B.

Group

C.

lAbilityMlanager

D.

BackgroundTaskManager

If there are 3 Ability sharing a Service instance, how can I exit the Service instance?

A.

Ability does not need to quit

B.

All abilities bound to the Service instance are exited

C.

has 1 Ability to exit

D.

has 2 Ability exits

fter a developer sets :ohos:layout_alignment="horizontal_center" in the Text component, he writes: text.setMarginRight (600) in the code, where is the Text displayed in the parent layout?

A.

is horizontally centered and shifted to the right by 600

B.

The parent layout moves 600 to the top left and right

C.

level is centered

D.

is horizontally centered and shifted 600 to the left

What is the process of cross-terminal migration from an application on HarmonyOS device A to the application on device B by calling the distributed task scheduling capability to continue sbility?

A.

Preparation for circulation

B.

Circulation

C.

End of circulation

D.

The circulation is complete

If a developer wants to develop a page with a tab function, the developer can use the TabList component provided by HarmonyOS. If you want to set the selected tab to be marked by underlining at the bottom, which of the following codes is correct?

A.

ohos:tab indicator type="bottom_line"

B.

ohos:tab_indicator_type="invisible"

C.

ohos:tab_indicator_type="oval"

D.

ohos:tab_indicator_type="left_line"

Which of the following fields is not within the scope of permission?

A.

privileged

B.

signature

C.

restricted

D.

deivced