Summer Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

HCIP-HarmonyOS Application Developer V1.0 Question and Answers

HCIP-HarmonyOS Application Developer V1.0

Last Update May 21, 2024
Total Questions : 695

We are offering FREE H14-231_V1.0 Huawei exam questions. All you do is to just go and sign up. Give your details, prepare H14-231_V1.0 free exam questions and then go for complete pool of HCIP-HarmonyOS Application Developer V1.0 test questions that will help you more.

H14-231_V1.0 pdf

H14-231_V1.0 PDF

$35  $99.99
H14-231_V1.0 Engine

H14-231_V1.0 Testing Engine

$42  $119.99
H14-231_V1.0 PDF + Engine

H14-231_V1.0 PDF + Testing Engine

$56  $159.99
Questions 1

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

Options:

A.  

Wearable business subsystem

B.  

Sign-in service subsystem

C.  

Smart large-screen business subsystem

D.  

Media subsystem

Discussion 0
Questions 2

If a developer uses the DevEco Studio tool for application development, which of the following commissioning methods does the tool support?

Options:

A.  

Android Debug Bridge

B.  

Previewer

C.  

Simulator

D.  

Real machine

Discussion 0
Questions 3

JavaScriptUl does not support async and await syntax.

Options:

A.  

True

B.  

False

Discussion 0
Questions 4

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 5

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

Options:

A.  

Before you start Bluetooth scanning, you need to register for a broadcastBluetoothRemoteDevice.EVENT_DEVICE_DISOOVERED

B.  

can initiate a Bluetooth device scan through the startBtDiscovery() interface

C.  

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

D.  

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

Discussion 0
Questions 6

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

Options:

A.  

Data connection management

B.  

Data network management

C.  

Traffic statistics

D.  

Create a local socket

Discussion 0
Questions 7

If an engineer uses the two-way preview function of JavaScript in DevEco Studio, which of the following items can be supported after the function is enabled?

Options:

A.  

Component Tree

B.  

Code Editor

C.  

UI interface

D.  

Terminal

Discussion 0
Questions 8

Which modules in the following figure can be installed and operated independently?

Options:

A.  

Entry.hap

B.  

Feature

B.  

hap

C.  

Feature

C.  

hap

D.  

FeatureA.hap

Discussion 0
Questions 9

Which of the following subsystem sets are included in the basic capability subsystem of the HarmonyOS system architecture?

Options:

A.  

Distributed task scheduling

B.  

Distributed data management

C.  

Media Subsystem

D.  

User Program Framework

Discussion 0
Questions 10

When developing a HarmonyOS application, a developer receives the following product request: If a user logs in to the same HarmonyOS account on device A and device B, the user can log in to the app on device A and synchronize the application account authentication information to device B as needed. After the account authentication information is synchronized, the user can open the application on device B and log in directly without entering the application account authentication information again. Which of the following descriptions of this scene is correct?

Options:

A.  

The developer can do this with the help of DVID, as the application can access and manage distributed devices based on the DVID

B.  

The developer can use the UUID to do this, because the app can uniquely identify the same device with the UUID during its lifetime

C.  

If the developer uses the UUID to achieve the above requirements, the UUID flag will still exist after the application is uninstalled

D.  

If the developer uses the DVIDto achieve the above functions, the DVID is strongly associated with the HarmonyOS account and application information, so it can prevent other applications from accessing the current application data

Discussion 0
Questions 11

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 12

Which of the following decorators can be used to manage the state of variables in custom components?

Options:

A.  

@Component

B.  

@Entry

C.  

@State

D.  

@Link

Discussion 0
Questions 13

HarmonyOS single-version distributed databases do not enable automatic synchronization between networked devices by default, but you can enable automatic synchronization if necessary.

Options:

A.  

True

B.  

False

Discussion 0
Questions 14

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?

Options:

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

Discussion 0
Questions 15

The description of the ForEach(arr,itemGenerator,index) component is correct

Options:

A.  

ForEach can loop through logical code, such asconsole.info ('hello').

B.  

The first parameter must be an array, providing a data source for circular rendering.

C.  

The second parameter generates the lambda function of the child component, which generates the child component for each array item in the data source.

D.  

The third parameter is an anonymous function that generates a unique and stable key value for a given array item.

Discussion 0
Questions 16

When a developer compiles a project, the compilation fails, and the message "This device type does not match project profile" is displayed, because the device type configured in "config.json" does not match the device type for debugging, and "deviceType" needs to be configured in the "module" tag.

Options:

A.  

True

B.  

False

Discussion 0
Questions 17

When using DevEco Studio for debugging, you need to check the properties in configjson regardless of whether you use a real machine or an emulator.

Options:

A.  

True

B.  

False

Discussion 0
Questions 18

If a developer needs to use the JavaScript UI framework to display the bar chart of the month's product sales, he can use the chart component to implement this function.

Options:

A.  

True

B.  

False

Discussion 0
Questions 19

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 20

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

Options:

A.  

Standard

B.  

Single

C.  

Specified

D.  

None of the above is true

Discussion 0
Questions 21

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

Options:

A.  

Unpublish a public event

B.  

Subscribe to public events

C.  

Publish a public event

D.  

Unsubscribe from public events

Discussion 0
Questions 22

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 23

Which of the following components are container components?

Options:

A.  

Button

B.  

Row

C.  

Column

D.  

Image

E.  

TextInput

Discussion 0
Questions 24

What are the componentization characteristics of custom components?

Options:

A.  

Combinable

B.  

Reusable

C.  

Configure the lifecycle

D.  

Data-driven updates

Discussion 0
Questions 25

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?

Options:

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

Discussion 0
Questions 26

When a developer uses HarmoyOS system security, which of the following functions makes the device have the ability to prove its security to other virtual devices?

Options:

A.  

Device certificate certification

B.  

Safe Boot

C.  

Trusted Execution Environment

