Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Huawei > Huawei Certification > H14-231_V1.0

H14-231_V1.0 HCIP-HarmonyOS Application Developer V1.0 Question and Answers

Question # 4

Which of the following belongs to the application layer in the HarmonyOS system architecture?

A.

UI framework

B.

AI subsystem

C.

Phone

D.

kernel

Full Access
Question # 5

When a HarmonyOS app developer uses the form container, which of the following elements can be submitted and reset?

A.

Menu

B.

List

C.

Input

D.

Image

Full Access
Question # 6

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

B.

isEncodeSupportedByMime(String mime)

C.

isDecodeSupportedByMime(String mime)

D.

isDecoderSupportedByFormat(Format format)

Full Access
Question # 7

In the JavaScript UI framework, which layer is used to provide animation parsing, DOM (Document Object Model) tree construction, layout calculation, rendering command construction and drawing, event management, etc.?

A.

Engine Layer

B.

Platform adaptation layer

C.

Front-end frame layer

D.

Application layer

Full Access
Question # 8

When a developer migrates pictures on his mobile phone to a large screen, the interface layout automatically switches from vertical to horizontal; When the image is migrated, the image is migrated from the large screen to the mobile phone, and the interface layout is automatically switched from horizontal to vertical. Excuse me, how did this developer implement this feature?

A.

Use the setMainRoute() method to specify the forwarding device

B.

Implement the IAbilityContribution interface to enable Ability to support migration

C.

Use the continueAbility() method for fetching

D.

Use the onStart() method to rewrite the migration flow

Full Access
Question # 9

How do I define the permissionscorrectly when a developer needs to customize the permissions for the Harmony OS third-party application?

A.

