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

Huawei H14-231_V1.0 Online Access

Page: 24 / 52
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 93

Which of the following modules does a developer need to call to check whether the HarmonyOS cellular data service is enabled?

Options:

A.

@ohos.telephony.sms

B.

@ohos.telephony.data

C.

@ohos.telephony.sim

D.

@ohos.telephony.call

Question 94

A developer uses the threading function of HarmonyoS and writes the following code, which is the correct order of the execution result of the code?

TaskDispatcher globalTaskDispatcher =

getGlobalTaskDispatcher(TaskPriority.DEFAULT);

globalTaskDispatcher.syncDispatch(new

Runnable(){

@Override

public void run(){

HiLog.info (LABEL_LOG,"sync task1 run");//1

HiLog.info (LABEL_LOG, "after sync task1");//2

globalTaskDispatcher.syncDispatch(new

Runnable(){

@0verride

pub1ic void run(){

HiLog.info(LABEL_LOG,"sync task2 run"); 3

}

});

HiLog.info (LABEL_LOG, "after sync task2");//4

Options:

A.

2→1→3→4

B.

1→2→3→4

C.

2→1→4→3

D.

4→1→2→3

Question 95

What is the "1" in HarmonyOS's "1+8+N" strategy?

Options:

A.

mobile phone

B.

Tablet

C.

Watch

D.

Smart screen

Question 96

Which of the following interfaces can repeatedly call a function with a fixed time delay between each call?

Options:

A.

setTimeout?

B.

setlnterval

C.

clearTimeout

D.

clearlnterval

Page: 24 / 52
Total 695 questions