D.  

Zero trust model

Discussion 0
Questions 27

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 28

Which of the following service management mechanisms does HarmonyOS's distributed task scheduling consist of?

Options:

A.  

Service Registration

B.  

Service discovery

C.  

Service calls

D.  

Service synchronization

Discussion 0
Questions 29

What are the life cycle states of UIAbility?

Options:

A.  

Create

B.  

WindowStageCreate

C.  

dForeground

D.  

Background

E.  

WindowStageDestroy

F.  

Destroy

Discussion 0
Questions 30

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

Options:

A.  

text

B.  

figures

C.  

Image

D.  

video

Discussion 0
Questions 31

Which of the following statements is correct?

Options:

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

Discussion 0
Questions 32

Which of the following are the lifecycle callback functions of Ability?

Options:

A.  

onCreate

B.  

onDestroy

C.  

onPageShow

D.  

onPageHide

E.  

onForeground

F.  

onBackground

Discussion 0
Questions 33

Which of the following methods can a developer use to obtain the actual pixel size corresponding to 8VP on the current device?

Options:

A.  

int size4 =AttrHelper.convertDimensionToPix(getContext(),"8vp”,0);

B.  

int size3=AttrHelper.convertDimensionToPix(getContext(),"8",0);

C.  

int size2 =AttrHe1per.vp2px(8,getContext());

D.  

int sizel =(int)(Dislaylanager.getInstance

().getDefaultDisplay(

getContext().get().getRealAttributes().scalDensity*8 +.5f);

Discussion 0
Questions 34

In the JavaScript FA development self-record, the file ending hml is used to describe the current page layout structure, the components used in the page, and the hierarchical relationship between these components, and the following code should be placed in the file.

Options:

A.  

True

B.  

False

Discussion 0
Questions 35

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 36

What are the reasons why a developer wants to use the previewer in DevEco Studio to view the application interface of the design, but the previewer cannot be used?

Options:

A.  

Preview is not supported for files currently open in the editor

B.  

SDK has not been updated to the latest version

C.  

The previewer resource was not downloaded

D.  

Projectis not synchronized successfully

Discussion 0
Questions 37

If a developer wants to implement the page swiping function in an application, which of the following components can be used to implement the function?

Options:

A.  

Picker

B.  

ListContainer

C.  

Switch

D.  

ScrollView

Discussion 0
Questions 38

What are the scenario-based capabilities included in the HarmonyOS feature?

Options:

A.  

One-time development and multi-terminal deployment

B.  

can be divided and combined, free circulation

C.  

Unified ecology and native intelligence

D.  

High-frequency operation to improve efficiency

Discussion 0
Questions 39

A developer wants to use the list component of the JavaScript UI framework to display a table.

scrollpage="true"

scrollbar="on"

shapemode="round"

scrolleffect="no">

{{Sitem.title}}

{{Sitem.date}}

Options:

A.  

slides out of the viewport with the non-list part of the page at the top of the list

B.  

Displayed when the inverted edge slider is touched, disappears after 2 seconds

C.  

The side slider is circular

D.  

Swiping to the edge has no effect

Discussion 0
Questions 40

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

Options:

A.  

@State

B.  

@Prop

C.  

@Link

D.  

@Provide

E.  

@Consume

Discussion 0
Questions 41

In order to solve the problem of safety risks when walking or cycling, a travel navigation company uses HarmoryOS to push mobile navigation reminders to its watch.

Options:

A.  

Distributed data management

B.  

Distributed soft bus

C.  

Distributed device virtualization

D.  

Distributed task scheduling

Discussion 0
Questions 42

In HarmonyOS, when a subscription action is performed after an out-of-order public event is published, subscribers can also receive the out-of-order public event.

Options:

A.  

True

B.  

False

Discussion 0
Questions 43

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 44

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

Options:

A.  

SCF

B.  

Cloud Database

C.  

Cloud storage

D.  

Cloud hosting

Discussion 0
Questions 45

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 46

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

Options:

A.  

Application Layer

B.  

Front-end frame layer

C.  

Engine Layer

D.  

Platform adaptation layer

Discussion 0
Questions 47

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

Options:

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

Discussion 0
Questions 48

HarmonyOS is classified according to the size of the device's memory, which of the following categories can be divided into?

Options:

A.  

Small system equipment

B.  

Large-scale system equipment

C.  

Lightweight system equipment

D.  

Standard system equipment

Discussion 0
Questions 49

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

Options:

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

Discussion 0
Questions 50

Barrier-free color palettes should meet the identification needs of color blindness, and safe color palettes can be found by simulating the visual effects of different similar color defects.

Options:

A.  

True

B.  

False

Discussion 0
Questions 51

When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component, and 0FF should be displayed on the closed state component. You can use the following code to meet your needs:

Switch btnSwitch=

(Switch)findComponentByld(ResourceTable.

ld_btn_switch);

btnSwitch.setStateOffText("ON");

btnSwitch.setStateOnText("OFF");

Options:

A.  

True

B.  

False

Discussion 0
Questions 52

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

Options:

A.  

DV subsystem

B.  

Proprietary business subsystem of smart screen

C.  

Safety subsystem

D.  

Media subsystem

Discussion 0
Questions 53

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 54

HarmonyOS's relational database and object relational mapping database are both based on SQLite.

Options:

A.  

True

B.  

False

Discussion 0
Questions 55

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 56

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 57

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 58

In HarmonyOS, by default, the UI interface is displayed and updated in the main thread

Options:

A.  

True

B.  

False

Discussion 0
Questions 59

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 60

In HarmonyOS's "1+8+N" strategy, smart microwave oven devices belong to "N" devices.

Options:

A.  

True

B.  

False

Discussion 0
Questions 61

A developer needs to make a list of the minimum necessary permissions for the application he develops. If the minimum necessary permissions list is output correctly, the lack of one of these permissions will cause the application-related services to be unable to implement or run normally.

Options:

A.  

True

B.  

False

Discussion 0
Questions 62

The lightweight preference database is a non-relational database, which mainly provides lightweight key-value operations and supports local applications to store a large amount of data. If a HarmonyOS developer uses a lightweight preference database to save data, the data will be stored in a local file and will not be loaded into memory.

Options:

A.  

True

B.  

False

Discussion 0
Questions 63

After the page is jumped or overwritten, it will enter the INACTIVE state, but the resources will not be released, and when the page switches back to the ACTIVE state, the click event will still respond normally.

Options:

A.  

True

B.  

False

Discussion 0
Questions 64

A HarmonyOS developer uses syncDispatch to synchronously dispatch tasks when developing applications. In this scenario, syncDispatch dispatches the task and waits for the task to complete on the current thread, so the current thread is not blocked until it returns.

Options:

A.  

True

B.  

False

Discussion 0
Questions 65

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 66

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 67

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 68

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 69

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 70

The ListContainer grid layout can be realized through the setLayoutManager() method

Options:

A.  

True

B.  

False

Discussion 0
Questions 71

A developer wants to use macOS for HarmonyOS application development, but the development tool DevEco Studio does not support macOS installation.

Options:

A.  

True

B.  

False

Discussion 0
Questions 72

When installing the HarmonyOS application development environment, if the network can directly access the Internet, developers need to set up Gradle and NPM agents to configure the development environment correctly.

Options:

A.  

True

B.  

False

Discussion 0
Questions 73

When an engineer packages an application, DevEco Studio will package all the HAP (HarmonyOS Ability Package) modules in the project directory into the application, so if there are HAP modules in the project directory that do not need to be packaged into the application, the tool will automatically delete them and then compile and build the application.

Options:

A.  

True

B.  

False

Discussion 0
Questions 74

In multiple distributed devices with the same HarmonyOS account, after logging in to an app, the app can synchronize the app account authentication information (account name, token or other) to other devices as needed.

Options:

A.  

True

B.  

False

Discussion 0
Questions 75

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 76

In order to improve the image quality of network source images, developers can use the Instant Messaging (IM) class intent recognition interface provided by HarmoyOS.

Options:

A.  

True

B.  

False

Discussion 0
Questions 77

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 78

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 79

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 80

HarmonyOS provides the Al capability of Instant Messaging (IM) intent, which can convert speech signals into text or commands, and identify the user's intent represented by the message content.

Options:

A.  

True

B.  

False

Discussion 0
Questions 81

A Page Instance can contain a group of related pages, and each page is represented by an AbilitySlice instance.

Options:

A.  

True

B.  

False

Discussion 0
Questions 82

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 83

When a developer uses mobile phones and smart screens to develop applications, he can select two device types, smartphones and smart screens, in the AppGallery project.

Options:

A.  

True

B.  

False

Discussion 0
Questions 84

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 85

Intent is a carrier for transmitting information between objects.

Options:

A.  

True

B.  

False

Discussion 0
Questions 86

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 87

The following code snippet is used to start the Service of the remote device, if it is replaced with the Service.withDeviceld("deviceld") that starts the local device, it can be deleted.

Intent intent =new Intent();

Operation operation =new Intent.OperationBuilderO

.withDeviceld("deviceld")

.withBundleName

("com.domainname.hiworld.himusic")

.withAbilityName("com.domainname.hiworld.himusic.ServiceAbility")

.withFlags(Intent.FLAG_ABILITYSLICE_MULTI_DEVICE)

.bui1d();

intent.setOperation(operation);

startAbility(intent);

Options:

A.  

True

B.  

False

Discussion 0
Questions 88

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 89

The network management module of HarmonyOS can realize the communication between different processes of the machine, and the communication supports streaming socket technology.

Options:

A.  

True

B.  

False

Discussion 0
Questions 90

The MainAbility of a HarmonyOS application has multiple AbilitySlices, and when the AbilitySlice health state is switched, the MainAbility state is INACTIVE.

Options:

A.  

True

B.  

False

Discussion 0
Questions 91

Although a Page can contain multiple AbilitySlices, when a Page enters the foreground, the interface displays only one Abilitylice by default.

Options:

A.  

True

B.  

False

Discussion 0
Questions 92

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 93

In HarmonyOS, both relational databases and object-relational mapping databases can use SQL statements to manipulate databases.

Options:

A.  

True

B.  

False

Discussion 0
Questions 94

HarmonyOS supports entity recognition, which can highlight relevant entity information and set up quick operation entrances. For example, the phone number in this message will be highlighted, and the user can dial it directly.

Options:

A.  

True

B.  

False

Discussion 0
Questions 95

The callback mechanism provided by the Ability class can allow the Page instance to switch with the user's operation background

Options:

A.  

True

B.  

False

Discussion 0
Questions 96

On the basis of the supported input events, HarmonyOS's multi-dimensional input defines some input actions commonly used by users as a set of standardized events, maps the input events of different input devices to the standardized events, and can obtain a unified experience when using multiple input devices to operate different terminal devices or applications.

Options:

A.  

True

B.  

False

Discussion 0
Questions 97

If a third-party application has registered the callback of the airplane mode setting item in advance, when the user modifies the airplane mode status of the terminal through the system settings, the application will detect the change of this setting item and adapt it. If the airplane mode is detected to be turned off, the app will go offline, and if the airplane mode is detected and turned on, the app will recapture the online data.

Options:

A.  

True

B.  

False

Discussion 0
Questions 98

With the help of HarmonyOS's Al capability, it can detect and recognize the text of 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 therecognition results. This is by taking advantage of the super-resolution of text and images in AI.

Options:

A.  

True

B.  

False

Discussion 0
Questions 99

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 100

In JavaScript UI development, for wearable projects and TV projects, the name of the homepage can be not index, and the first page in the pages configuration list is the homepage; for the litewearable project, the name of the homepage must be index.

Options:

A.  

True

B.  

Error

Discussion 0
Questions 101

The Service Ability created by a developer does not have a user interface. Can be launched by other apps. When the user switches to another application, the Service will be killed in the background.

Options:

A.  

True

B.  

False

Discussion 0
Questions 102

If a developer wants to develop a file background download function, there needs to be a Page Ability to provide U pages, and a Service Ability to provide the background file download function. If you want to perform some operations after connecting to the Service Ability in the Page Ability, you need to implement the onAbilityConnectDone() method in the Page Ability.

Options:

A.  

True

B.  

False

Discussion 0
Questions 103

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.

Options:

A.  

True

B.  

False

Discussion 0
Questions 104

The data generated by a developer's use of Data Ability can be shared between different applications on the same device, but cannot be shared across devices.

Options:

A.  

True

B.  

False

Discussion 0
Questions 105

What is the process of cross-terminal migration from an application on HarmonyOS device A to the application on device B by calling the distributed task scheduling capability to continue sbility?

Options:

A.  

Preparation for circulation

B.  

Circulation

C.  

End of circulation

D.  

The circulation is complete

Discussion 0
Questions 106

In a HarmonyOS application, which of thefollowing and the ComponentContainer object are actually composed of the interface elements that the user sees?

Options:

A.  

DirectionLayout

B.  

DependentLayout

C.  

Component

D.  

TableLayout

Discussion 0
Questions 107

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

Options:

A.  

minute

B.  

seconds

C.  

microseconds

D.  

ms

Discussion 0
Questions 108

When a developer specifies a music playback service through an intent when closing a remote service, the developer can realize the ability to disable music playback on remote devices.

Options:

A.  

Disconnect remote FA (Feature Ability).

B.  

Disabling Remote PA (Particle Ability)

C.  

Connect to remote PA (Particle Ability)

D.  

FA (Feature Ability) is a cross-line device migration

Discussion 0
Questions 109

A developer needs to cancel a task, but part of the code segment he wrote was deleted by mistake. The remaining codes are as follows, with the missing codes indicated by the dash:

TaskDispatcher dispatcher =

getUlTaskDispatcher();

Revocable revocable =

________________________(new Runnable(){

@Overide Public void run(){

HiLog.info(L . ABEL_ _LOG,"delay dispatch");

}

},10);

Boolean revoked = revocable.revoke();

HiL og.info(L _ABEL_ LOG),"%{public}b" ,revoked);

Which of the following might be missing pieces in the above code?

Options:

A.  

dispatcher.delayDispatch

B.  

dispatcher.asyncDispatch

C.  

dispatcher.syncDispatch

D.  

dispatcher.createDispatchGroup

Discussion 0
Questions 110

If a developer wants to use the JavaScript UI framework to develop a graffiti application that allows users to draw custom graphics, which of the following components can be used by the developer?

Options:

A.  

video

B.  

button

C.  

canvas

D.  

grid-container

Discussion 0
Questions 111

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?

Options:

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

Discussion 0
Questions 112

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?

Options:

A.  

ignoredColumns" indicates that the field does not need to be added to the attributes of the student table

B.  

Doubles creates composite indexes name_index for the "firstName" and "1astName" fields

C.  

The name of the data sheet is "student".

D.  

The index value of the composite index 'name_index' is not unique

Discussion 0
Questions 113

When the user clicks on a song from the music list page and jumps to the playback interface of the song, the principle is that the page route routes to the destination page according to which of the following?

Options:

A.  

router.push

B.  

router.back

C.  

uri

D.  

intent

Discussion 0
Questions 114

In the JS (JavaScript) UI framework, which layer is used to complete the front-end page parsing?

Options:

A.  

Engine Layer

B.  

Platform adaptation layer

C.  

Front-end frame layer

D.  

Application layer

Discussion 0
Questions 115

If a developer wants to develop a file background download function, there needs to be a Page Ability to provide UI pages, and a Service Ability to provide the background file download function. Which of the following can invoke Service Ability in Page Ability?

Options:

A.  

connectPageAbility(intent,connection)

B.  

connectAbility(intent, connection)

C.  

onConnect

D.  

connectServiceAbility(intent, connection)

Discussion 0
Questions 116

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

Options:

A.  

Check the properties of the config.json file→set the installation method of the hap package→set the debugging code type→start debugging

B.  

Set the installation mode of the HAP package→set the debugging code type→check the properties of the configjson file→start debugging

C.  

Set the installation method of the HAP package→check the properties of the configjson file→set the debugging code type→start debugging

D.  

Set the debuggingcode type→check the properties of the config.json file→set the installation method of the HAP package→start debugging

Discussion 0
Questions 117

Which of the following products belongs to the security products in the smart homeecology?

Options:

A.  

Large-screen refrigerator

B.  

smart door lock

C.  

Rice cooker

D.  

Water heater

Discussion 0
Questions 118

Thedefault size of shared memory in Harmony OS is ?

Options:

A.  

8M

B.  

4M

C.  

2M

D.  

1M

Discussion 0
Questions 119

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?

Options:

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

Discussion 0
Questions 120

When the system destroys a page, which of the following callback methods will be triggered?

Options:

A.  

onActive()

B.  

onStart()

C.  

onStop()

D.  

onForeground()

Discussion 0
Questions 121

Which of the following belongs to the lifecycle of starting a Service Ability?

Options:

A.  

onStart()→onComrand()→onBackground()→onStop()

B.  

onStart()→onCommand()—onForeground()→onBackground()→onStop()

C.  

onStart()→onCommand()→onStop()

D.  

onStart()→onCommand()→onBackground()→onDisconnect()→onStop()

Discussion 0
Questions 122

Which of the following does not belong to the system service layer in the HarmonyOS system architecture?

Options:

A.  

Distributed data management

B.  

Ability

C.  

Distributed task scheduling

D.  

Distributed soft bus

Discussion 0
Questions 123

In HarmonyOS, which of the following scenarios is the application responsible for instantiation?

Options:

A.  

Start an AbilitySlice by navigating

B.  

reads a novel through a web page and accidentally clicks on an advertisement, which jumps directly to the app store to request the download of a certain game

C.  

Jump to another page via a hyperlink

D.  

An app page has messages, contacts, settings, etc., and switch between them

Discussion 0
Questions 124

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?

Options:

A.  

B.  

Picker.setSelectNormal TextMarginRatio(5.0f);

C.  

D.  

Picker.setSelectNormalTextMarginRatio(5.0);

Discussion 0
Questions 125

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?

Options:

A.  

TaskDispatcher

B.  

Group

C.  

lAbilityMlanager

D.  

BackgroundTaskManager

Discussion 0
Questions 126

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?

Options:

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

Discussion 0
Questions 127

Which of the following is NOT part of the software exposure capabilities provided by HarmonyOS Connect?

Options:

A.  

chip

B.  

Cloud services

C.  

Huawei HarmonyoS operating system

D.  

Device Partner Platform

Discussion 0
Questions 128

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?

Options:

A.  

privileged

B.  

signature

C.  

restricted

D.  

deivced

Discussion 0
Questions 129

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?

Options:

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

Discussion 0
Questions 130

fter a developer sets :ohos:layout_alignment="horizontal_center" in the Text component, he writes: text.setMarginRight (600) in the code, where is the Text displayed in the parent layout?

Options:

A.  

is horizontally centered and shifted to the right by 600

B.  

The parent layout moves 600 to the top left and right

C.  

level is centered

D.  

is horizontally centered and shifted 600 to the left

Discussion 0
Questions 131

If a HarmonyOS developerhas developed multiple applications and ensured that the data between different applications cannot be accessed through the triplet of account, application, and database, which of the following services can the developer use to achieve this function?

Options:

A.  

Distributed file services

B.  

Distributed data services

C.  

Data search services

D.  

Data storage management

Discussion 0
Questions 132

When a developer installs HAP (HarmonyOSAbility Package), what is the reason for the "STRING LENGTH ERROR" message?

Options:

A.  

Signature information is not configured

B.  

Package information exceeds the maximum length

C.  

The device typeconfigured in config.json does not match the debugging device type

D.  

The compilation and build plugin version does not match the Gradle version

Discussion 0
Questions 133

If a developer needs to solve problems such as insufficient image resolution and image compression noise, which of the following AI capabilities can be used by HarmonyOS?

Options:

A.  

Document Detection Correction

B.  

General Character Recognition

C.  

Entity Recognition

D.  

Image super-resolution

Discussion 0
Questions 134

When a developer needs to create a Service Ability when developing a background service, which of the following processes is NOT the step to create the Ability?

Options:

A.  

onStart

B.  

onCommand

C.  

onStop

D.  

onActive

Discussion 0
Questions 135

In the declarative development paradigm, which of the following decorator decorated state variables needs to be initialized locally, and the initialized value can be overridden by the construction parameters?

Options:

A.  

@State

B.  

@ObjectLink

C.  

@StorageLink

D.  

@Prop

Discussion 0
Questions 136

Which of the following descriptions of Page and AbilitySlice is correct?

Options:

A.  

AbilitySlice can exist on its own

B.  

Bpage can contain multiple AbilitySlices

C.  

There is at least one AbilitySlice in a page

D.  

Page can contain only one AbilitySlice

Discussion 0
Questions 137

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?

Options:

A.  

WARN

B.  

FalseCode()

C.  

INFO

D.  

DEBUG

Discussion 0
Questions 138

Which of the following descriptions of the HarmonyOSclipboard function is correct?

Options:

A.  

Only clipping is supported

B.  

can be copied in application A, but not pasted in application B

C.  

Only replication is supported

D.  

can be copied and pasted into app B in app A

Discussion 0
Questions 139

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

Options:

A.  

UI framework

B.  

AI subsystem

C.  

Phone

D.  

kernel

Discussion 0
Questions 140

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?

Options:

A.  

RoundProgressBar

B.  

PageSlider

C.  

ToastDialog

D.  

ProgressBar

Discussion 0
Questions 141

Which of the following is the callback behavior of the Page Ability lifecycle that can destroy the page?

Options:

A.  

Page is no longer visible to the user, and the system will call onBackground() to notify the developer to release the corresponding resources

B.  

triggers onStop() to notify the user to release system resources

C.  

takes the Page out of focus and calls onInactive().

D.  

Trigger onDestroy() to release system resources

Discussion 0
Questions 142

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

Options:

A.  

Object data manipulation interface

B.  

Database

C.  

Solid object

D.  

Relationship table

Discussion 0
Questions 143

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?

Options:

A.  

4→1→2→3

B.  

4→2→1→3

C.  

4→3→2→1

D.  

2→1→4→3

Discussion 0
Questions 144

When a developer calls HarmonyOS Abi1ity Resources (HAR) in an application module, he or she needs to merge the config.json file of HAP and the config.json file of HAR into a single config.json file when compiling and building a HarmonyS Ability Package (HAP). During the merging process, under what circumstances will the values of tags conflict?

Options:

A.  

HAP has no label value; The HAR has a tag value, and the value can be B

B.  

HAP has a label value, and the value is A; HAR has no label value

C.  

NeitherHAP nor HAR had labeled values

D.  

HAP has a label value, and the value is A. The HAR has a tag value, and the value can be B

Discussion 0
Questions 145

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.

Options:

A.  

Remote FA (Feature Ability)

B.  

Start Remote PA (Particle Ability)

C.  

FA (Feature Ability) is migrated across devices

D.  

Connect to the remote PA (Particle Ability).

Discussion 0
Questions 146

In order to help users find data in the app through the global search app, a HarmonyOSdeveloper needs to index the data of the app and configure the global search searchable entities. Which of the following interfaces can the developer choose to index their application data?

Options:

A.  

Converged search interface

B.  

Distributed data service interface

C.  

Data storage management interface

D.  

Relational data services

Discussion 0
Questions 147

When the page loses focus, which of the following callback methods will be called bythe system to make it enter the INACTIVE state?

Options:

A.  

onStart

B.  

onActive

C.  

onBackground

D.  

onInactive

Discussion 0
Questions 148

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

Options:

A.  

Run the program

B.  

Implement the function

C.  

Create a project

D.  

Design interface

Discussion 0
Questions 149

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?

Options:

A.  

4→1→2→3

B.  

4→2→1→3

C.  

4→3→2→1

D.  

2→1→4→3

Discussion 0
Questions 150

In the process of coding, software development engineers need to detect whether the Butfer data is read and whether an exception occurs, which of the following methods can be called?

Options:

A.  

Errorbuatfer()

B.  

Bucferlistencr()

C.  

lCodecListener()

D.  

ErrorCode()

Discussion 0
Questions 151

A developer tries to update the text of Text directly in a non-UI thread, but the update fails, how to solve the problem of updating the UI of the non-UI thread in HarmomyOS??

Options:

A.  

is implemented through the ParallelTaskDispatcher

B.  

is implemented through the task dispatcher UITaskDispatcher

C.  

is implemented through the SerialTaskDispatcher

D.  

is implemented through the task dispatcher GlobalTaskDispatcher

Discussion 0
Questions 152

Browse articles in the reading app on your phone, migrate to the tablet to continue viewing, and exit the reading app on your phone. Which HarmonyOS streaming solution is used in this scenario?

Options:

A.  

Multi-terminal migration

B.  

Multi-terminal collaboration

C.  

Cross-terminal collaboration

D.  

Cross-terminal migration

Discussion 0
Questions 153

Now a Text component is used as the title of a page, and the Text needs to be set to be invisible, but it still occupies the current layout space, which of the following is correct?

Options:

A.  

ohos:visibility="invisible"

B.  

text.setVisibility(Component.VISIBLE);

C.  

ohos:visibility="visible"

D.  

ohos:visibility="hide"

Discussion 0
Questions 154

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?

Options:

A.  

Data and Computing Center

B.  

Decision-making centre

C.  

Task Bus

D.  

Interconnection Management Center

Discussion 0
Questions 155

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

Options:

A.  

Engine Layer

B.  

Platform adaptation layer

C.  

Front-end frame layer

D.  

Application layer

Discussion 0
Questions 156

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

Options:

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

Discussion 0
Questions 157

When a developer is developing a UI, he writes the following code, which of the following is the correct implementation effect?

Options:

A.  

The two words "classmate" are evenly distributed horizontally on two lines

B.  

Text wraps automatically and keeps the upper and lower widths

C.  

The four characters "Hello classmates" are evenly distributed vertically on a column

D.  

The 4 words "Hello classmates" are evenly distributed horizontally on one line

Discussion 0
Questions 158

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?

Options:

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

Discussion 0
Questions 159

The JS UI framework of HarmonyOSis a cross-device high-performance UI development framework that supports declarative programming and cross-device polymorphic UI. Which layer of the JS UI framework mainly completes front-end page parsing, and provides capabilities such as MVVM (Model-View-ViewModel) development mode, page routing mechanism, and custom components.

Options:

A.  

Front-end frame layer

B.  

Engine Layer

C.  

Application Layer

D.  

Adaptation layer

Discussion 0
Questions 160

In a live broadcast scenario, where the anchor uses an action camera as the live broadcast camera, what are the distributed capabilities of HarmonyOS used in this scenario?

Options:

A.  

Distributed file services

B.  

Virtualization of distributed devices

C.  

Cloth data services

D.  

Distributed soft bus

Discussion 0
Questions 161

In order to ensure that the application has better responsiveness, the developer has designed different priorities for tasks A, B, and C. Task A maintains the default priority, Task B has HICH, and Task C has LOW. Which of the following descriptions of tasks A.B, and C is correct?

Options:

A.  

Task A and B have the highest priority and have a higher chance of being executed than Tasks A and C

B.  

can be inferred from the priority design of the developer, who believes that task B does not need to wait for the result

C.  

Tasks A, B, and C should not be issued by the same task dispatcher

D.  

Task A has the highest priority and has a higher chance of being executed than Tasks B and C

Discussion 0
Questions 162

What functions does HarmonyOS provide in app data management to enable developers to seamlessly connect app data between different devices?

Options:

A.  

Data search service

B.  

Local application data management

C.  

Data storage management

D.  

Distributed data services

Discussion 0
Questions 163

When developing a HarmonyOS application, if you want to set the background color for a Text component in the page, the following is correct

Options:

A.  

ohos:background_element="$graphic:background

B.  

ohos:background_element="$color:green"

C.  

ohos:background_element="#0000FF"

D.  

ohos:background_element="#880000FF"

Discussion 0
Questions 164

Which of the following items is correct about the objects of HarmonyOS permission protection?

Options:

A.  

Photos, contacts, calendars, locations, etc. are app data

B.  

Popping up a floating box and creating a shortcut belong to the device capabilities

C.  

Device identification, camera, microphone, etc. belong to device data

D.  

The objects protected by permissions can be divided into data and capabilities

Discussion 0
Questions 165

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

Options:

A.  

package

B.  

name

C.  

bundleName

D.  

page

Discussion 0
Questions 166

A HarmonyOSengineer needs to apply for a digital certificate to complete the release of the application, which of the following descriptions of digital certificates is wrong?

Options:

A.  

Issued by AppGallery Connect

B.  

You need to use DevEco Studio to generate a key

C.  

Digital certificates are used to ensure the integrity of the application

D.  

The digital certificate format is .csr

Discussion 0
Questions 167

When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component and OFF should be displayed on the closed state component, what are the following options that can meet the requirements?

Options:

A.  

Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch);

