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

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

Question list
Search
Search

List of questions

Search

Related questions











A developer needs to use the current data network for socket data transmission, and the development process involves the following steps:

1 Send data with sockets.

2 Bind the network with NetHandle.bindSocket().

3 Call NetManager.getDefaultNet() to get the default data network.

4 Call NetManager.getInstance(Context9) to get the instance object of network management.

When the developer combed through the development steps, the above steps were sorted according to the order in which the features were completed in the code. Which of the following is the correct order?

A.
4123
A.
4123
Answers
B.
4213
B.
4213
Answers
C.
4321
C.
4321
Answers
D.
2143
D.
2143
Answers
Suggested answer: C

When an Intent is used to initiate a request, if both BundleName and AbilityName are specified, which of the following codes is used to directly start the application?

A.
a12345
A.
a12345
Answers
B.
com.demoapp
B.
com.demoapp
Answers
C.
Deviceld
C.
Deviceld
Answers
D.
com.demoapp.FirstAbility
D.
com.demoapp.FirstAbility
Answers
Suggested answer: D

A developer has developed a news browsing application, and the news list page is displayed by default when the application is opened, which of the following methods does the developer use to achieve this function?

A.
Intent()
A.
Intent()
Answers
B.
SetMainRoute()
B.
SetMainRoute()
Answers
C.
AddActionRoute()
C.
AddActionRoute()
Answers
D.
onStart()
D.
onStart()
Answers
Suggested answer: B

If the user migrates the video on the machine to the smart screen for playback, which of the following callback methods can save the video playback data on the mobile phone?

A.
onStartContinuation()
A.
onStartContinuation()
Answers
B.
onCompleteContinuation()
B.
onCompleteContinuation()
Answers
C.
onRestoreData()
C.
onRestoreData()
Answers
D.
onSaveData()
D.
onSaveData()
Answers
Suggested answer: D

Which of the following subsystems in Harmony OS can achieve data isolation between applications?

A.
Location Services subsystem
A.
Location Services subsystem
Answers
B.
Safety subsystem
B.
Safety subsystem
Answers
C.
Media Subsystem
C.
Media Subsystem
Answers
D.
AI subsystem
D.
AI subsystem
Answers
Suggested answer: B

Which of the following does not belong to the application framework layer in the Harmony OS system architecture?

A.
UI
A.
UI
Answers
B.
Distributed data management
B.
Distributed data management
Answers
C.
User Program Framework
C.
User Program Framework
Answers
D.
Ability
D.
Ability
Answers
Suggested answer: B

HarmonyOS defines different open scopes and authorization methods to protect data according to the sensitivity of the data involved in the interface

A.
restricted: the certificate can be applied in a controllable manner
A.
restricted: the certificate can be applied in a controllable manner
Answers
B.
privileged: pre-made privileged app
B.
privileged: pre-made privileged app
Answers
C.
deviceAuthenticationed: device authentication application
C.
deviceAuthenticationed: device authentication application
Answers
D.
signature: the platform signature application
D.
signature: the platform signature application
Answers
Suggested answer: C

Which of the following is an event method that can obtain the offset of the List slide

A.
onScroll
A.
onScroll
Answers
B.
onScrolllndex
B.
onScrolllndex
Answers
C.
onReachStart
C.
onReachStart
Answers
D.
onReachEnd
D.
onReachEnd
Answers
Suggested answer: A

Which of the following modules needs to be imported to initiate a network data request?

A.
import http from '@ohos.net.http'
A.
import http from '@ohos.net.http'
Answers
B.
import http from ' @ohos.net.https'
B.
import http from ' @ohos.net.https'
Answers
C.
import request from '@ohos.request'
C.
import request from '@ohos.request'
Answers
D.
import request from '@ohos.net.request'
D.
import request from '@ohos.net.request'
Answers
Suggested answer: A

There are two Text components in the Row component, if you use justifyContent alignment, which of the following properties can achieve left and right alignment?

A.
FlexAlign.Start
A.
FlexAlign.Start
Answers
B.
FlexAlign.SpaceEvenly
B.
FlexAlign.SpaceEvenly
Answers
C.
FlexAlign.End
C.
FlexAlign.End
Answers
D.
FlexAlign.SpaceBetween
D.
FlexAlign.SpaceBetween
Answers
Suggested answer: D
Total 705 questions
Go to page: of 71