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

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

Question list
Search
Search

List of questions

Search

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.
Remote FA (Feature Ability)
A.
Remote FA (Feature Ability)
Answers
B.
Start Remote PA (Particle Ability)
B.
Start Remote PA (Particle Ability)
Answers
C.
FA (Feature Ability) is migrated across devices
C.
FA (Feature Ability) is migrated across devices
Answers
D.
Connect to the remote PA (Particle Ability).
D.
Connect to the remote PA (Particle Ability).
Answers
Suggested answer: C

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.
2134
A.
2134
Answers
B.
1234
B.
1234
Answers
C.
2143
C.
2143
Answers
D.
4123
D.
4123
Answers
Suggested answer: B

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.
log level
A.
log level
Answers
B.
The business area of the log
B.
The business area of the log
Answers
C.
Log ID
C.
Log ID
Answers
D.
Log type
D.
Log type
Answers
Suggested answer: A

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?

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

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?

A.
WARN
A.
WARN
Answers
B.
FalseCode()
B.
FalseCode()
Answers
C.
INFO
C.
INFO
Answers
D.
DEBUG
D.
DEBUG
Answers
Suggested answer: A

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.
getSupportedMimes()
A.
getSupportedMimes()
Answers
B.
isEncodeSupportedByMime(String mime)
B.
isEncodeSupportedByMime(String mime)
Answers
C.
isDecodeSupportedByMime(String mime)
C.
isDecodeSupportedByMime(String mime)
Answers
D.
isDecoderSupportedByFormat(Format format)
D.
isDecoderSupportedByFormat(Format format)
Answers
Suggested answer: C

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.
Weak consistency
A.
Weak consistency
Answers
B.
Strong consistency
B.
Strong consistency
Answers
C.
Eventual consistency
C.
Eventual consistency
Answers
D.
Process consistency
D.
Process consistency
Answers
Suggested answer: C

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?

A.
For the non-sensitive permissions declared by the app in the config.json file, the authorization method is user authorization (user_grant)
A.
For the non-sensitive permissions declared by the app in the config.json file, the authorization method is user authorization (user_grant)
Answers
B.
For the non-sensitive permissions declared by the application in the config.json file, the application will be dynamically applied for during use
B.
For the non-sensitive permissions declared by the application in the config.json file, the application will be dynamically applied for during use
Answers
C.
For the sensitive permissions that may be involved in the running process of the application, the authorization method is system authorization (system_grant).
C.
For the sensitive permissions that may be involved in the running process of the application, the authorization method is system authorization (system_grant).
Answers
D.
Non-sensitive permissions declared by the app in the config.json file are automatically granted when the user installs the app
D.
Non-sensitive permissions declared by the app in the config.json file are automatically granted when the user installs the app
Answers
Suggested answer: D

When a developer designs a PA (Particle Ability) application, which of the following development steps can be omitted?

A.
Run the program
A.
Run the program
Answers
B.
Implement the function
B.
Implement the function
Answers
C.
Create a project
C.
Create a project
Answers
D.
Design interface
D.
Design interface
Answers
Suggested answer: D

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).

A.
Enable remote FA (Feature Ability).
A.
Enable remote FA (Feature Ability).
Answers
B.
Connect to a remote PA (Particle Ability).
B.
Connect to a remote PA (Particle Ability).
Answers
C.
Start the remote PA (Particle Ability).
C.
Start the remote PA (Particle Ability).
Answers
D.
Particle Ability (PA) of the Guantuan
D.
Particle Ability (PA) of the Guantuan
Answers
Suggested answer: B
Total 705 questions
Go to page: of 71