btnSwitch.setStateOffText(OFF);

btnSwitch.setStateONText(ON);

B.  

Ohos:text_state_off="ON"

Ohos:text_state_on="OFF">

C.  

Switch btnSwitch=

(Switch)findComponentByld(ResourceTable.ld_btn_switch); btnSwitch.setStateOffText(ON);

btnSwitch.setStateONText(OFF);

D.  

Ohos:text_state_off="OFF"

Ohos:text_state_on="ON">

Discussion 0
Questions 168

When I need to create a profile when publishing an application, what type should I choose?

Options:

A.  

Debug

B.  

distribution

C.  

runs

D.  

Operations

Discussion 0
Questions 169

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

Options:

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

Discussion 0
Questions 170

Which of the following combinations can realize the one-way state synchronization of child components from parent and child components?

Options:

A.  

@State and @Link

B.  

@Provide and @Consume

C.  

@State and @Prop

D.  

@Observed and @ObjectLink

Discussion 0
Questions 171

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

Options:

A.  

C++

B.  

Python

C.  

JS(JavaScript)

D.  

Java

Discussion 0
Questions 172

Regarding the boot mode of UIAbility, the following statement is incorrect

Options:

A.  

UIAbility supports three launch modes: single-instance, standard-mode, and specified instance, which can be configured in module.json via launchType.

