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

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

Question list
Search
Search

Related questions











The following description of the basic components of the ArkTS declarative development paradigm is correct

A.
Decorator: Used to decorate classes, structs, methods, and variables to give them a special meaning, e.g. @Entry indicates that this is an entrance component.
A.
Decorator: Used to decorate classes, structs, methods, and variables to give them a special meaning, e.g. @Entry indicates that this is an entrance component.
Answers
B.
Custom components: Reusable UI units that can be combined with other components.
B.
Custom components: Reusable UI units that can be combined with other components.
Answers
C.
UI Description: A declarative method to describe the structure of the UI, such as a code block in the build() method.
C.
UI Description: A declarative method to describe the structure of the UI, such as a code block in the build() method.
Answers
D.
Built-in components: Built-in basic components and layout components in ArkTS by default, such as Column, Text, Divider, Button, etc., can be called by developers.
D.
Built-in components: Built-in basic components and layout components in ArkTS by default, such as Column, Text, Divider, Button, etc., can be called by developers.
Answers
E.
attribute method: used to configure component attributes, which are set through attribute methods, such as fontSize(), width(), height(), color(), etc.
E.
attribute method: used to configure component attributes, which are set through attribute methods, such as fontSize(), width(), height(), color(), etc.
Answers
F.
Event method: It is used to add the component's response logic to the event, which is set through the event method, such as onClick() following the Button.
F.
Event method: It is used to add the component's response logic to the event, which is set through the event method, such as onClick() following the Button.
Answers
Suggested answer: A, B, C, D, E, F

Regarding the Tabs component and the TabContent component, the following description is correct

A.
TabContent component does not support setting a generic width property, and its width is equal to the barWidth property of the Tabs component.
A.
TabContent component does not support setting a generic width property, and its width is equal to the barWidth property of the Tabs component.
Answers
B.
The TabContent component does not support setting the general height attribute, and its height is determined by the height of the parent Tabs and the height of the TabBar component.
B.
The TabContent component does not support setting the general height attribute, and its height is determined by the height of the parent Tabs and the height of the TabBar component.
Answers
C.
TabsController is used to control tabs to switch between tabs, and does not support one tabscontroller to control multiple tabs.
C.
TabsController is used to control tabs to switch between tabs, and does not support one tabscontroller to control multiple tabs.
Answers
D.
The tabBar property of the TabContent component supports components generated using the @Builder constructor.
D.
The tabBar property of the TabContent component supports components generated using the @Builder constructor.
Answers
Suggested answer: A, B, C, D

The description of the ForEach(arr,itemGenerator,index) component is correct

A.
ForEach can loop through logical code, such as console.info ('hello').
A.
ForEach can loop through logical code, such as console.info ('hello').
Answers
B.
The first parameter must be an array, providing a data source for circular rendering.
B.
The first parameter must be an array, providing a data source for circular rendering.
Answers
C.
The second parameter generates the lambda function of the child component, which generates the child component for each array item in the data source.
C.
The second parameter generates the lambda function of the child component, which generates the child component for each array item in the data source.
Answers
D.
The third parameter is an anonymous function that generates a unique and stable key value for a given array item.
D.
The third parameter is an anonymous function that generates a unique and stable key value for a given array item.
Answers
Suggested answer: B, C, D

Which of the following properties can be used for components that contain text elements, such as Text, Button, TextInput, etc.?

A.
fontColor
A.
fontColor
Answers
B.
fontSize
B.
fontSize
Answers
C.
fontStyle
C.
fontStyle
Answers
D.
fontWeight
D.
fontWeight
Answers
E.
fontFamily
E.
fontFamily
Answers
Suggested answer: A, B, C, D, E

Which of the following component hierarchies are correct

A.
Text>Span
A.
Text>Span
Answers
B.
Button>Column>Image
B.
Button>Column>Image
Answers
C.
Button>Image>Text
C.
Button>Image>Text
Answers
D.
Image>Text>Span
D.
Image>Text>Span
Answers
E.
Column>Row>Button
E.
Column>Row>Button
Answers
Suggested answer: A, B, E

How do I create a new project in DevEco Studio?

A.
Create a new file on your computer and name it 'new harmonyOS project'
A.
Create a new file on your computer and name it 'new harmonyOS project'
Answers
B.
If you have a project open, select 'file>new>Create Project from the DevEco Studio menu
B.
If you have a project open, select 'file>new>Create Project from the DevEco Studio menu
Answers
C.
If you open DevEco Studio for the first time, click 'Create new Project' on the welcome page
C.
If you open DevEco Studio for the first time, click 'Create new Project' on the welcome page
Answers
D.
Create a new project without having to rename it
D.
Create a new project without having to rename it
Answers
Suggested answer: B, C

Which of the following information is included in the module.json5 configuration file?

A.
ability
A.
ability
Answers
B.
Module Name
B.
Module Name
Answers
C.
The version number of the app
C.
The version number of the app
Answers
D.
Module type
D.
Module type
Answers
Suggested answer: A, B, D

Which of the following functions is a lifecycle function for a custom component?

A.
aboutToAppear
A.
aboutToAppear
Answers
B.
aboutToDisappear
B.
aboutToDisappear
Answers
C.
onPageShow
C.
onPageShow
Answers
D.
onPageHide
D.
onPageHide
Answers
E.
onBackPress
E.
onBackPress
Answers
Suggested answer: A, B, C, D, E

Which of the following decorators can be used to manage the state of variables in custom components?

A.
@Component
A.
@Component
Answers
B.
@Entry
B.
@Entry
Answers
C.
@State
C.
@State
Answers
D.
@Link
D.
@Link
Answers
Suggested answer: C, D

API9 and above, router.pushUrl() method mode parameter can be configured to which of the following modes used by the jump page?

A.
Standard
A.
Standard
Answers
B.
Single
B.
Single
Answers
C.
Specified
C.
Specified
Answers
D.
None of the above is true
D.
None of the above is true
Answers
Suggested answer: A, B
Total 705 questions
Go to page: of 71