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

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

Question list
Search
Search

Related questions











Which kind of decorator can be used as a page entry component?

A.
@Component
A.
@Component
Answers
B.
@Entry
B.
@Entry
Answers
C.
@Preview
C.
@Preview
Answers
D.
@Builder
D.
@Builder
Answers
Suggested answer: B

Regarding the callback event of the Video component, the following statement is incorrect

A.
onStart is triggered when the video is playing, and you can get the video duration here.
A.
onStart is triggered when the video is playing, and you can get the video duration here.
Answers
B.
This event is triggered at the end of the B onFinish video.
B.
This event is triggered at the end of the B onFinish video.
Answers
C.
This event is triggered when the C onPrepared video is ready.
C.
This event is triggered when the C onPrepared video is ready.
Answers
D.
onUpdate is triggered when the playback progress changes, the unit is s, and the update interval is 250 ms.
D.
onUpdate is triggered when the playback progress changes, the unit is s, and the update interval is 250 ms.
Answers
Suggested answer: A

With regard to the characteristics of @State state data, the following description is incorrect

A.
State is decorated with a variable that is the internal state data of the component, and when the state data is modified, the build method of the component will be called to refresh the UI.
A.
State is decorated with a variable that is the internal state data of the component, and when the state data is modified, the build method of the component will be called to refresh the UI.
Answers
B.
Properties marked as @State are private variables that can only be accessed within the component
B.
Properties marked as @State are private variables that can only be accessed within the component
Answers
C.
@State variable can be left without an initial value The decorated variables @Link
C.
@State variable can be left without an initial value The decorated variables @Link
Answers
D.
child components can be bidirectionally bound to the @State variables of the parent component
D.
child components can be bidirectionally bound to the @State variables of the parent component
Answers
Suggested answer: C

Regarding the position setting of the Tabs component tab, the following is the wrong description

A.
When barPosition is set to Start (the default value) and the vertical attribute is false (the default value), the tab is located at the top of the container
A.
When barPosition is set to Start (the default value) and the vertical attribute is false (the default value), the tab is located at the top of the container
Answers
B.
If barPosition is set to Start (the default value) and the vertical attribute is set to true, the tab is located on the left side of the container
B.
If barPosition is set to Start (the default value) and the vertical attribute is set to true, the tab is located on the left side of the container
Answers
C.
When barPosition is set to End and vertical is set to false (the default), the tab is located at the bottom of the container
C.
When barPosition is set to End and vertical is set to false (the default), the tab is located at the bottom of the container
Answers
D.
When barPosition is set to End and vertical is set to true, the tab is located at the bottom of the container
D.
When barPosition is set to End and vertical is set to true, the tab is located at the bottom of the container
Answers
Suggested answer: D

Regarding the boot mode of UIAbility, the following statement is incorrect

A.
UIAbility supports three launch modes: single-instance, standard-mode, and specified instance, which can be configured in module.json via launchType.
A.
UIAbility supports three launch modes: single-instance, standard-mode, and specified instance, which can be configured in module.json via launchType.
Answers
B.
singleton is a single-instance mode, only one instance exists in the system, and if it already exists, the only instance in the system is reused.
B.
singleton is a single-instance mode, only one instance exists in the system, and if it already exists, the only instance in the system is reused.
Answers
C.
standard is the standard mode, and a new instance will be started every time startAbility, and the system defaults to the standard mode.
C.
standard is the standard mode, and a new instance will be started every time startAbility, and the system defaults to the standard mode.
Answers
D.
specified is the specified instance mode, and the internal business of Ability decides whether to create multiple instances during runtime.
D.
specified is the specified instance mode, and the internal business of Ability decides whether to create multiple instances during runtime.
Answers
Suggested answer: C

With regard to Web components, the following is incorrect

A.
WebController can control various behaviors of web components, such as forward, backward, runJavaScript, etc.
A.
WebController can control various behaviors of web components, such as forward, backward, runJavaScript, etc.
Answers
B.
The web component supports the setting of various properties such as fileAccess.javaScriptAccess, for example, .javaScriptAccess(true) indicates that JavaScript scripts are allowed to be executed.
B.
The web component supports the setting of various properties such as fileAccess.javaScriptAccess, for example, .javaScriptAccess(true) indicates that JavaScript scripts are allowed to be executed.
Answers
C.
The web component supports a variety of events, such as onConfirm and onConsole, for example, the onConfirm callback is triggered when a web page calls confirm().
C.
The web component supports a variety of events, such as onConfirm and onConsole, for example, the onConfirm callback is triggered when a web page calls confirm().
Answers
D.
The ohos.permission.INTERNET permission is required to access both online and offline web pages using the web component.
D.
The ohos.permission.INTERNET permission is required to access both online and offline web pages using the web component.
Answers
Suggested answer: D

Regarding the container components Row and Column, the following statement is wrong. The main axis of A Column container is vertical, and the cross axis is horizontal;

A.
The main axis of the row container is horizontal, and the cross axis is vertical.
A.
The main axis of the row container is horizontal, and the cross axis is vertical.
Answers
B.
The main axis and the cross axis are always perpendicular to each other, and the direction of the Row and Column main axes is different.
B.
The main axis and the cross axis are always perpendicular to each other, and the direction of the Row and Column main axes is different.
Answers
C.
The alignment of the subcomponents of the C Column in the direction of the main axis is set using the justifyContent property, and its parameter type is FlexAlign.
C.
The alignment of the subcomponents of the C Column in the direction of the main axis is set using the justifyContent property, and its parameter type is FlexAlign.
Answers
D.
The alignment of D Row's subcomponents in the direction of the cross axis is set using the alignltems property, which is of type HorizontalAlign.
D.
The alignment of D Row's subcomponents in the direction of the cross axis is set using the alignltems property, which is of type HorizontalAlign.
Answers
Suggested answer: D

Which of the following modules needs to be imported for page routing?

A.
import prompt from '@ohos.prompt'
A.
import prompt from '@ohos.prompt'
Answers
B.
import router from '@ohos.router'
B.
import router from '@ohos.router'
Answers
C.
import Notification from'@ohos.notification'
C.
import Notification from'@ohos.notification'
Answers
D.
import window from '@ohos.window'
D.
import window from '@ohos.window'
Answers
Suggested answer: B

In the stage model, what are the following configuration files that belong to the AppScope folder?

A.
main_pages.json
A.
main_pages.json
Answers
B.
module.json5
B.
module.json5
Answers
C.
app.json5
C.
app.json5
Answers
D.
package.json
D.
package.json
Answers
Suggested answer: C

What kind of struct is used to decoratively indicate that the structure has the ability to be componentized?

A.
@Component
A.
@Component
Answers
B.
@Entry
B.
@Entry
Answers
C.
@Builder
C.
@Builder
Answers
D.
@Preview
D.
@Preview
Answers
Suggested answer: A
Total 705 questions
Go to page: of 71