Huawei H14-231_V1.0 Practice Test - Questions Answers, Page 7
List of questions
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 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?
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?
The default size of shared memory in Harmony OS is ?
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?
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?
Which of the following is NOT a capability provided by Distributed Device Virtualization in HarmonyOS?
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?
What lifecycle processes will be triggered when a developer creates a Page instance and lets the instance be displayed in the foreground?
If a developer wants to develop an application on a smart screen, which of the following subsystems will he use?
Question