Huawei H14-231_V1.0 Practice Test - Questions Answers, Page 18
List of questions
Related questions
A developer uses HarmonyOS to write half of an email on his mobile phone and click the transfer button to the tablet to continue editing the email.
A developer uses the threading function of HarmonyoS and writes the following code, which is the correct order of the execution result of the code?
TaskDispatcher globalTaskDispatcher =
getGlobalTaskDispatcher(TaskPriority.DEFAULT);
globalTaskDispatcher.syncDispatch(new
Runnable(){
@Override
public void run(){
HiLog.info (LABEL_LOG,'sync task1 run');//1
HiLog.info (LABEL_LOG, 'after sync task1');//2
globalTaskDispatcher.syncDispatch(new
Runnable(){
@0verride
pub1ic void run(){
HiLog.info(LABEL_LOG,'sync task2 run'); 3
}
});
HiLog.info (LABEL_LOG, 'after sync task2');//4
A developer obtains a log content: static final HiLogLabel LABEL = new HiLogLabe1 (HiLog.LOG_APP,0x00201,'MY_TAG');
Which of the following information can't be obtained?
A developer defines an entity class
Student.java and use the following code to construct the table:
@Entity(tableName ='student', ignoredColums
=['ignoredColumn1','ignoredColumn2', indices
= (@Index(value =('firstName.','lastName',
name='name_index', unique = true)))
pub1ic class User extends OrmObject{
@PrimaryKey(autoGenerate= true)
private Integer userld;
private String firstName;
private String lastName;
private int age;
private doub1e balance;
private int ignoredColumn1;
private int ignoredColumn2;
}
Which of the following descriptions of this code is wrong?
The logs queried by a developer are as follows. HiLog.warn(LABEL, 'Failed to visit %(private) s,reason:%(public}d.',url, exrno); What kind of level does the log belong to?
If an engineer needs to determine whether a device supports the corresponding decoder of the specified MIME (Multipurpose Internet Mail Extensions), which of the following interfaces should be selected?
A HarmonyOS developer develops an application based on distributed data services, and the developer uses device A, device B, and device C to test the functionality of the application in a distributed scenario. In the test, after device A successfully adds, deletes, and modifies data, device B and device C cannot read the updated data immediately, but after a certain time window, the data of the three devices will reach the same state. In the preceding scenario, what kind of consistency does the application conform to in a distributed database?
A HarmonyOS user downloads and installs a new application, which has declared some non-sensitive permissions in the config.json file, and the application may involve some sensitive permissions during running. Which of the following is correct in this scenario?
When a developer designs a PA (Particle Ability) application, which of the following development steps can be omitted?
When a developer specifies a music playback service through an intent when starting a remote service, device A (local device) can start the music playback capability of device B (remote device).
Question