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

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

Question list
Search
Search

List of questions

Search

Related questions











When a developer wants to make the vertical scrolling layout take effect when using the ScrollView control, how should the width of the control corresponding to the layout be set?

A.
match_child
A.
match_child
Answers
B.
Fixed width value
B.
Fixed width value
Answers
C.
match_parent
C.
match_parent
Answers
D.
match_content
D.
match_content
Answers
Suggested answer: B, C

When a developer is developing an application, he creates a Checkbox component and writes the following code, which of the following descriptions of the code segment is correct?

<checkbox ohos:id='$+ id:check_box'

ohos:height='match_content'

ohos:width='match_content'

ohos:text='This is a checkbox'

ohos:marked='false'

ohostext_color_on=''#000000''

ohos:text_color_off='#FFFFFF'

ohos:text_size='#000000'/>

A.
sets the selected text color to black
A.
sets the selected text color to black
Answers
B.
sets the initial state to Selected
B.
sets the initial state to Selected
Answers
C.
Set the text font size to 20fp
C.
Set the text font size to 20fp
Answers
D.
sets the color of unselected text to black
D.
sets the color of unselected text to black
Answers
Suggested answer: A, C

A developer designed an application, when the user receives a notification, if the user clicks on the notification, it will jump to a new page, and if the notification is not clicked, the new page will not be triggered.

A.
NotificationSlot
A.
NotificationSlot
Answers
B.
triggerlntentAgent
B.
triggerlntentAgent
Answers
C.
setName
C.
setName
Answers
D.
setDescription
D.
setDescription
Answers
Suggested answer: C, D

Distributed task scheduling builds a unified distributed service management (discovery, synchronization, registration, and call) mechanism based on technical characteristics such as distributed soft bus, distributed data management, and distributed profile.

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

Which of the following methods can be used to deal with navigation within the same page?

A.
Present()
A.
Present()
Answers
B.
PresentForResult()
B.
PresentForResult()
Answers
C.
StartAbility()
C.
StartAbility()
Answers
D.
StartAbilityForResult()
D.
StartAbilityForResult()
Answers
Suggested answer: A, B

If a developer wants to use the distributed capabilities of HarmonyOS, which of the following options can the developer choose?

A.
Distributed device virtualization
A.
Distributed device virtualization
Answers
B.
Distributed data management
B.
Distributed data management
Answers
C.
Distributed soft bus
C.
Distributed soft bus
Answers
D.
Distributed task scheduling
D.
Distributed task scheduling
Answers
Suggested answer: A, B, C, D

When developing an application, a developer uses the WLANP2P function to realize point-to-point data transmission between devices. The functionality of the application is as follows: Function 1: Discover the peer device. Function 2: Create and remove groups. Function 3: Initiate a connection to the peer device. Which of the above features is correct in the following descriptions?

A.
To implement function 2, you need to use the createGroup() and removeGroup( ) interfaces, and you need to request ohos. permission. GET_WIFI_INFO permissions
A.
To implement function 2, you need to use the createGroup() and removeGroup( ) interfaces, and you need to request ohos. permission. GET_WIFI_INFO permissions
Answers
B.
To achieve function 1, you need to use the discoverDevice() interface, and you need to request ohos. permission. SET_WIFI_INFO Limitations
B.
To achieve function 1, you need to use the discoverDevice() interface, and you need to request ohos. permission. SET_WIFI_INFO Limitations
Answers
C.
In order to achieve function 3, the connect() interface needs to be used, and the ohos.permission.SET_WIFI_INFO permissions need to be requested
C.
In order to achieve function 3, the connect() interface needs to be used, and the ohos.permission.SET_WIFI_INFO permissions need to be requested
Answers
D.
In order to achieve the above functions, you need to initialize the P2P messenger through the init() interface, and you need to request ohos.permission.GET_WIFI_INFO and ohos.permission.SET_WIFI_INFO permissions
D.
In order to achieve the above functions, you need to initialize the P2P messenger through the init() interface, and you need to request ohos.permission.GET_WIFI_INFO and ohos.permission.SET_WIFI_INFO permissions
Answers
Suggested answer: A, D

A developer is developing a flight booking application, and uses the sliding selector Picker to select the location of the ticket and writes the following code.

A.
The width of the component is 300vp
A.
The width of the component is 300vp
Answers
B.
Normal font size is 18fp
B.
Normal font size is 18fp
Answers
C.
The height of the C component matches the text size
C.
The height of the C component matches the text size
Answers
D.
The selected font size is 16fp
D.
The selected font size is 16fp
Answers
Suggested answer: A, C

What functions does HarmonyOS provide in app data management to enable developers to seamlessly connect app data between different devices?

A.
Data search service
A.
Data search service
Answers
B.
Local application data management
B.
Local application data management
Answers
C.
Data storage management
C.
Data storage management
Answers
D.
Distributed data services
D.
Distributed data services
Answers
Suggested answer: A, B, C, D

If a developer develops a HarmonyOS application and remotely launches a Page on phone B, which of the following permissions does not require the user to request authorization by sending a pop-up window at runtime?

A.
ohos.permission.GET_DISTRIBUTED_DEVICE_INFO
A.
ohos.permission.GET_DISTRIBUTED_DEVICE_INFO
Answers
B.
ohos.permission.DISTRIBUTED_DEVICE_STATE_CHANGE
B.
ohos.permission.DISTRIBUTED_DEVICE_STATE_CHANGE
Answers
C.
ohos.permission.GET_BUNDLE_INFO
C.
ohos.permission.GET_BUNDLE_INFO
Answers
D.
ohos.permission.DISTRIBUTED_DATASYNC
D.
ohos.permission.DISTRIBUTED_DATASYNC
Answers
Suggested answer: A, B, C
Total 705 questions
Go to page: of 71