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

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

Question list
Search
Search

List of questions

Search

Related questions











If a developer wants to develop a page with a tab function, the developer can use the TabList component provided by HarmomyOS. If you want to set the horizontal center alignment of text, which of the following codes is correct?

A.
ohos:text_alignment=start
A.
ohos:text_alignment=start
Answers
B.
ohos:text_alignment=bottom
B.
ohos:text_alignment=bottom
Answers
C.
ohos:text_alignment=vertical_center
C.
ohos:text_alignment=vertical_center
Answers
D.
ohos:text_alignment=horizontal_center
D.
ohos:text_alignment=horizontal_center
Answers
Suggested answer: D

A developer defines an entity class Student.java and uses the following code to construct a teaching table:

Entity(tableName='student',ignoredColums =['ignoredColumn1',' ignoredColumn2', indices =(@Index(value =('firstName.' ,'lastName',name='name_index', unique = true)))

Public class User extends OrmObject{

@PrimaryKey(autoGenerate= true)

Private Integer userld;

Private String firstName;

Private String lastName;

Private int age;

Private double balance;

Private int ignoredColumnl;

Private int ignoredColumn2;

}

Which of the following descriptions of this code is wrong?

A.
lgnoredColumns indicates that the field does not need to be added to the attributes of the student table
A.
lgnoredColumns indicates that the field does not need to be added to the attributes of the student table
Answers
B.
lndices creates a composite index name_index for the firstName and 1astName fields
B.
lndices creates a composite index name_index for the firstName and 1astName fields
Answers
C.
The name of the data table is student The index value of the
C.
The name of the data table is student The index value of the
Answers
D.
composite index name_index is not unique
D.
composite index name_index is not unique
Answers
Suggested answer: D

Now a Text component is used as the title of a page, and Text needs to be set to be invisible, but it still occupies the current layout space, which of the following is correct?

A.
ohos:visibility= hide
A.
ohos:visibility= hide
Answers
B.
text.setVisibility(Component. VISIBLE)
B.
text.setVisibility(Component. VISIBLE)
Answers
C.
ohos:visibility=visible
C.
ohos:visibility=visible
Answers
D.
ohos: visibi1ity=invisible
D.
ohos: visibi1ity=invisible
Answers
Suggested answer: D

The default size of shared memory in Harmony OS is ?

A.
8M
A.
8M
Answers
B.
4M
B.
4M
Answers
C.
2M
C.
2M
Answers
D.
1M
D.
1M
Answers
Suggested answer: C

TaskDispatcher is the basic interface for Ability to distribute tasks, which hides the implementation details of the thread where the task is located. To ensure that the application is more responsive, we respond to the priority of the design task, which of the following is not the priority of the task?

A.
MIDDLE
A.
MIDDLE
Answers
B.
HIGH
B.
HIGH
Answers
C.
DEFAULT
C.
DEFAULT
Answers
D.
LOW
D.
LOW
Answers
Suggested answer: A

In order to test the distributed file service functions of application A and application B, the developer installs application A and application B on both device 1 and device 2. During the test, application A on device 1 creates a distributed file X, and application B on device 2 creates a distributed file Y. Which of the following descriptions of this scenario is wrong?

A.
If Device 1 and Device 2 are logged in to different HarmonyoS accounts, distributed file sharing cannot be implemented
A.
If Device 1 and Device 2 are logged in to different HarmonyoS accounts, distributed file sharing cannot be implemented
Answers
B.
If device 1 runs out of power and causes the device to go offline, distributed file X cannot be accessed
B.
If device 1 runs out of power and causes the device to go offline, distributed file X cannot be accessed
Answers
C.
With distributed file services, application A on device 1 is able to read and write file Y on device 2
C.
With distributed file services, application A on device 1 is able to read and write file Y on device 2
Answers
D.
Application A and Application B need to apply for ohos.permission.DISTRIBUTED_DATASYNC permissions to use the full functionality of the distributed file service
D.
Application A and Application B need to apply for ohos.permission.DISTRIBUTED_DATASYNC permissions to use the full functionality of the distributed file service
Answers
Suggested answer: C

Which of the following is NOT a capability provided by Distributed Device Virtualization in HarmonyOS?

A.
device is virtual
A.
device is virtual
Answers
B.
Decision-making centre
B.
Decision-making centre
Answers
C.
Device management
C.
Device management
Answers
D.
Data Processing
D.
Data Processing
Answers
Suggested answer: B

In order to cope with complex application business logic, a developer needs to create multiple threads to perform multiple tasks. In this case, the code is complex and difficult to maintain, and the interaction between tasks and threads becomes more complex. To solve this problem, which of the following interfaces can the developer use to distribute different tasks?

A.
TaskDispatcher
A.
TaskDispatcher
Answers
B.
Group
B.
Group
Answers
C.
lAbilityMlanager
C.
lAbilityMlanager
Answers
D.
BackgroundTaskManager
D.
BackgroundTaskManager
Answers
Suggested answer: A

What lifecycle processes will be triggered when a developer creates a Page instance and lets the instance be displayed in the foreground?

A.
onStart()onActive()
A.
onStart()onActive()
Answers
B.
onStart() onActive() onInactive()
B.
onStart() onActive() onInactive()
Answers
C.
onBackground()onForeground()onStop()
C.
onBackground()onForeground()onStop()
Answers
D.
onActive() onInactive()
D.
onActive() onInactive()
Answers
Suggested answer: A

If a developer wants to develop an application on a smart screen, which of the following subsystems will he use?

A.
DV subsystem
A.
DV subsystem
Answers
B.
Proprietary business subsystem of smart screen
B.
Proprietary business subsystem of smart screen
Answers
C.
Media Subsystem
C.
Media Subsystem
Answers
D.
Safety subsystem
D.
Safety subsystem
Answers
Suggested answer: B
Total 705 questions
Go to page: of 71