Huawei H14-231_V1.0 Practice Test - Questions Answers, Page 40
List of questions
Related questions
When a HarmonyOS developer makes an FA call to PA, the callAbility interface returns the error 'Internal ability not register.', which of the following points needs to be checked correctly?
A HarmonyOS developer created two serial task distributors, dispatchera and dispatcher_b, and also created a proprietary task dispatcher. Which of the following scenarios can cause deadlocks due to improper use of syncDispatch?
Which of the following items is an asynchronous task dispatch method in HarmonyOS threads?
When a developer designs a JavaScript login page, he needs to use Internal Ability to call Data Abiliity to verify the username and password, which of the following can be modified to complete the function?
const ABILITY_TYPE_EXTERNAL=0;
var action=0;
action.bundleName='com.huawei.loginservice'; action.abilityName='com.huawei.loginservice.LoginDataAbility';
action.messageCode=ACTION_MESSAGE_CODE_PLUS;
action.data=actionData;
action.abilityType=ABILITY_TYPE_EXTERNAL; action.syncOption=ACTION_SYNC;
var result=await
FeatureAbility.callAbility(action);
When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component and OFF should be displayed on the closed state component, what are the following options that can meet the requirements?
The developer is developing a ticket booking application, and uses the slide selector Picker to select the starting point of the ticket and writes the following code.
<Picker
ohos:id='$+id:test_picker'
ohos:selected_text_color='#FFFFFF'
ohos:value='55'
ohos:max_value='10'
ohos:selector_item_num='10'
ohos:bottom_line_element='#FFFFFF'
ohos:selected_text_size='16fp'/>
A developer uses ListContainer to create a list component that can be swiped, in order to improve the user experience, it needs to display the rebound effect when swiping to the beginning and end of the list, which of the following options can meet this requirement?
In the game scene, when playing games on the smart screen, you can use the mobile phone as a remote control handle, and with the help of the mobile phone's gravity sensor, acceleration sensor, and touch ability, it provides players with a more convenient and smooth gaming experience. What distributed capabilities are used to use the mobile phone as a remote control controller in this scenario?
When a developer sets a background for a Text component, which of the following methods are correct?
Which of the following prerequisites are required for developers to access the process of another device or call the methods of another device on one device to achieve multi-device collaboration?
Question