ExamGecko
Home Home / Huawei / H14-231_V1.0

Huawei H14-231_V1.0 Practice Test - Questions Answers, Page 36

Question list
Search
Search

List of questions

Search

Related questions











A HarmamyOS developer created three task distributors, serial task dispatcher_a and dispatcher_b, and a proprietary task dispatcher dispatcher_s. The developer is experiencing a deadlock while using syncDispatch, which of the following causes could cause this phenomenon?

A.
In the task assigned by the dispatcher_a, the task is dispatched by dispatcher_a again
A.
In the task assigned by the dispatcher_a, the task is dispatched by dispatcher_a again
Answers
B.
The thread pool is full
B.
The thread pool is full
Answers
C.
In dispatcher_a assignment tasks, use dispatcher_b to dispatch assignments
C.
In dispatcher_a assignment tasks, use dispatcher_b to dispatch assignments
Answers
D.
On a dedicated thread bound dispatcher_s, use dispatcher_s for syncDispatch
D.
On a dedicated thread bound dispatcher_s, use dispatcher_s for syncDispatch
Answers
Suggested answer: A, D

To test the HarmonyOS Bluetooth Low Energy function, a developer uses a central device to call the startScan() interface and scans for a peripheral device. In order for the central device to complete the data exchange with the peripherals, the developer implemented the following development steps.

A.
GATT connection is successful, and the peripheral device can call the write method to write the eigenvalue data to the central device
A.
GATT connection is successful, and the peripheral device can call the write method to write the eigenvalue data to the central device
Answers
B.
After the central device obtains the peripherals, it calls connect (boolean isAUtoConnect, BlePeripheraCallback callback) to establish a GATT connection with the peripherals
B.
After the central device obtains the peripherals, it calls connect (boolean isAUtoConnect, BlePeripheraCallback callback) to establish a GATT connection with the peripherals
Answers
C.
After the C GATT connection is successful, the central device can call the discoverServices() interface to obtain various data supported by the peripheral equipment
C.
After the C GATT connection is successful, the central device can call the discoverServices() interface to obtain various data supported by the peripheral equipment
Answers
D.
After the GATT connection is started, the developer needs to determine whether the GATT connection is successful based on the serviceDiscoveredEvent(int status) callback result
D.
After the GATT connection is started, the developer needs to determine whether the GATT connection is successful based on the serviceDiscoveredEvent(int status) callback result
Answers
Suggested answer: B, C

A developer uses a task distributor to dispatch tasks 1, 2, and 3. The developer added Task 1 and Task 2 to a task group and used syncDispatchBarrier to set up a task execution barrier on that task group. During execution, the discoverer waits for both task 1 and task 2 to be executed before executing task 3. Based on the above scenario analysis, which of the following task distributors may be used by the developer?

A.
SpecTaskDispatcher
A.
SpecTaskDispatcher
Answers
B.
ParallelTaskDispatcher
B.
ParallelTaskDispatcher
Answers
C.
GlobalTaskDispatcher
C.
GlobalTaskDispatcher
Answers
D.
Serial TaskDispatcher
D.
Serial TaskDispatcher
Answers
Suggested answer: A, B, D

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?

A.
Event A will be delivered immediately
A.
Event A will be delivered immediately
Answers
B.
Event B D will be delivered before Event B
B.
Event B D will be delivered before Event B
Answers
C.
delivers event C when there are no other events
C.
delivers event C when there are no other events
Answers
D.
Event D will be delivered before Event C
D.
Event D will be delivered before Event C
Answers
Suggested answer: A, C, D

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?

A.
If verifyCallingPermission returns a value of 0, the service is not provided
A.
If verifyCallingPermission returns a value of 0, the service is not provided
Answers
B.
If the caller does not have permission, the service will not be provided
B.
If the caller does not have permission, the service will not be provided
Answers
C.
If verifyCallingPermission returns a value of -1. then the service will be provided
C.
If verifyCallingPermission returns a value of -1. then the service will be provided
Answers
D.
If the caller's permission verification is passed, the service will be provided
D.
If the caller's permission verification is passed, the service will be provided
Answers
Suggested answer: B, D

Which of the following options belong to the kernel layer in the HarmonyOS system architecture?

A.
LiteOS
A.
LiteOS
Answers
B.
HDF (Hardware Driver Foundation)
B.
HDF (Hardware Driver Foundation)
Answers
C.
Linux
C.
Linux
Answers
D.
KAL(Kerne1 Abstract Layer)
D.
KAL(Kerne1 Abstract Layer)
Answers
Suggested answer: A, B, C, D

When a developer uses the distributed task scheduling capability of HarmonyOS, which of the following features can be selected by the developer?

A.
Remote start
A.
Remote start
Answers
B.
Remote call
B.
Remote call
Answers
C.
Remote connection
C.
Remote connection
Answers
D.
Migration
D.
Migration
Answers
Suggested answer: A, B, C, D

When using HarmonyOS in distributed terminal scenarios, which of the following capabilities can be used to ensure that the device is safe and reliable?

A.
Zero Trust model
A.
Zero Trust model
Answers
B.
Device Certificate Certification
B.
Device Certificate Certification
Answers
C.
Trusted Execution Environment
C.
Trusted Execution Environment
Answers
D.
Secure Boot
D.
Secure Boot
Answers
Suggested answer: B, C, D

When a user is on a video call,Want to migrate the mobile phone video to the smart screen for playback,When clicking Migrate,Find that the smart screen is already in the optional list,What are the items in the description of the scene?

A.
The mobile phone and the smart screen can be different HUAWEI ID
A.
The mobile phone and the smart screen can be different HUAWEI ID
Answers
B.
embodies the self-discovery function of the distributed soft bus
B.
embodies the self-discovery function of the distributed soft bus
Answers
C.
The mobile phone and the smart screen need to be under the same LAN
C.
The mobile phone and the smart screen need to be under the same LAN
Answers
D.
embodies the characteristics of extremely fast transmission of distributed soft bus
D.
embodies the characteristics of extremely fast transmission of distributed soft bus
Answers
Suggested answer: B, C, D

In the same - Page, which of the following methods can be used to deal with the navigation between different pages?

A.
startAbilityForResult ()
A.
startAbilityForResult ()
Answers
B.
presentForResult ()
B.
presentForResult ()
Answers
C.
present()
C.
present()
Answers
D.
startAbility()
D.
startAbility()
Answers
Suggested answer: B, C
Total 705 questions
Go to page: of 71