ExamGecko
Home / Huawei / H14-231_V1.0 / List of questions
Ask Question

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

Add to Whishlist

List of questions

Question 61

Report Export Collapse

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?

ohos:text_alignment=start
ohos:text_alignment=start
ohos:text_alignment=bottom
ohos:text_alignment=bottom
ohos:text_alignment=vertical_center
ohos:text_alignment=vertical_center
ohos:text_alignment=horizontal_center
ohos:text_alignment=horizontal_center
Suggested answer: D
asked 18/09/2024
Steven Bertoldi
36 questions

Question 62

Report Export Collapse

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?

lgnoredColumns indicates that the field does not need to be added to the attributes of the student table
lgnoredColumns indicates that the field does not need to be added to the attributes of the student table
lndices creates a composite index name_index for the firstName and 1astName fields
lndices creates a composite index name_index for the firstName and 1astName fields
The name of the data table is student The index value of the
The name of the data table is student The index value of the
composite index name_index is not unique
composite index name_index is not unique
Suggested answer: D
asked 18/09/2024
Angela Cappa
40 questions

Question 63

Report Export Collapse

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?

ohos:visibility= hide
ohos:visibility= hide
text.setVisibility(Component. VISIBLE)
text.setVisibility(Component. VISIBLE)
ohos:visibility=visible
ohos:visibility=visible
ohos: visibi1ity=invisible
ohos: visibi1ity=invisible
Suggested answer: D
asked 18/09/2024
WONG CHUN KIT WONG CHUN KIT
30 questions

Question 64

Report Export Collapse

The default size of shared memory in Harmony OS is ?

8M
8M
4M
4M
2M
2M
1M
1M
Suggested answer: C
asked 18/09/2024
Carolina Velayos
55 questions

Question 65

Report Export Collapse

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?

MIDDLE
MIDDLE
HIGH
HIGH
DEFAULT
DEFAULT
LOW
LOW
Suggested answer: A
asked 18/09/2024
Salvatore Buscio
40 questions

Question 66

Report Export Collapse

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?

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

Question 67

Report Export Collapse

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

device is virtual
device is virtual
Decision-making centre
Decision-making centre
Device management
Device management
Data Processing
Data Processing
Suggested answer: B
asked 18/09/2024
Thiago B
46 questions

Question 68

Report Export Collapse

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?

TaskDispatcher
TaskDispatcher
Group
Group
lAbilityMlanager
lAbilityMlanager
BackgroundTaskManager
BackgroundTaskManager
Suggested answer: A
asked 18/09/2024
Eric De La Vega
45 questions

Question 69

Report Export Collapse

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

onStart()onActive()
onStart()onActive()
onStart() onActive() onInactive()
onStart() onActive() onInactive()
onBackground()onForeground()onStop()
onBackground()onForeground()onStop()
onActive() onInactive()
onActive() onInactive()
Suggested answer: A
asked 18/09/2024
Mark Josef Delos Santos
38 questions

Question 70

Report Export Collapse

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

DV subsystem
DV subsystem
Proprietary business subsystem of smart screen
Proprietary business subsystem of smart screen
Media Subsystem
Media Subsystem
Safety subsystem
Safety subsystem
Suggested answer: B
asked 18/09/2024
Cornelius Paul
42 questions
Total 705 questions
Go to page: of 71
Search