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

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

Question list
Search
Search

List of questions

Search

Related questions











The library file is the third-party code that the application depends, which are the correct ways to use the following library files?

A.
Create a new module with the source code of the library file as a whole, and the entry directly references the classes in the library file
A.
Create a new module with the source code of the library file as a whole, and the entry directly references the classes in the library file
Answers
B.
Put the library files in the libs directory in the form of jar, so, etc., and then reference the dependencies {Implementation project(:mylibrary)} through the build.gradle under the project If the required library files exist in the maven repository, you can configure the project's build.gradle as follows to use Repositories {.}
B.
Put the library files in the libs directory in the form of jar, so, etc., and then reference the dependencies {Implementation project(:mylibrary)} through the build.gradle under the project If the required library files exist in the maven repository, you can configure the project's build.gradle as follows to use Repositories {.}
Answers
C.
Maven{ Url 'XXX' // Add a Maven repository address, which can be a local Maven address or a remote Maven address }
C.
Maven{ Url 'XXX' // Add a Maven repository address, which can be a local Maven address or a remote Maven address }
Answers
D.
Put the library file in the libs directory in the form of jar.so, and then refer to the dependencies (Implementationproject(: mylibrary)) through the build.gradle of the application module.
D.
Put the library file in the libs directory in the form of jar.so, and then refer to the dependencies (Implementationproject(: mylibrary)) through the build.gradle of the application module.
Answers
Suggested answer: B, C, D

In HarmonyOS, there are some applications that can call out universal cards, which can bring you the experience of using ().

A.
Swipe up icon, information directly
A.
Swipe up icon, information directly
Answers
B.
Multiple sizes, choose at will
B.
Multiple sizes, choose at will
Answers
C.
Add desktops and combine them freely
C.
Add desktops and combine them freely
Answers
D.
None of the above is true
D.
None of the above is true
Answers
Suggested answer: A, B, C

Which of the following development languages can a developer use when developing a HarmonyOS smart screen application?

A.
JavaScript
A.
JavaScript
Answers
B.
Python
B.
Python
Answers
C.
Andriod
C.
Andriod
Answers
D.
Java
D.
Java
Answers
Suggested answer: A, D

HarmonyOS Capabilities are divided into two types: Feature Ability and Particle Ability.

A.
Service Ability
A.
Service Ability
Answers
B.
Data Ability
B.
Data Ability
Answers
C.
Page Ability
C.
Page Ability
Answers
D.
Ability Slice
D.
Ability Slice
Answers
Suggested answer: A, B

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?

A.
Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch); btnSwitch.setStateOffText(OFF); btnSwitch.setStateONText(ON);
A.
Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch); btnSwitch.setStateOffText(OFF); btnSwitch.setStateONText(ON);
Answers
B.
<Switch... ... Ohos:text_state_off='ON' Ohos:text_state_on='OFF'>
B.
<Switch... ... Ohos:text_state_off='ON' Ohos:text_state_on='OFF'>
Answers
C.
Switch btnSwitch= (Switch)findComponentByld(ResourceTable.ld_btn_switch); btnSwitch.setStateOffText(ON); btnSwitch.setStateONText(OFF);
C.
Switch btnSwitch= (Switch)findComponentByld(ResourceTable.ld_btn_switch); btnSwitch.setStateOffText(ON); btnSwitch.setStateONText(OFF);
Answers
D.
<Switch.... Ohos:text_state_off='OFF' Ohos:text_state_on='ON'> </Switch>
D.
<Switch.... Ohos:text_state_off='OFF' Ohos:text_state_on='ON'> </Switch>
Answers
Suggested answer: A, D

When a developer develops a news software, he will use the marquee of the Text component to realize the automatic scrolling of information, and before setting the marquee effect, he needs to set some preconditions for the Text component.

A.
ohos:multiple_lines=false
A.
ohos:multiple_lines=false
Answers
B.
ohos:max_text_line=1
B.
ohos:max_text_line=1
Answers
C.
ohos:multiple_lines=true
C.
ohos:multiple_lines=true
Answers
D.
ohos:max_text_line=2
D.
ohos:max_text_line=2
Answers
Suggested answer: A, B

If a HarmonyOS application developer wants to achieve the following effects, which of the following combinations can achieve the effect?

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: A, C, D

Which of the following positioning capabilities does the location service subsystem of HarmonyOS provide?

A.
WLAN location
A.
WLAN location
Answers
B.
GPS
B.
GPS
Answers
C.
Beidou
C.
Beidou
Answers
D.
Base Station
D.
Base Station
Answers
Suggested answer: A, B, C, D

Ability and InternalAbility are two different ways to call PA (ParticleAbility) by FA (FeatureAbility).

A.
Ability has an independent life cycle
A.
Ability has an independent life cycle
Answers
B.
The class inherited by B Ability is ohos.aafwk.ability.Ability
B.
The class inherited by B Ability is ohos.aafwk.ability.Ability
Answers
C.
Ability does not need to be registered with the FA
C.
Ability does not need to be registered with the FA
Answers
D.
internalAbility can be called by other FAs
D.
internalAbility can be called by other FAs
Answers
Suggested answer: A, B, C

Which of the following items are involved in migrating Page from device A to device B?

A.
The system calls back the onStartContinuation( ) method of all AbilitySlice instances on the Page on device A and all AbilitySlice instances in its AbilitySlice stack
A.
The system calls back the onStartContinuation( ) method of all AbilitySlice instances on the Page on device A and all AbilitySlice instances in its AbilitySlice stack
Answers
B.
requests migration from the Page on Device A
B.
requests migration from the Page on Device A
Answers
C.
The system calls back the onCompleteContinuation( ) method of all AbilitySlice instances on the Page on Device A and all AbilitySlice instances in its AbilitySlice stack
C.
The system calls back the onCompleteContinuation( ) method of all AbilitySlice instances on the Page on Device A and all AbilitySlice instances in its AbilitySlice stack
Answers
D.
If the migration can be done immediately, the system calls back the onSaveData( ) method of all AbilitySlice instances on the Page on device B and all AbilitySlice instances in its AbilitySlice stack
D.
If the migration can be done immediately, the system calls back the onSaveData( ) method of all AbilitySlice instances on the Page on device B and all AbilitySlice instances in its AbilitySlice stack
Answers
Suggested answer: B, C
Total 705 questions
Go to page: of 71