B.  

singleton is a single-instance mode, only one instance exists in the system, and if it already exists, the only instance in the system is reused.

C.  

standard is the standard mode, anda new instance will be started every time startAbility, and the system defaults to the standard mode.

D.  

specifiedis the specified instance mode, and the internal business of Ability decides whether to create multiple instances during runtime.

Discussion 0
Questions 173

HarmonyOSadopts a multi-core design, which supports the selection of suitable OS kernels for different resource-constrained devices

Options:

A.  

LiteoS-M

B.  

Linux

C.  

UNIX

D.  

LiteOS-A

Discussion 0
Questions 174

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?

Options:

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

Discussion 0
Questions 175

If a developer wants to set up a dial pad, he will use round buttons and capsule buttons, what are the shape types that will be used in the background layer?

Options:

A.  

oval

B.  

rectangle

C.  

line

D.  

are

Discussion 0
Questions 176

When a developer develops a news software, he will use the marquee of the Text component to realize the automatic scrolling of information, and before setting the marquee effect, he needs to set some preconditions for the Text component.

Options:

A.  

ohos:multiple_lines=false

B.  

ohos:max_text_line=1

C.  

ohos:multiple_lines=true

D.  

ohos:max_text_line=2

Discussion 0
Questions 177

Which of the following modules does the HarmonyOS forwarding architecture consist of?

