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

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

Question list
Search
Search

List of questions

Search

Related questions











When the engineer is developing JS (JavaScript), the application can successfully load the local image in the common path, but cannot load the network image.

A.
ohos.permission.READ.MEDIA
A.
ohos.permission.READ.MEDIA
Answers
B.
ohos.permssion.WRITE_MEDIA
B.
ohos.permssion.WRITE_MEDIA
Answers
C.
ohos.permission.INTERNET
C.
ohos.permission.INTERNET
Answers
D.
ohos.permission.GET_NETWORK_INFO
D.
ohos.permission.GET_NETWORK_INFO
Answers
Suggested answer: C

Which of the following subsystems is not part of the basic software service subsystem of HarmonyoS?

A.
Event Notification Service subsystem
A.
Event Notification Service subsystem
Answers
B.
Telephone service subsystem
B.
Telephone service subsystem
Answers
C.
Multimedia subsystem
C.
Multimedia subsystem
Answers
D.
Location Services subsystem
D.
Location Services subsystem
Answers
Suggested answer: D

In HarmonyOS, which of the following scenarios is the application responsible for instantiation?

A.
Jump to another page through a hyperlink
A.
Jump to another page through a hyperlink
Answers
B.
reads a novel through a web page and accidentally clicks on an advertisement, which jumps directly to the app store to request the download of a certain game
B.
reads a novel through a web page and accidentally clicks on an advertisement, which jumps directly to the app store to request the download of a certain game
Answers
C.
An app page has messages, contacts, settings, etc., and you can switch between them
C.
An app page has messages, contacts, settings, etc., and you can switch between them
Answers
D.
Start an AbilitySlice by navigating
D.
Start an AbilitySlice by navigating
Answers
Suggested answer: C

HarmonyOS supports developers to customize permissions in the 'reqPermissions' field to access permission-protected objects

A.
config.json
A.
config.json
Answers
B.
ability_main.xml
B.
ability_main.xml
Answers
C.
MainAbilityS1ice.java
C.
MainAbilityS1ice.java
Answers
D.
string.json
D.
string.json
Answers
Suggested answer: A

When a developer uses the Text component for development, due to the long length of the input string, the content in the middle of the text needs to be truncated with ellipses. Which of the following codes can be used to achieve the above requirements?

A.
ohos:truncation_mode=ellipsis_at_start
A.
ohos:truncation_mode=ellipsis_at_start
Answers
B.
ohos: truncation_mode=auto_scrolling
B.
ohos: truncation_mode=auto_scrolling
Answers
C.
ohos:truncation_mode=ellipsis_at_middle
C.
ohos:truncation_mode=ellipsis_at_middle
Answers
D.
ohos:truncation_mode=ellipsis_at_end
D.
ohos:truncation_mode=ellipsis_at_end
Answers
Suggested answer: C

If a developer wants to achieve the effect of page swiping in an application, which of the following components does the developer need to select?

A.
PageSlider
A.
PageSlider
Answers
B.
ToastDialog
B.
ToastDialog
Answers
C.
webView
C.
webView
Answers
D.
ProgressBar
D.
ProgressBar
Answers
Suggested answer: A

If a UI is no longer visible to the user, but you don't want to destroy it, which method will the system call to release the corresponding resources?

A.
onForeground()
A.
onForeground()
Answers
B.
onInactive( )
B.
onInactive( )
Answers
C.
onPause()
C.
onPause()
Answers
D.
onBackground( )
D.
onBackground( )
Answers
Suggested answer: D

In the HarmonyOS system architecture, which of the following provides unified peripheral access capabilities and driver development management framework?

A.
KAL (Kernel Abstract Layer)
A.
KAL (Kernel Abstract Layer)
Answers
B.
Ability
B.
Ability
Answers
C.
UI
C.
UI
Answers
D.
HDF (Hardware Driver Foundation)
D.
HDF (Hardware Driver Foundation)
Answers
Suggested answer: D

A developer designs a game application with MainAbility on the home page, click the game icon on the desktop, and then press the Home button to hide the game in the background, how does the life cycle of MainAbility change?

A.
onStart ()onResume()---onInActive()onBackground()
A.
onStart ()onResume()---onInActive()onBackground()
Answers
B.
onStart()onActive()onInActive()onStop()
B.
onStart()onActive()onInActive()onStop()
Answers
C.
onStart()---onActive()onInActive()
C.
onStart()---onActive()onInActive()
Answers
D.
onStart()onActive()onlnActive()onBackground()
D.
onStart()onActive()onlnActive()onBackground()
Answers
Suggested answer: D

When the user clicks on a song from the music list page and jumps to the playback interface of the song, the principle is that the page route routes to the destination page according to which of the following?

A.
router.push
A.
router.push
Answers
B.
router.back
B.
router.back
Answers
C.
uri
C.
uri
Answers
D.
intent
D.
intent
Answers
Suggested answer: C
Total 705 questions
Go to page: of 71