"module": {

"reqPermissions": [

{

"name":"com.myability.permission.MYPERMISSION "

"grantMode":"system_grant",

"availableScope": ["signatures"]

}

}

B.

"module": {

"defPermissions": [

"name":"com.myability.permission.INTERNET",

"grantMode":"user_grant"

"availableScope": ["signatures"]

}

}

C.

"module": {

"defPermissions": [

{

"name":"com.myability.permission.INTERNET",

"grantMode":"system_grant"

"availableScope": ["signatures"]

}

}

D.

"module": {

"defPermissions": [

{

"name":"com.myability.permission.MYPERMISSION",

"grantMode":"system_grant"

"availableScope": ["signatures"]

}

}

Full Access
Question # 10

A developer needs to use the current data network for socket data transmission, and the development process involves the following steps:

1。Send data with sockets.

2。Bind the network with NetHandle.bindSocket().

3。Call NetManager.getDefaultNet() to get the default data network.

4。Call NetManager.getInstance(Context9) to get the instance object of network management.

When the developer combed through the development steps, the above steps were sorted according to the order in which the features were completed in the code. Which of the following is the correct order?

A.

4→1→2→3

B.

4→2→1→3

C.

4→3→2→1

D.

2→1→4→3

Full Access
Question # 11

When the user migrates the video on the mobile phone to the smart screen for playback, there will be a pop-up prompt for the user to confirm whether to start the migration. During the migration process, which of the following methods is first called?

A.

onSaveData()

B.

onStartContinuation()

C.

onRestoreData()

D.

onCompleteContinuation()

Full Access
Question # 12

In order to ensure better responsiveness of the application, developers need to use the task distributor to design the priority of the task.

A.

DEFAULT

B.

MIDDLE

C.

HIGH

D.

LOW

Full Access
Question # 13

The engineer fails to access the network through the get request, and the prompt 'Attempt to invoke virtual method' is displayed, which of the following permissions should be configured in config.json?

A.

harmonyos. permission. INTERNET

B.

harmonyos. permission.ANSWER:

C.

harmonyos. permission. REQUEST

D.

harmonyos. permission. ACCESS_NETTORKSTATE

Full Access
Question # 14

When a developer needs to specify the exact coordinates of the x-axis and y-axis of a sub-component when laying out a component, which layout can be used to achieve this function?

A.

DirectionalLayout

B.

PositionLayout

C.

DependentLayout

D.

StackLayout

Full Access
Question # 15

If an engineer is about to debug a Harmony OS application on an emulator device, which of the following correct debugging processes is the following?

A.

Check the properties of theconfig.json file→the device debugging code type→the installation method of the HarmonyOS Ability Package (HAP) package

B.

Check the attributes of the config.json file→→the installation method of the HarmonyOS Ability Package (HAP) package

C.

Set the code type→device HAP (HarmonyOSAbility Package) package installation method→check the config.json file attributes

D.

Toinstall the HarmonyOS Ability Package (HAP) package on a device→check the attributes of the config.json file→the debugging code type of the device

Full Access
Question # 16

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.

2→1→3→4

B.

1→2→3→4

C.

2→1→4→3

D.

4→1→2→3

Full Access
Question # 17

Which of the services provided by the HarmonyOS Connect solution is Device Parter?

A.

Official Documentation

B.

Service platform

C.

Training support

D.

Certification Testing

Full Access
Question # 18

A developer is developing an alarm clock application, which of the following components can be used to set the hour, minute, and second of the alarm clock?

A.

Checkbox

B.

Switch

C.

DatePicker

D.

TimePicker

Full Access
Question # 19

A developer is developing a ticket booking application, in the selection of the location of the ticket, you need to use the slide selector Picker, in order to highlight the selected text, the developer sets the rendering effect that the selected text margin is greater thanthe ordinary text margin. Which of the following settings are correct?

A.

B.

Picker.setSelectNormal TextMarginRatio(5.0f);

C.

D.

Picker.setSelectNormalTextMarginRatio(5.0);

Full Access
Question # 20

When a developer is developing a game application, in order to display the download progress of game resources, it is necessary to use a circular progress bar, which of the following components can help the developer complete this function?

A.

RoundProgressBar

B.

PageSlider

C.

ToastDialog

D.

ProgressBar

Full Access
Question # 21

How do I define the permissionscorrectly when a developer needs to customize the permissions for a third-party application forHarmony OS?

A.

module: {

reqPermissions: [{

name:com.myability.permission.MYPERMISSION,grantMode:system_grant,

availableScope: [signatures]

}

}

B.

module: {

defPermissions: [{

name:name:com.myability.permission.lNTERNET,

grantMode:user grant,

availableScope: [signatures]

}

}

module: {

defPermissions: [{

C.

name:name:com.myability.permission.INTERNET,

grantMode:system_grant,

availableScope: [signatures]

}

}

module: {

defPermissions: [{

D.

name:name:com.myability.permission.MYPERMISSION,

grantMode:system_grant,

availableScope: [signatures]

}

}

Full Access
Question # 22

If a developer needs to add the Banner function to a page, which of the following components is most suitable for implementing the function?

A.

ScrollView

B.

PageSlider

C.

Text

D.

ListContainer

Full Access
Question # 23

When the system creates a page instance for the first time, which method will be called?

A.

onForeground()

B.

onInactive()

C.

onActive()

D.

onStart()

Full Access
Question # 24

The user migrates the video on the mobile phone to the smart screen for playback, and after the mobile phone saves the data, the smart screen calls back which of the following methods is used to recover the data?

A.

onSaveData ()

B.

onStartContinuation ()

C.

onRestoreData ()

D.

onCompleteContinuation ()

Full Access
Question # 25

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

B.

onStart()→onActive()→onInactive()

C.

onBackground()→onForeground()→onStop()

D.

onActive()→onInactive()

Full Access
Question # 26

After a developer completesthe development of a Harmony OS application, it needs to be published to AppGallery

A.

Apply for the release of certificates and profile files→create an AGC project→create a HarmonyOS app→generate a key and certificate request file→compile and build the app→and put it on the app marketplace

B.

Generate a key and certificate request file→create an AGC project→create a HarmonyOS app→apply for a certificate and profile file→compile and build the app,→put it on the Marketplace

C.

Apply for the release of certificates and profile files→compile and build apps→create AGC projects→create HarmonyOSapps→generate keys and certificate request files→and put them on the app marketplace

D.

Generate a key and certificate request file→create an AGC project→create a HarmonyOS app→compile and build an app→apply for a certificate and Profi1e file, and→list it on the Marketplace

Full Access
Question # 27

Which of the following is NOT acomponent of the Harmony OS object-relational mapping database?

A.

Object data manipulation interface

B.

Database

C.

Solid object

D.

Relationship table

Full Access
Question # 28

A developer needs to use the current scattered data network for socket data transmission, in this scenario, the development process involves the following steps: 1. Use socket to send data.2. Call NetHandle.bindSocket() to bind the network.3. Call NetManager.getDefaultNet() to get the default data network.4. Call NetManager.getInstance(ContextWhen the developer sorts out the development steps, the above steps are sorted according to the order in which the functions are completed in the code. Which of the following is the correct order?

A.

4→1→2→3

B.

4→2→1→3

C.

4→3→2→1

D.

2→1→4→3

Full Access
Question # 29

When the engineer is developing JS (JavaScript), the application can successfully load the local image in the common path, but cannot load the network image.

A.

ohos.permission.READ.MEDIA

B.

ohos.permssion.WRITE_MEDIA

C.

ohos.permission.INTERNET

D.

ohos.permission.GET_NETWORK_INFO

Full Access
Question # 30

After the user migrates the navigation of the mobile phone to the smart watch, if the smart watch needs to obtain the data transmitted from the mobile phone, which of the following methods should it be obtained?

A.

onSaveData ()

B.

onStartContinuation ()

C.

onRestoreData (

D.

onCompleteContinuation ()

Full Access
Question # 31

HarmonyOSsupports developers to customize permissions in the "reqPermissions" field to access permission-protected objects

A.

config.json

B.

ability_main.xml

C.

MainAbilityS1ice.java

D.

string.json

Full Access
Question # 32

When I use the interface to set the system time in HarmonyoS, which of the following is the smallest time unit?

A.

minute

B.

seconds

C.

microseconds

D.

ms

Full Access
Question # 33

If there are 3 Ability sharing a Service instance, how can I exit the Service instance?

A.

Ability does not need to quit

B.

All abilities bound to the Service instance are exited

C.

has 1 Ability to exit

D.

has 2 Ability exits

Full Access
Question # 34

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

B.

lndices creates a composite index name_index for the firstName and 1astName fields

C.

The name of the data table is student

The index value of the

D.

composite index name_index is not unique

Full Access
Question # 35

Which of the following security mechanisms can ensure that application data is not maliciously used?

A.

Permission management

B.

App permissions

C.

port security

D.

Application security

Full Access
Question # 36

The HarmonyOS video module supports the development of video services and the opening of the ecosystem, allowing developers to easily play, operate, and develop new functions of video media through the open interfaces. Video playback includes playback controls, playback settings, and playback queries, such as start/stop playback, playback speed settings, and whether to loop playback. When developing a video playback feature, which of the following steps is correct?

A.

Create a Player instance→construct a data source object and set the media source→call method prepare(),→call method play(), call method stop(→→call method release()

B.

Create a Player instance → call the prepare() → play() →construct the data source object and set the media source→call the stop()→release().

C.

Construct a data source object and set the media source→create a Player instance→call method play(),→call method prepare(),→call method stop(→call method release()

D.

Call the prepare() method→create a Plawer instance→construct a data source object and set the media source→call method→create a Player instance, Play()→call method stop()→call method release()

Full Access
Question # 37

If a developer wants to develop a page with a tab function, the developer can use the TabList component provided by HarmonyOS. If you want to set the color of unchecked text to black. Which of the following codes is correct?

A.

ohos:selected_tab_indicator_color=#000000

B.

ohos:tab_indicator_type=#000000

C.

ohos:normal_text_color=#000000

D.

ohos:selected _text_color=#000000

Full Access
Question # 38

When a developer subscribes to a public event, he processes the public event in the onReceiveEvent() callback function and writes the following code.

EventRunner runner = EventRunner.create();

MyEventHandler myHandler = new

MyEventHandler(rurner);

@Override

public void onReceiveEvent(CommonEventData

commonEventData){

final AsyncCommonEventResult

result=goAsyncCommonEvent Runnable task = new

Runnable(){

@override

pub1ic void run {

......

The action to be performed, defined by the developer

result.finishCommonEvent();

}

};

myHandler.postTask(task);

}

A.

Gives subscribers permissions

B.

implements asynchronous operations, which solves the problem that time-consuming operations cannot be performed on onReceiveEvent

C.

sets the priority of ordered public events

D.

The publisher has the permission to publish sticky public events

Full Access
Question # 39

If a developer wants to use the HarmonyOS speech recognition function, which of the following subsystems will he use?

A.

Location Services subsystem

B.

security subsystem

C.

Media Subsystem

D.

AI subsystem

Full Access
Question # 40

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

A.

Run the program

B.

Implement the function

C.

Create a project

D.

Design interface

Full Access
Question # 41

When a user is traveling by car, a navigation route is planned on the mobile phone, and after getting into the car, the user migrates the mobile phone navigation to the large screen of the car machine. In this scenario, which interface is used to implement cross-device migration?

A.

IAbilityConnection

B.

IAbilityContinuation

C.

AbilityContinuation

D.

AbilityConnection

Full Access
Question # 42

When a developer is developing an online education application, he has designed a feedback function that provides a text input box for users to fill in suggestions, which of the following components can help the developer realize this function?

A.

TextField

B.

Picker

C.

Checkbox

D.

TabList

Full Access
Question # 43

If a developer wants to develop a Data Ability for the storage and management of application data, which of the following can help the developer realize the function ofinserting multiple pieces of data into the database at one time?

A.

query (Uri uri,String[ ]columns, DataAbilityPredicates predicates)

B.

delete(Uri uri,DataAbilityPredicatespredicates)

C.

batchlnsert (Uri uri, ValuesBucket[]values)

D.

insert (Uri uri, ValuesBucket value)

Full Access
Question # 44

If a developer needs to use asyncDispatchBarrier to set up a barrier asynchronously, in this scenario, in order to separate different task groups, the developer can choose which of the following task dispensers?

A.

GlobalTaskDispatcher

B.

SpecTaskDispatcher

C.

SerialTaskDispatcher

D.

ParallelTaskDispatcher

Full Access
Question # 45

In the HarmonyOSsystem architecture, which of the following provides unified peripheral access capabilities and driver development management framework?

A.

KAL (Kernel Abstract Layer)

B.

Ability

C.

UI

D.

HDF (Hardware Driver Foundation)

Full Access
Question # 46

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

B.

If device 1 runs out of power and causes the device to go offline, distributed file X cannot be accessed

C.

With distributed file services, application A on device 1 is able to read and write file Y on device 2

D.

ApplicationA and Application B need to apply for ohos.permission.DISTRIBUTED_DATASYNC permissions to use the full functionality of the distributed file service

Full Access
Question # 47

If a developer wants to develop a page with a tab function, the developer can use theTabList 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

B.

ohos:text_alignment=bottom

C.

ohos:text_alignment=vertical_center

D.

ohos:text_alignment=horizontal_center

Full Access
Question # 48

When a developer is developing a HarmonyOSapplication, if he needs to annotate information for a certain resource file of different types of elements in the Element directory to facilitate the understanding and use of the resource, which of the following methods can be added (XXX represents the comment text)?

A.

"comment": "xxX"

B.

#XXX

C.

/+××X+/ or /XXX

D.

xXxX

Full Access
Question # 49

When the developer jumps to a new page through the button button, the following code is created. If you don't add "" Button button = (Button) findComponentByld(ResourceTable.ld_button) ;" What happens to this line of code?

Public void onStart(Intent intent){

super.onStart(intent);

super.setUlContent

(ResourceTable.Layout_ability_main);

Button button =

(Button)findComponentByld(ResourceTable.ld_button);

button.setClickedListener(listener -> present(new

SecondAbilitySlice(),new Intent()));

}

A.

When you click the button again, the ability crashes

B.

buttonbutton does not show up on the layout

C.

Clicking the button does not respond

D.

Click the button button to jump to a new page

Full Access
Question # 50

When a developer was developing a ticket booking application, he used the sliding selector TimPicker in the time selection of air tickets, according to the requirements of the airline, the time does not need to display the second information, which of the following can meet the needs?

A.

timePicker.enableHour(false);

B.

timePicker.showMinute(false);

C.

timePicker.enableMinute(false);

D.

timePicker.showSecond(false);

Full Access
Question # 51

The permission scope of HarmonyOS refers to whichapplications can apply for a permission, which of the following fields does not belong to the permission open scope?

A.

privileged

B.

signature

C.

restricted

D.

deivced

Full Access
Question # 52

In DevEco Studio, engineers can log in to the emulator after passing the real-name authentication of their HUAWEI ID.

A.

True

B.

False

Full Access
Question # 53

After the user enters a piece of text, with the help of the part-of-speech annotation interface, the application can perform automatic word segmentation, and label each word in the word segmentation result with a correct part of speech. However, the part-of-speech tagging feature provided by HarmonyOS only provides a fixed word segmentation granularity, and developers cannot customize the word segmentation granularity as needed when developing applications.

A.

True

B.

False

Full Access
Question # 54

HarmonyOS application packages are released in the form of application packs, which are composed of one or more HAPs (HarmonyOS Ability Packages) and pack.info describing each HAP attribute.

A.

True

B.

False

Full Access
Question # 55

If a developer wants to be able to get the return result when the user returns from the navigation target AbilitySlice, they should use presentForResult() to implement the navigation. When the user returns from the navigation target AbilitySlice, the system will call onResult() to receive and process the returned result.

A.

True

B.

False

Full Access
Question # 56

When a developer develops an application based on HarmonyOS, the data used by a developer can be decomposed into multiple objects. The developer needs to add, delete, modify, and check the teaching data, but does not want to write overly complex SQL statements. In this scenario, the developer can use an object-relational mapping database to process the data.

A.

True

B.

False

Full Access
Question # 57

HarmonyOS's distributed soft bus enables distributed management of application data and user data.

A.

True

B.

False

Full Access
Question # 58

If you need to use a composite animation, you can combine multiple animation objects and add them to the AnimatorGroup. AnimatorGroup provides two methods: runserially() and runParallel(), which indicate that the animation starts sequentially and the animation starts at the same time, respectively

A.

True

B.

False

Full Access
Question # 59

When users use mobile phones, they will find that the phone number in the text message is often highlighted, and they can dial directly. This is a typical application scenario for entity recognition Al.

A.

True

B.

False

Full Access
Question # 60

When using the location capability of HarmonyOS, developers need to apply for the LOCATION permission, which is a non-sensitive permission and needs to be declared in config.json.

A.

True

B.

False

Full Access
Question # 61

When using EventHandler to implement inter-thread communication, if EventRunner takes out the Runnable task, it will trigger the callback method of EventHandler and the processing method of EventHandler.

A.

True

B.

False

Full Access
Question # 62

In the HarmonyOS system architecture, the distributed data management module belongs to the framework layer.

A.

True

B.

False

Full Access
Question # 63

The object relational mapping database mainly provides light-grade Key-Value exploration, which supports local applications to store less data, and the data is stored in local files and also loaded in memory, so the access speed is faster and more efficient.

A.

True

B.

False

Full Access
Question # 64

Sampling refers to the process of sampling a digital signal in a continuous time domain at certain time intervals to obtain a discrete signal in the discrete time domain.

A.

True

B.

False

Full Access
Question # 65

If the third-party library used by the developer involves permission management, the permission needs to be declared one by one in the config.json file of the application.

A.

True

B.

False

Full Access
Question # 66

In HarmonyOS's "1+8+N" strategy, mobile phones belong to one of the "8" devices.

A.

True

B.

False

Full Access
Question # 67

The application package names of the application projects created by JavaSaript and the applications compiled by the Java projects are HAR (HarmonyOS Ability Resources) and HAP (HarmonyOS Ability Package), respectively.

A.

True

B.

False

Full Access
Question # 68

With the help of the AI-enabled capabilities of HarmonyOS, it can detect and recognize the textof image sources such as document remakes and street view reproductions, and can also be integrated into other applications to provide text detection and recognition functions, and provide translation, search and other related services based on the recognition results. This is by taking advantage of the super-resolution of text and images in AI.

A.

True

B.

False

Full Access
Question # 69

A manufacturer used HarmonyoS to produce a dash cam (memory is 64MB), which is small in size and light in weight, and is a lightweight system device.

A.

True

B.

False

Full Access
Question # 70

The atomic service consists of one or more HAP packets, andone HAP packet corresponds to one FA or one PA. Each FA or PA can be operated independently to perform 1 specific function.

A.

True

B.

False

Full Access
Question # 71

In the process of developing an application based on HarmonyOS, in order to avoid applying for permissions that are unrelated to the user's required functions, a developer uses the UUID generated by the application instead of the device ID to reduce the permission application. The developer's actions exemplify the principle of applying for permissions in the vicinity.

A.

True

B.

False

Full Access
Question # 72

Sservice Abilit calls the onCommand() method after the creation is completed, and the method can be called once when the client starts the service for the first time, and there is no need to call it again in the future

A.

True

B.

False

Full Access
Question # 73

When developing HarmonyOS applications, if the client and server need to communicate across processes, you can use idl to define programming interfaces that are recognized by both.

A.

True

B.

False

Full Access
Question # 74

A developer uses continueAbility() to migrate the distributed news application of the mobile phone to the large screen, and the large screen can also migrate the news browsing page back to the mobile phone.

A.

True

B.

False

Full Access
Question # 75

A manufacturer uses the HarmonyOS system to produce a smart oven, which is a lightweight system device in HarmonyOS.

A.

True

B.

False

Full Access
Question # 76

In the Javascript UI framework, to realize the jump between pages, you need to specify the uri in the page routing router to find the target page.

A.

True

B.

False

Full Access
Question # 77

A HarmonyOS application may not contain a hap package of the feature type.

A.

True

B.

False

Full Access
Question # 78

Suppose that multiple AbilitySlice are associated in MainAbility, and multiple AbilitySlice are switched in the same page, the lifecycle of MainAbility and all AbilitySlice is synchronized.

A.

True

B.

False

Full Access
Question # 79

When using EventHandler to implement inter-thread communication, if EventRunner takes out the InnerEvent event, EventRunner will directly process the event on the new thread.

A.

True

B.

False

Full Access
Question # 80

When a developer is developing a HarmonyOS application, if part of the text in the value field of the JSON resource files of different types of elements in the Element directory does not need to be processed by the translator and will not be displayed on the application interface, a special structure can be used to identify the content that does not need to be translated

A.

True

B.

False

Full Access
Question # 81

HarmonyOS developers can use the "chos. Permission.CET_NET7ORK_INFO request permission to Modify Network Connection Status.

A.

True

B.

False

Full Access
Question # 82

Lightweight data storage is suitable for data storage involving a large number of data relationships and business relationships, and has better read and write performance than relational databases and object-relational mapping databases.

A.

True

B.

False

Full Access
Question # 83

When an Intent is used to initiate a request, if both BundleName and Abilitylame are specified, the application can be started directly according to the full name of the Ability (for example, "com.demcapp.FooAbility").

A.

True

B.

False

Full Access
Question # 84

When a time-consuming operation needs to be performed in a HarmonyOS application, it is preferable to create subthreads in FA instead of creating subthreads in Service.

A.

True

B.

False

Full Access
Question # 85

A developer needs to use the JavaScript UI framework to display the bar chart of the current month's product sales, and can use the chart component to achieve this function.

A.

True

B.

False

Full Access
Question # 86

When a developer starts a music player on a remote device, he or she may not fill inthe Deviceld of the remote device.

A.

True

B.

False

Full Access
Question # 87

In order to improve the user experience, a developer uses ScrollView to realize the scrolling display of photos in an album application, and in order to improve the user experience, the developer sets the ScrollView rebound_effect property to true, so that the photo has a rebound effect when sliding to the bottom.

A.

True

B.

False

Full Access
Question # 88

The input division method of HarmonyOS is different from that of traditional operating systems, and multi-dimensional inputs will be integrated, so that developers can use application frameworks, UI components or interfaces that come with the system to implement applications with multi-dimensional and natural interaction characteristics.

A.

True

B.

False

Full Access
Question # 89

When a developer navigates within the same page, the AbilitySlice is new, even if present(newTargetSlice(), new Intent()) is repeatedly called, it will not cause any AbilitySlice to be out of the stack.

A.

True

B.

False

Full Access
Question # 90

Operations such as the display and update of the UI interface are carried out on the main thread, so the main thread is also called the UI thread.

A.

True

B.

False

Full Access
Question # 91

MATCH_CONTENT indicates that the component size will expand to the maximum allowed by the parent component and occupy the remaining size in the direction of the parent component

A.

True

B.

False

Full Access
Question # 92

Motion sensors may be a single physical sensor, or they may be composed of multiple physical sensors.

A.

True

B.

False

Full Access
Question # 93

Developers can create user interfaces directly on AbilitySlice or on Ability.

A.

True

B.

False

Full Access
Question # 94

A home appliance manufacturer used HarmonyOS to produce a high-end refrigerator with a display (256MB of memory), which is not part of HarmonyOS's standard system device.

A.

True

B.

False

Full Access
Question # 95

The user application package of HarmonyOS may not contain a HAP package of the feature type.

A.

True

B.

False

Full Access
Question # 96

In a HarmonyOS application, there must be one and only one HAP of the feature type.

A.

True

B.

False

Full Access
Question # 97

An engineer uses the WLAN P2P function, and the engineer can establish a P2P group.

A.

True

B.

False

Full Access
Question # 98

HarmonyOS's Data Ability is used to provide an interface for operation data, but cannot provide file-related operations.

A.

True

B.

False

Full Access
Question # 99

HarmonyOS not only has the system capability of a single device, but also supports deployment on multiple devices with different memory sizes based on the same set of system capabilities

A.

True

B.

False

Full Access
Question # 100

JavaScript FA (Feature Ability) lifecycle events are divided into application lifecycle and page lifecycle.

A.

True

B.

False

Full Access
Question # 101

The distributed data management of HarmoryoS is based on the distributed soft bus to realize the distributed management of application data and user data.

A.

True

B.

False

Full Access
Question # 102

Before starting the debugging of the Entry module, the engineer needs to check whether the "visible" attribute exists in the config.jsnabilities array in the config.jsnabilities file under the Entry module, and if it does not exist, it needs to be added manually, otherwise the debugging of the Entry module cannot enter the breakpoint.

A.

True

B.

False

Full Access
Question # 103

HarmonyOS provides the NFC message notification function, through which developers can obtain the message of the NFC switch state change and the NFC field strength message.

A.

True

B.

False

Full Access
Question # 104

When creating an application, which field in the app.json5 or config.json file must be the same as the application package name?

A.

package

B.

name

C.

bundleName

D.

page

Full Access
Question # 105

Which of the following resource directories should the pictures, audios, videos and other media files involved in the application development process be placed in?

A.

animation

B.

graphic

C.

media

D.

Element

Full Access
Question # 106

When a developer develops a HarmonyOS application and uses an intent pass object, which of the following descriptions of intent are correct?

A.

does not specify the BundleName and Ability Name to implement the jump, and the application is started according to other attributes in the operation

B.

Specify the BundleName and AbilityName to implement the jump, and start the application directly according to the full name of the Ability

C.

deals with the work of an application as a whole

D.

is a long-lifecycle, D-program with no user interface that keeps the app running in the background and doesn't disappear by switching pages

Full Access
Question # 107

When creating an application, which field in the config.json file must be the same as the application package name?

A.

package

B.

name

C.

bundleName

D.

page

Full Access
Question # 108

HarmonyOS is designed for 1+8+N full-scene experience, which of the following devices belongs to the "8" in 1+8+N?

A.

headphones

B.

Microwave oven

C.

Audio

D.

Glasses

Full Access
Question # 109

Which of the following breakpoint management functions does the JS code type support?

A.

normal line breakpoint

B.

Exception breakpoint

C.

symbol breakpoint

D.

method breakpoint

Full Access
Question # 110

Regarding the Button component, which of the following styles is a capsule-type button?

A.

ButtonType.Capsule

B.

ButtonType.Normal

C.

ButtonType.Circle

D.

None of the above

Full Access
Question # 111

A PageA contains Ability SliceA1 and AbilitySliceA2, which is displayed as AbilitySliceA1 by default. What are the following steps if you want to navigate directly to PageA's AbilitySliceA2 in PageB on the current device?

A.

Add a route for AbilitySliceA2via addActionRoute() in PageA

B.

Register the action corresponding to PageA in the configuration file

C.

Set the action in the Intent of the PageB navigation

D.

Set Deviceld to empty in the Intent of the PageB navigation

Full Access
Question # 112

If a developer develops a HarmonyOS application and remotely launches a Page on phone B, which of the following permissions does not require the user to request authorization by sending a pop-up window at runtime?

A.

ohos.permission.GET_DISTRIBUTED_DEVICE_INFO

B.

ohos.permission.DISTRIBUTED_DEVICE_STATE_CHANGE

C.

ohos.permission.GET_BUNDLE_INFO

D.

ohos.permission.DISTRIBUTED_DATASYNC

Full Access
Question # 113

Which of the following is the background agent reminder function module supported from API9.

A.

@ohos.reminderAgentManager

B.

@ohos.reminderManager

C.

@ohos.reminderAgent

D.

@ohos.notificationManager

Full Access
Question # 114

If a developer wants to quote the resource files in the base directory and the qualifier directory, which of the following can be used to do so?

A.

Specify the resource type and resource size

B.

Resource name

C.

Resource size

D.

Specify the resource type and resource name

Full Access
Question # 115

When a developer is developing an online education application, in order to improve the user experience, if the userAnswer:s the question correctly, a dialog box of "Congratulations on the correctAnswer:" will pop up at the top of the window.

A.

ToastDialog

B.

Picker

C.

ScrollView

D.

PageSlider

Full Access
Question # 116

Which of the following permissions is required to initiate a network request using HTTP?

A.

ohos.permission.USE_BLUETOOTH

B.

ohos.permission.INTERNET

C.

ohos.permission.REQUIRE_FORM

D.

ohos.permission.LOCATION

Full Access
Question # 117

If a developer wants to use the clipboard service of HarmonyOS to implement simple data transfer between applications, which of the following statements is correct?

A.

can paste the data copied in app A and paste it in app B

B.

You can add or remove callbacks for changes in system clipboard data

C.

can read, write, and query clipboard data from the system clipboard

D.

Clipboard data written to the clipboard service is destroyed at the end of the application

E.

Apps that don't get focus in the foreground also have access to the system clipboard

Full Access
Question # 118

When a user is on a video call,Want to migrate the mobile phone video to the smart screen for playback,When clicking Migrate,Find that the smart screen is already in the optional list,What are the items in the description of the scene?

A.

The mobile phone and the smart screen can be different HUAWEI ID

B.

embodies the self-discovery function of the distributed soft bus

C.

The mobile phone and the smart screen need to be under the same LAN

D.

embodies the characteristics of extremely fast transmission of distributed soft bus

Full Access
Question # 119

In the collaborative office scenario, project the document on the mobile phone to the smart screen, and perform page turning and zoom operations on the document on the smart screen. What distributed capabilities are used in the preceding scenarios?

A.

Distributed Device Virtualization

B.

Distributed Data Service

C.

distributed soft bus

D.

Distributed file services

Full Access
Question # 120

When the state data of @State modification is modified, the () method of the component will be triggered to update the UI interface

A.

build method

B.

onPageShow method

C.

aboutToAppear method

D.

onStart method

Full Access
Question # 121

There are two Text components in the Row component, if you use justifyContent alignment, which of the following properties can achieve left and right alignment?

A.

FlexAlign.Start

B.

FlexAlign.SpaceEvenly

C.

FlexAlign.End

D.

FlexAlign.SpaceBetween

Full Access
Question # 122

Which of the following modules provides a full-duplex communication co-ordination?

A.

HTTP

B.

WebSocket

C.

Socket

D.

Request

Full Access
Question # 123

The library file is the third-party code that the application depends, which are the correct ways to use the following library files?

A.

Create a new module with the source code of the library file as a whole, and the entry directly references the classes in the library file

B.

Put the library files in the libs directory in the form of jar, so, etc., and then reference the dependencies{Implementation project(:mylibrary)} through the build.gradle under the project

If the required library files exist in the maven repository, you can configure the project's build.gradle as follows to useRepositories {.}

C.

Maven{

Url 'XXX'

// Add a Mavenrepository address, which can be a local Maven address or a remote Maven address

}

D.

Put the library file in the libs directory in the form of jar.so, and then refer to the dependencies (Implementationproject(: mylibrary)) through the build.gradle of the application module.

Full Access
Question # 124

The application package name cannot contain some reserved fields, which of the following fields meets the specification?

A.

test

B.

harmony

C.

system

D.

ohos

Full Access
Question # 125

Which of the following methods can be used to deal with navigation within the same page?

A.

Present()

B.

PresentForResult()

C.

StartAbility()

D.

StartAbilityForResult()

Full Access
Question # 126

Which of the following languages does HarmonyOS support for creating application projects?

A.

C++

B.

Python

C.

JS(JavaScript)

D.

Java

Full Access
Question # 127

Which of the following prerequisites are required for developers to access the process of another device or call the methods of another device on one device to achieve multi-device collaboration?

A.

The project contains at least 2 or more modules

B.

Connect to the same WiFi network

C.

You need to select a real device and have been connected to the PC normally

D.

Log in to different HUAWEI IDs

Full Access
Question # 128

In DevEco Studio, what form can developers use to develop HarmonyOS cloud?

A.

IDE plug-in

B.

Project Template

C.

Command-line tools

D.

Visualization Tools

Full Access
Question # 129

If a developer uses custom components when developing a HarmonyOS application, what are the correct descriptions of custom components below?

A.

Add tag elements such as styleable and item to values/attrs.xml

B.

In the constructor with the AttrSet parameter of the custom component, useattrSet.getAttr("XxX").get().getStringValue() to get the property

C.

Add xmlns:app="http://schemas.huawei.com/apk/ res/ohos"to the layout.xml of the component definition

D.

In the constructor of the custom component, call array.getlntegor(ResourceManager.styleab1e.***,100)to get the property

Full Access
Question # 130

HarmonyOSdefines different open scopes and authorization methods to protect data according to the sensitivity of the data involved in the interface

A.

restricted: the certificate can be applied in a controllable manner

B.

privileged: pre-made privileged app

C.

deviceAuthenticationed: device authentication application

D.

signature: the platform signature application

Full Access
Question # 131

If a developer wants to use the device virtualization feature of HarmonyOS, which subsystem will he use?

A.

Location Services subsystem

B.

DV subsystem

C.

Media Subsystem

D.

Safety subsystem

Full Access
Question # 132

When using HarmonyOS distributed terminals, which of the following items can ensure that the system is safe and reliable?

A.

Distributed multi-terminal collaborative identity authentication

B.

The distributed terminal must be a Huawei product

C.

In the process of cross-terminal flow of distributed data, the data is classified and hierarchically managed

D.

Build a trusted operating environment on distributed terminals

Full Access
Question # 133

Which of the following system resources does the Ark Development Framework provide for developers?

A.

string

B.

Picture

C.

Color

D.

Rounded corners

Full Access
Question # 134

What is wrong about the animation parameter in the attribute animation?

A.

The default value of tempo is 1.0

B.

parameter delay cannot be greater than duration

C.

parameter curve can be left unset

D.

parameter iterations can be left unset

Full Access
Question # 135

A HarmonyOS developer uses the EventHandler mechanism to process four events: A, B, C, and D, where event D retains the default priority, and the priority properties of the other three events are set as follows: Event A: Priority.INTERMEDIATE Event B: Priority.HIGH Event C: Priority.IDLEWhich of the following statements about the above events are correct?

A.

Event Awill be delivered immediately

B.

EventB D will be delivered before Event B

C.

delivers event C when there are no other events

D.

EventD will be delivered before Event C

Full Access
Question # 136

The library file is the third-party code that the application depends on, which of the following library files are correct?

A.

Create a new module with the source code of the library file as a whole, and the entry directly references the classes in the library file

B.

Put the library files in the libs directory in the form of jar, so, etc., and then referencethe dependencies dependencies{Implementation project(":mylibrary ")} through the build.gradle under the project

C.

If the required library files exist in the maven repository, you can use repositories{Maven{Url'XXX'//toadd the project's build.gradle as follows The address of the Maven repository, which can be either a local Maven address or a remote Maven address}

}

D.

Put the library file in the libs directory in the form of jar.so, and then reference the dependency library through the build.gradle of the application module

dependencies(Implementation project(":mylibrary"))

Full Access
Question # 137

If the user migrates the video on the machine to the smart screen for playback, which of the following callback methods can save the video playback data on the mobile phone?

A.

onStartContinuation()

B.

onCompleteContinuation()

C.

onRestoreData()

D.

onSaveData()

Full Access
Question # 138

When a developer wants to make the vertical scrolling layout take effect when using the ScrollView control, how should the width of the control corresponding to the layout be set?

A.

match_child

B.

Fixed width value

C.

match_parent

D.

match_content

Full Access
Question # 139

The distributed soft bus is the base for communication between various devices, which of the following does not belong to the bus hub of the distributed soft bus?

A.

Data and Computing Center

B.

Decision-making centre

C.

Task Bus

D.

Interconnection Management Center

Full Access
Question # 140

When a developer develops a background music playback software, he needs to use Service Ability, what are the following correct descriptions of the use process of Service Ability?

A.

Register the Ability in the application manifest file

B.

When you use the connectAbility() method to connect to a Service, you need to pass in the Intent of the target Service

C.

onConnect() needs to return an IRemoteObject object back

D.

Use setElement() of the Intent to set the target service information

Full Access
Question # 141

A developer is developing a flight booking application, and uses the sliding selector Picker to select the location of the ticket and writes the following code.

A.

The width of the component is 300vp

B.

Normal font size is 18fp

C.

Theheight of the C component matches the text size

D.

The selected font size is 16fp

Full Access
Question # 142

The developer is developing a ticket booking application, and uses the slide selector Picker to select the starting point of the ticket and writes the following code.

ohos:id="$+id:test_picker"

ohos:selected_text_color="#FFFFFF"

ohos:value="55"

ohos:max_value="10"

ohos:selector_item_num="10"

ohos:bottom_line_element="#FFFFFF"

ohos:selected_text_size="16fp"/>

A.

Set the font size of the selected Chinese version to 16fp

B.

Choose the color of the Chinese text as white

C.

The current value is 10

D.

The maximum value is 10

Full Access
Question # 143

When adding user information, if the account uses a mobile phone number, which of the following input formats is correct?

A.

86-189****1234

B.

189****1234

C.

+86189****1234

D.

0086-189****1234

Full Access
Question # 144

Which package is imported using the preferences?

A.

@ohos.data.rdb

B.

@ohos.data.preferences

C.

@ohos.router

D.

@ohos.data.storage

Full Access
Question # 145

What is the full name of HUKS in Chinese

A.

encryption and decryption system

B.

Common keystore system

C.

Password management system

D.

Access control system

Full Access
Question # 146

When developing HarmonyOS applications, the main function of EventHandler is to deliver InnerEvent events or Runnable tasks to other threads for processing.

A.

IDLE

B.

HIGH

C.

MIDDLE

D.

LOW

E.

IMMEDIATE

Full Access
Question # 147

Which of the following APIs can I use to query the information of Ability?

A.

bundleManager.queryAbilityByWant

B.

BundleManager.getApplicationInfo

C.

BundleManager.getAbilitylnfo

D.

BundleManager.getBundlelnfo

Full Access
Question # 148

The log content is "01-20 16:08:36.90823597-23597/com.example. myapplicition w00201/MY_TAG: Failed to visit . reason: 503." By analyzing the log, you can't get the following items?

A.

errno value

B.

The log level is Warn

C.

The log level is DEBUG

D.

Content defined in HiLoglabel

Full Access
Question # 149

A HarmonyOS application developer displays three flowers in the form of a list, and the interaction logic code of the page is as follows.

A.

The data for the A listcomes from the textList array, so the list will display three rows

B.

src indicates the path of the image, and value indicates the name of the image

C.

The three images are placed in the images subdirectory in the common directory of the same level as the file on the project page

D.

The developer defines the contents of the textList array, which contains three elements

Full Access
Question # 150

When a company is developing a HarmonyOSapplication, it needs to customize an artboard control, how to get the X coordinates of the current touch point in the whole screen during the listening of touch events?

A.

touchEvent.getPointerScreenPosition(touchEvent.getIndex()).getX()

B.

touchEvent.getPointerPosition(touchEvent.getltem()).getX()

C.

touchEvent.getPointerScreenPosition(touchEvent.getltem()).getX()

D.

touchEvent.getPointerPosition(touchEvent.getlndex()).getX()

Full Access
Question # 151

During the development of a HarmonyOS application, a developer needs to obtain the uplink and downlink traffic of a specified NIC. Which of the following interfaces does the developer need?

A.

getAllTxBytes()

B.

getAllRxBytes()

C.

getlfaceTxBytes(String nic)

D.

getlfaceRxBytes(String nic)

Full Access
Question # 152

A developer called the getDefaultHost(Context context) interface of BluetoothHost to obtain a Bl1uetoothHost instance for managing local Bluetooth operations. The developer uses the following development steps to implement Bluetooth pairing:

1Turn on Bluetooth.

2Scan Bluetooth.

3. Initiate pairing.

Which of the following statements about steps 1, 2, and 3 is true?

A.

calls startBtDiscovery()to complete step 2

B.

The order in which steps 2 and 3 are implemented can be reversed

C.

calls the enableBt()interface to complete step 1

D.

calls startPair()to complete step 3

Full Access
Question # 153

There is a configljson configuration file in the root directory of each HAP (HarmonyOS Ability Package) of a HarmonyOS application.

A.

app

B.

deviceConfig

C.

module

D.

abilities

Full Access
Question # 154

Which of the following subsystems in HarmonyOS is part of the basic software servicesubsystem set?

A.

Media Subsystem

B.

Location Services Subsystem

C.

Telephony subsystem

D.

Event Notification Service Subsystem

Full Access
Question # 155

Regarding Hongmeng's atomic service, the following statement is correct

A.

Atomic service is displayed as a card in the Services Hub that can be added to thedesktop

B.

When an atomic service is managed and distributed by the Marketplace, its size cannot exceed 10 MB

C.

Atomic service is an installation-free application with an independent entrance

D.

Atomic services correspond to one HAP package and are used to complete one specific convenience service

Full Access
Question # 156

HarmonyOS maintains a stack of AbilitySlice instances for each Page, and each AbilitySlice instance that enters the foreground will be added to the stack.

A.

True

B.

False

Full Access
Question # 157

When an engineer compiles and builds a HarmonyOS Ability Package (HAP) with debugging signature information in DevEco Studio, he or she needs to apply for a debugging certificate and profile file in advance.

A.

SignAlg

B.

Certpath File

C.

Profile File

D.

Store File

Full Access
Question # 158

Encoding is the process of converting information from one form or format to another, which of the following can be encoded?

A.

text

B.

figures

C.

Image

D.

video

Full Access
Question # 159

A developer wants to use JS (JavaScript) to develop an application on the smart screen,Which of the following development languages does the developer need to master?

A.

C/C++

B.

CSS

C.

HTML5

D.

JavaScript

Full Access
Question # 160

A developer needs to use the emulator in DevEco Studio, click to log in to the emulator and enter your HUAWEI ID, and the browser will directly jump to the real-name authentication interface. What are the reasons for this problem?

A.

has just completed real-name authentication, but the authentication has not yet taken effect

B.

used the Chrome browser

C.

HUAWEI ID does not have real-name authentication

D The account is not registered

Full Access
Question # 161

HarmonyOS supports on-demand elastic deployment of a variety of terminal devices.

A.

supports the configuration of the feature set within the component

B.

does not support the association of dependencies between components

C.

Support the on-demand selection of each component

D.

Clipping of functions within the component is not supported

Full Access
Question # 162

Which of the following functions does the HarmonyOS network management module provide?

A.

Data connection management

B.

Data network management

C.

Traffic statistics

D.

Create a local socket

Full Access
Question # 163

A developer needs to read the resource file in the rawfile folder, and the following code can be used to read it successfully.

Image

image(Image)findComponentByld(ResourceTable.Id_component_image);

Image.setPixelMap (ResourceTable.Media hawei);

A.

True

B.

False

Full Access
Question # 164

What types of conversion functions are supported for static animations in HarmonyOS?

A.

rotate: Rotates the specified angle of the specified assembly along the horizontal or vertical axis or center point

B.

animation-timing-function: Describes the speed curve of animation execution to make the animation smoother

C.

translate: Moves the specified component the required distance horizontally or vertically

D.

scale: Scales the specified component down or in portrait orientation to the desired scale

Full Access
Question # 165

Which of the following properties of state decorator decorating must be initialized locally?

A.

@State

B.

@Prop

C.

@Link

D.

@Provide

E.

@Consume

Full Access
Question # 166

To publish a public event with permissions in HarmonyOS, you need to set subscriber permissions in the code.

A.

True

B.

False

Full Access
Question # 167

Relational databases provide the ability to add, delete, modify, and query local data.

A.

corresponds to the interface where data is inserted, and returns the line number of the latest inserted data when the insertion is successful, and 0 when it fails.

B.

For interfaces that update data, the return value indicates the number of rows affected by the update operation, and returns 0 if the update fails.

C.

For interfaces that delete data, the return value indicates the number of deleted data rows, and if the deletion fails, it returns 0.

D.

For APIs that query data, you cannot run native SQL statements for query operations

Full Access
Question # 168

If you need to use a composite animation, you can combine multiple animated objects and add them to the AnimatorGroup. The AnimatorGroup provides two methods: runSerially() and runParallel(). Indicates that the animation starts at the same time and that the animation starts sequentially.

A.

True

B.

False

Full Access
Question # 169

To publish an app, a HarmonyOS developer needs to use a certificate request file (Cerificate Signing Request) to apply for a digital certificate from AppGallery Connect.

A.

Name of the organization

B.

Common name

C.

Public key

D.

Organizational unit

Full Access
Question # 170

The user and provider of the service card do not require permanent operation, and when it is necessary to add, remove, or request to update the card, the card management service will pull up the card provider to obtain the card information.

A.

True

B.

False

Full Access
Question # 171

Which of the following statements is correct?

A.

preference follows the ACID characteristic

B.

Preference is to access data in the form of Key-Value

C.

The number of data stored in the preference is recommended not to exceed 10,000

D.

The key of the preference is of type String

Full Access
Question # 172

When a developer is developing a flight booking application, he needs to use the sliding selector DatePicker in the date selection of air tickets, and in order to improve the user experience, he needs to set the color of a single year/month/day item in operation to blue (#0000FF), which of the following items can meet the development needs?

A.

ohos:selected text color=#0000FF

B.

datePicker.setSelectedTextColor(new Color(Color.getlIntColor( "#0000FF")));

C.

datePicker.setPeratedTextColor(new Color(Color.getIntColor("#000OFF")));

D.

ohos:operated_text_color="0000FF"

Full Access
Question # 173

What are the common problems in uploading software packages during the listing process of HarmonyOS applications/metaservices?

A.

The release profile file in the package does not match the application of the currently uploaded package

B.

The release certificate in the software package does not match the release certificate in the release profile file

C.

Package Unsigned Indicates Illegal Package

D.

The certificate used in the package has expired, and the expired certificate has expired

Full Access
Question # 174

A developer is using CommonEventData to encapsulate information about ordered public events for data processing when publishing, distributing, and receiving. What do I need to pay attention to when developing?

A.

data is the result data of an ordered public event

B.

intent is not allowed to be empty

C.

intent—must be empty

D.

codeis the result code of an ordered public event

Full Access
Question # 175

Which of the following service SDKs has been integrated with device-cloud integration?

A.

SCF

B.

Cloud Database

C.

Cloud storage

D.

Cloud hosting

Full Access
Question # 176

What are the boot modes of UIAbility?

A.

singleton

B.

specified

C.

multition

D.

Builder

Full Access
Question # 177

A Page Ability (hereinafter referred to as "Page") may consist of one or more AbilitySlice, which refers to the sum of a single page of an application and its control logic.

A.

True

B.

False

Full Access
Question # 178

When a developer is developing an application, he uses DevEco Studio to create an empty Java project, but does not install Node.js separately, and can still develop the project normally.

A.

True

B.

False

Full Access
Question # 179

The following description of the basic components of the ArkTS declarative development paradigm is correct

A.

Decorator: Used to decorate classes, structs, methods, and variables to give them a special meaning, e.g. @Entry indicates that this is an entrance component.

B.

Custom components: Reusable UI units that can be combined with other components.

C.

UIDescription: A declarative method to describe the structure of the UI, such as a code block in the build() method.

D.

Built-in components: Built-in basic components and layout components in ArkTS by default, such as Column, Text, Divider, Button, etc., can be called by developers.

E.

attributemethod: used to configure component attributes, which are set through attribute methods, such as fontSize(), width(), height(), color(), etc.

F.

Event method: It is used to add the component's response logic to the event, which is set through the event method, such as onClick() following the Button.

Full Access
Question # 180

What are the types of background agent reminder services?

A.

Countdown class

B.

Calendar class

C.

Alarm clock class

D.

Schedule

Full Access
Question # 181

What is correct about Web Component Description A?

A.

web componentis a component that provides the ability to display web pages.

B.

Theincoming address of a web component can be a local resource or a network resource.

C.

WebController can control various behaviors of web components, such as the forward and backward functions of web pages.

D.

When accessing online web pages, you need to add network permissions.

Full Access
Question # 182

An engineer wrote the following code, which items are correct in the description of the following code?

@Entity(tableName="user",ignoredColumns={"ignoredColumn1","ignoredColumn2"},indices ={@Index(value ={"firstName","lastName"),name="name_index",unique =true)})

A.

"name_index" is the composite index name

B.

index values are not unique

C.

"ignoredColumns" indicates that the field does not need to be added to the properties of the "user" table

D.

Thetable is named "user".

Full Access
Question # 183

The HarmonyOS Media Management module provides capabilities for audio playback, audio recording, audio and video synthesis, and video decoding.

A.

True

B.

False

Full Access
Question # 184

When a developer develops a social application, he needs to develop a plug-in that generates a contact QR code. In this scenario, the developer can use the code generation Al capability provided by HarmonyOS, which can return the corresponding QR code image byte stream based on the given string information.

A.

True

B.

False

Full Access
Question # 185

When developers use HarmonyOS distributed terminals, which of the following items can ensure that the system is safe and reliable?

A.

In theprocess of cross-terminal flow of distributed data, the data is classified and hierarchically managed

B.

Distributed multi-terminal collaborative identity authentication

C.

Build a trusted operating environment on distributed terminals

D.

Thedistributed terminal must be a Huawei product

Full Access
Question # 186

In order to put a series of related download tasks into a task group, a developer uses the following code:

String dispatcherName =

"parallelTaskDispatcher";

TaskDispatcher dispatcher =

createParallelTaskDispatcher(dispatcherName,TaskPriority.DEFAULT);

Group group

=dispatcher.createDispatchGroup();

dispatcher.asyncGroupDispatch(group,new

Runnable(){

@Override

public void run(){

HiLog.info(LABEL_LOG,"download taskl is

running ");

}

});

dispatcher.groupDispatchlotify(group,new

Runnable(){

@0verride

public void run(){

HiLog.info(LABEL_L0G,"the close task2 is

running");

}

});

dispatcher.groupDispatchlotify(group,new

Runnable(){

@Override

public void run(){

HiLog.info(LABEL_L0G, "the close task is

running after all tasks in the group are

completed");

}

});

If the developer runs this code, which of the following results might occur?

A.

the close task is running after all tasks in the group are completed download task1 is running download task2 is running

B.

download task1 is running the close task is running after all tasks in the group are completed dowmload task2 is running

C.

download task1 is running download task2 is running the close task is running after all tasks in the group are completed

D.

download task2 is running download task1 is running the close task is running after all tasks in the group are completed

Full Access
Question # 187

When a user is on a video call,Want to migrate the mobile phone video to the smart screen for playback,When clicking Migrate,Find that the smart screen is already in theoptional list,What are the correct descriptions of the scene?

A.

It embodies the characteristics of extremely fast transmission of distributed soft bus

B.

requires the mobile phone and the smart screen to be under the same LAN

C.

embodies the self-discovery function of the distributed soft bus

D.

mobile phones and smart screens can make different Huawei accounts

Full Access
Question # 188

When testing the Bluetooth Low Energy feature of HarmonyOS, a developer needs to make the central device perform Bluetooth scanning. Which of the following descriptions of the developer's actions are correct?

A.

Get scan filter, if the filter isempty, it is not used to scan without filter

B.

calls startScan() to start scanning the Bluetooth device

C.

Before performing Bluetooth scanning, it is necessary to inherit the advertiseCallback class to implement startResultEvent

Callback, which is used to receive scan results

D.

Call the BleCentralManager(BleCentralManagerCal1lback callback)API to obtain the device management object

Full Access
Question # 189

API9 and above, router.pushUrl() method mode parameter can be configured to which of the following modes used by the jump page?

A.

Standard

B.

Single

C.

Specified

D.

None of the above is true

Full Access
Question # 190

Knowing the variable int a=123, which of the following codes can successfully print the value of variable a in the console?

A.

HiLog.info(LABEL,String.format("a =%d",a));

B.

HiLog.info(LABEL,"a=%(public)d",a);

C.

HiLog.info(LABEL,"a =%d",a);

D.

HiLog.info(LABEL,"a =%{private}d",a);

Full Access
Question # 191

The Ark Development Framework of HarmonyOS includes a Web-like development paradigm based on TS extensions and a declarative development paradigm based on JS extensions.

A.

True

B.

False

Full Access
Question # 192

What are the parts of the HarmonyOS cloud development project?

A.

end development project (Application)

B.

CloudProgram

C.

External Libraries on theside

D.

Public Resource Library (Resource)

Full Access
Question # 193

When developing an application, a developer uses the WLAN P2P function to realize point-to-point data transmission between devices. Function 2, Create and remove groups, Function 3, Initiate a connection to the peer device.Which of the above functions is correct in the following descriptions?

A.

To implement function 2, you need to use the createGroup() and removeGroup() interfaces, and you need to ohos.permission.GET_WIFI_INFO permissions

B.

In order to achieve the above functions, you need to initialize the P2P messenger through the init(), interface, and need to request ohos.permssion.GET_WIFI_INFO and ohos.premission.SET_WIFI_INFO permissions.

C.

In order to implement feature 3, connect() needs to be used, and ohos.permission.SET_WIFI_INFO permission needs to be requested

D.

To implement function 1, you need to use the discoverDevices() interface, and you need to request the ohos.permission.SET WIFI INFO permission

Full Access
Question # 194

What are the following options that belong to the JavaScript UI framework?

A.

Application Layer

B.

Front-end frame layer

C.

Engine Layer

D.

Platform adaptation layer

Full Access
Question # 195

Mobile terminal devices have penetrated into all aspects of people's daily life, such as checking the weather, news and anecdotes of the city, traveling taxi, travel navigation, and sports records. These accustomed activities are inseparable from locating the location of the user's terminal equipment. What positioning technologies does HarmonyOS's location services subsystem provide?

A.

GPS

B.

Beidou

C.

WLAN

D.

Base Station

E.

Bluetooth

Full Access
Question # 196

Which of the following functions does the HarmonyOS network management module provide?

A.

Data connection management

B.

Data network management

C.

Traffic statistics

D.

Create a local socket

Full Access
Question # 197

The network management module of HarmonyOS provides a data networkmanagement function, which can effectively manage HTTP caches to reduce data traffic.

A.

True

B.

False

Full Access
Question # 198

What capabilities does the public event service provide for the application?

A.

Unpublish a public event

B.

Subscribe to public events

C.

Publish a public event

D.

Unsubscribe from public events

Full Access
Question # 199

There is an application A that occupies a large amount of memory and a background service B on the mobile phone, but there is no binding relationship between the two. What are the following scenarios that may cause Service B to be stopped?

A.

App A calls onCommand() to stop service B

B.

applies A to call stopAbility() to stop service B

C.

service B calls terminateAbility() by itself

D.

The system is tight on memory and slow to respond

Full Access
Question # 200

Which of the following descriptions of traditional Bluetooth operation is correct for HarmonyOS devices?

A.

Bluetooth device scan can be initiated through the startBtDiscovery() interface

B.

Before starting Bluetooth scanning, you need to register to broadcastBluetoothRemoteDevice

EVENT_DEVICE_DISCOVERED

C.

You can use the getLocalName() interface to check whether Bluetooth is turned on

D.

If you want to get the scanned device, you must inherit the onReceiveEvent(CommonEventData data) method that implements the ConmonEventSubscriber class when you register the broadcast, and receive the EVENT_DEVICE_DISCOVERED broadcast

Full Access
Question # 201

Suppose that multiple AbilitySlice are associated in MainAbility, and multiple AbilitySlice are switched in the same page, the lifecycle of MainAbility and all AbilitySlice is synchronized.

A.

True

B.

False

Full Access
Question # 202

Which of the following subsystems in HarmonyOS belongs to the Enhanced Software Services subsystem?

A.

Wearable business subsystem

B.

Sign-in service subsystem

C.

Smart large-screen business subsystem

D.

Media subsystem

Full Access
Question # 203

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

A.

DV subsystem

B.

Proprietary business subsystem of smart screen

C.

Safety subsystem

D.

Media subsystem

Full Access
Question # 204

The KV data model is a SQL-type database whose data is organized, indexed, and stored in the form of key-value pairs.

A.

True

B.

False

Full Access
Question # 205

What are the following types of task dispensers that HarmonyOS provides for developers?

A.

Global Concurrent Task Dispenser

B.

Concurrent task distributor

C.

Serial task dispenser

D.

Proprietary task distributor

Full Access
Question # 206

Which of the following properties can be used for components that contain text elements, such as Text, Button, TextInput, etc.?

A.

fontColor

B.

fontSize

C.

fontStyle

D.

fontWeight

E.

fontFamily

Full Access
Question # 207

A developer needs to use the emulator in DevEco Studio, click to log in to the emulator and enter your HUAWEI ID, and the browser will directly jump to the real-name authentication interface. What are the reasons for this problem?

A.

has just completed real-name authentication, but the authentication has not yet taken effect

B.

Account is not registered

C.

uses the Chrome browser

D.

The HUAWEI ID is not verified

Full Access