Options:

A.  

Distributed Task Scheduling

B.  

Forwarding task management services

C.  

Distributed security authentication

D.  

Distributed soft bus

Discussion 0
Questions 178

Which of the following items are correctly described about the HarmonyOS distributed database?

Options:

A.  

The interface is simple, and the backup and encryption features are simple and configurable

B.  

shields different physical transmission channels

C.  

Depends on the cloud

D.  

The synchronization logic is completely transparent

Discussion 0
Questions 179

A HarmamyOS developer created three task distributors, serialtask dispatcher_aand dispatcher_b, and a proprietary task dispatcher dispatcher_s. The developer is experiencing a deadlock while using syncDispatch, which of the following causes could cause this phenomenon?

Options:

A.  

In the task assigned by the dispatcher_a, the task is dispatched by dispatcher_a again

B.  

The thread pool is full

C.  

In dispatcher_a assignment tasks, use dispatcher_b to dispatch assignments

D.  

On a dedicated thread bound dispatcher_s, use dispatcher_s for syncDispatch

Discussion 0
Questions 180

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

Options:

A.  

build method

B.  

onPageShow method

C.  

aboutToAppear method

D.  

onStart method

Discussion 0
Questions 181

In which configuration file is the package dependency referencing the ohpm third-party library in

Options:

A.  

package.json5

B.  

module.json5

C.  

oh-package.json5

D.  

main_pages.json

Discussion 0
Questions 182

If the HarmonyOS user displays the navigation information on the mobile phone and the smart watchat the same time, if the smart watch is out of power, causing the navigation information to stop displaying, which callback will the navigation app on the mobile phone distribute to receive the termination notification?

Options:

A.  

onCompleteContinuation

B.  

onRemoteTerminated

C.  

onSaveData

D.  

onRestoreData

Discussion 0
Questions 183

In HarmonyOS, there are some applications that can call out universal cards, which can bring you the experience of using ().

Options:

A.  

Swipe up icon, information directly

B.  

Multiple sizes, choose at will

C.  

Add desktops and combine them freely

D.  

None of the above is true

Discussion 0
Questions 184

What is the minimum API version supported by HarmonyOS Cloud Development?

Options:

A.  

API 6

B.  

API 7

C.  

API 8

D.  

API 9

Discussion 0
Questions 185

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

Options:

A.  

test

B.  

harmony

C.  

system

D.  

ohos

Discussion 0
Questions 186

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"/>

Options:

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

Discussion 0
Questions 187

Which field must the meta service package name end in?

Options:

A.  

mservice

B.  

Any field

C.  

hap

D.  

har

Discussion 0
Questions 188

An engineer uses a local simulator for application debugging, which of the following describes the wrong local simulator?

Options:

A.  

Youcan run both the application-compatible signed and unsigned HAP (HarmonyOSAbility Package) on the local simulator

B.  

By default, DevEco Studio does not automatically match the corresponding device emulator

C.  

The default shortcut to start running is Shift+F10

D.  

The local emulator can run and debug HarmonyOS applications for LiteWearable and Smart Vision devices

Discussion 0
Questions 189

Which of the following layers does the JavaSeript framework include?

Options:

A.  

Front-end frame layer

B.  

Engine Layer

C.  

Application Layer

D.  

Platform adaptation layer

Discussion 0
Questions 190

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

Options:

A.  

@ohos.reminderAgentManager

B.  

@ohos.reminderManager

C.  

@ohos.reminderAgent

D.  

@ohos.notificationManager

Discussion 0
Questions 191

If a HarmonyOSapplication developer wants to achieve the following effects, which of the following combinations can achieve the effect?

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 192

When using HarmonyOS in distributed terminal scenarios, which of the following capabilities can be used to ensure that the device is safe and reliable?

Options:

A.  

Zero Trust model

B.  

Device Certificate Certification

C.  

Trusted Execution Environment

D.  

Secure Boot

Discussion 0
Questions 193

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?

Options:

A.  

Data and Computing Center

B.  

Decision-making centre

C.  

Task Bus

D.  

Interconnection Management Center

Discussion 0
Questions 194

Which of the following options belong to the kernel layer in the HarmonyOS system architecture?

Options:

A.  

LiteOS

B.  

HDF (Hardware Driver Foundation)

C.  

Linux

D.  

KAL(Kerne1 Abstract Layer)

Discussion 0
Questions 195

When a developer uses the distributed task scheduling capability of HarmonyOS, which of the following features can be selected by the developer?

Options:

A.  

Remote start

B.  

Remote call

C.  

Remote connection

D.  

Migration

Discussion 0
Questions 196

Which of the following component hierarchies is wrong?

Options:

A.  

list>listltem>Column

B.  

Column>List>Listltem

C.  

Grid>Row>Gridltem

D.  

Grid>Gridltem

Discussion 0
Questions 197

Where can I get the HarmonyOS app after the release?

Options:

A.  

HUAWEI AppGallery

B.  

Huawei Service Center

C.  

Huawei Ecosystem Marketplace

D.  

Huawei Talent Center

Discussion 0
Questions 198

What are the following task distribution methods for developers?

Options:

A.  

Synchronous distribution

B.  

Asynchronous distribution

C.  

Asynchronous delayed distribution

D.  

Distributed in groups

Discussion 0
Questions 199

Which of the following descriptions is wrong when it comes to the simultaneous development of JS (JavaScript) and Java languages in HarmonyOS application development?

Options:

A.  

Use Java to develop the UI of the application

B.  

JS FA calls Java PA

C.  

Use JS to develop the logic of the application

D.  

Java FA (Feature Ability) calls JS PA (Particle Ability).

Discussion 0
Questions 200

The user clicks on the song from the music list page to jump to the playback interface of the song, and clicks back to return to the music list page. Which of the following do developers need to do to implement this feature?

Options:

A.  

calls router.back() to return to the music list

B.  

Page Ability to create a music list page

C.  

Create a Page Ability area for playing the page

D.  

calls router.push() to route to the playback interface

Discussion 0
Questions 201

When creating a test user for a meta-service, you need to select the storage location of the user list

Options:

A.  

All sites

B.  

China

C.  

Russia

D.  

Germany

E.  

Singapore

Discussion 0
Questions 202

When a developer uses the Text component for development, because the length ofthe input string is too long, which of the following codes can be used to display the entire content?

Options:

A.  

ohos:truncation_mode="none"

B.  

ohos:truncation_mode="ellipsis_at_start"

C.  

ohos:auto_font_size="true"

D.  

ohos:multiple_lines="true"

Discussion 0
Questions 203

After developing a HarmonyOS application, the developerneeds to package the application into an app for publishing it to AppGallery. You can use DevEco Studio to generate a key, in what format is the key stored in the keystore file?

Options:

A.  

p12

B.  

.csr

C.  

p7b

D.  

.cer

Discussion 0
Questions 204

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

Options:

A.  

Media Subsystem

B.  

Location Services Subsystem

C.  

Telephony subsystem

D.  

Event Notification Service Subsystem

Discussion 0
Questions 205

Which of the following development languages can a developer use when developing a HarmonyOS smart screen application?

Options:

A.  

JavaScript

B.  

Python

C.  

Andriod

D.  

Java

Discussion 0
Questions 206

ArkTS Stage model supports API Version 9, is it correct about its project directory structure?

Aoh-package.json5 is used to store application-level configuration information, including signatures, product configurations, etc

Bbuild-profile.json5 is used to configure the entry and package name of the third-party package declaration file

Cmodule.json5 contains the configuration information of HAP, the configuration information applied to a specific device, and the global configuration information of the application

Dapp.json5 is used to write application-level compilation and build task scripts

258 DevEco Studio provides an emulator for developers to run and debug HarmonyOS applications/services.

A localemulator is created and runs on the local machine and requires login authorization

BThe local emulator supports functions such as volume adjustment, battery level adjustment, screen rotation, etc

CYou don't need to sign your application/service when you install it on your local emulator

DDevEco Studio will start the compilation build of the application/service, and the application/service will run on the local simulator after completion

259. After installing Lottie through OHPM, in which file will the relevant configuration information be generated?

Options:

A.  

module.json5

B.  

oh-package.json5

C.  

app.json5

D.  

main_page.json

Discussion 0
Questions 207

When developing a HarmonyOSapplication, which of the following is NOT a permission that should be followed?

Options:

A.  

The user can know and control

B.  

The permission application is complete

C.  

Custom permissions can be renamed the same name

D.  

Permission requests are minimized

Discussion 0
Questions 208

For example, if you want to implement an advertising pop-up window now, including information such as pictures and text, you can use the following pop-up window

Options:

A.  

AlertDialog

B.  

@CustomDialog

C.  

TextPickerDialog

D.  

TimePickerDialog

Discussion 0