Labour Day Special - 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: c4sdisc65

H14-231_V1.0 PDF

$38.5

$109.99

3 Months Free Update

  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions

H14-231_V1.0 PDF + Testing Engine

$61.6

$175.99

3 Months Free Update

  • Exam Name: HCIP-HarmonyOS Application Developer V1.0
  • Last Update: May 2, 2024
  • Questions and Answers: 695
  • Free Real Questions Demo
  • Recommended by Industry Experts
  • Best Economical Package
  • Immediate Access

H14-231_V1.0 Engine

$46.2

$131.99

3 Months Free Update

  • Best Testing Engine
  • One Click installation
  • Recommended by Teachers
  • Easy to use
  • 3 Modes of Learning
  • State of Art Technology
  • 100% Real Questions included

H14-231_V1.0 Practice Exam Questions with Answers HCIP-HarmonyOS Application Developer V1.0 Certification

Question # 6

What are the following advantages of the HarmonyOS forwarding architecture?

A.

Support remote service invocation and other capabilities, which can easily design business.

B.

Support different forms of devices, such as mobile phones, tablets, TVs, watches, etc.

C.

Unified flow management UI, supporting device discovery, selection, and task management.

D.

Support multiple applications to be forwarded at the same time.

Full Access
Question # 7

Which of the following permissions is required to load network images with the Image component?

A.

ohos.permission.READ_MEDIA

B.

ohos.permission.INTERNET

C.

ohos.permission.GET_NETWORK_INFO

D.

ohos.permission.DISTRIBUTED_DATASYNC

Full Access
Question # 8

HarmonyOS provides two mechanisms for calling JavaPA (ParticleAbility) by JSFA(FeatureAbility), namely Ability and InternalAbility.

A.

Ability has an independent life cycle

B.

Ability does not need to be registered with the FA

C.

Theclass inherited by C InternalAbility isohos.ace.ability.AcelnternalAbility

D.

Ability is not allowed to be accessed by other FAs

E.

InternalAbility cannot be called by other FAs

Full Access
Question # 9

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 # 10

A developer is writing a piece of code to control the access rights of an Ability

Apps with the ohos.permission.CAMERA permission can access this ability. The relevant code completed by the developer in config.json is as follows:

"abilities": [

{

"name": ". MainAbility",

"description":

"Sstring:description_main_abi1ity",

"icon" : "$media:hiworld.png",

"label": "HiCamera",

"1aunchType": "standard",

"orientation": "portrait",

"visible": false,______________________________

} ]

Which of the following should the developer add to the horizontal line?

A.

"permissions": [

"ohos.permission.CAMERA" ]

B.

"defPermissions":[

{"ohos.permission.CAMERA"}]

C.

"reqPermissions": [ {

"ohos.permission.CAMERA”}]

D.

"permissions": [

"ohos.permission.LOCATION"]

Full Access
Question # 11

A user migrates video playback from his mobile phone to a smart screen and uses the distributed task scheduling capability of HarmonyOS. Which of the following is the process of connecting the video to the smart screen playback in this scenario?

A.

Remote connection

B.

Global query

C.

Remote migration

D.

Remote start

Full Access
Question # 12

When a developer is developing an application, he creates a Checkbox component and writes the following code, which of the following descriptions of the code segment is correct?

ohos:height="match_content"

ohos:width="match_content"

ohos:text="This is a checkbox"

ohos:marked="false"

ohostext_color_on=“#000000”

ohos:text_color_off="#FFFFFF"

ohos:text_size="#000000"/>

A.

sets the selected text color to black

B.

sets the initial state to Selected

C.

Set the text font size to 20fp

D.

sets the color of unselected text to black

Full Access
Question # 13

What kind of struct is used to decoratively indicate that the structure has the ability to be componentized?

A.

@Component

B.

@Entry

C.

@Builder

D.

@Preview

Full Access
Question # 14

When a programmer develops an online education application, the studentAnswer:ing interface has multiple choice questions and multiple choice questions, which of the following components is suitable for displaying multiple choice questions?

A.

Picker

B.

RadioButton

C.

Checkbox

D.

Switch

Full Access
Question # 15

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 # 16

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?

A.

p12

B.

.csr

C.

p7b

D.

.cer

Full Access
Question # 17

Whichof the following does not belong to the application framework layer in the Harmony OS system architecture?

A.

UI

B.

Distributed data management

C.

User Program Framework

D.

Ability

Full Access
Question # 18

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 # 19

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

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

Full Access
Question # 20

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 # 21

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

A.

All sites

B.

China

C.

Russia

D.

Germany

E.

Singapore

Full Access
Question # 22

What files does an engineer need to use when he wants to debug a newly developed application on a real device?

A.

HarmonyOS AppProvision

B.

Private key

C.

Request file

D.

Digital certificates

Full Access
Question # 23

What are the following development languages that a developer can use to develop a mobile app using HarmonyOS?

A.

Java

B.

Android

C.

JavaScript

D.

Python

Full Access
Question # 24

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 # 25

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

A.

HTTP

B.

WebSocket

C.

Socket

D.

Request

Full Access
Question # 26

The meta-service package consists of one or more HAP packages, and each HAP package shall not exceed ( ) to provide a second-to-open experience.

A.

2GB

B.

10M

C.

1GB

D.

Unlimited

Full Access
Question # 27

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 # 28

What are the following aspects of resource utilization analysis that DevEco Studio Performance Analyzer can perform?

A.

Memory

B.

Battery

C.

CPU

D.

network

Full Access
Question # 29

Which of the following gesture types does the HarmonyOS declarative development paradigm provide?

A.

Pan gesture

B.

Press and hold gestures

C.

Tap gesture

D.

Pinch gesture

Full Access
Question # 30

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 # 31

What is the API for lottie to subscribe to events?

A.

lottie.setSpeed()

B.

lottie.setDirection()

C.

animationltem.addEventListener()

D.

animationltem.removeEventListener()

Full Access
Question # 32

Which kind of decorator can be used as a page entry component?

A.

@Component

B.

@Entry

C.

@Preview

D.

@Builder

Full Access
Question # 33

Which of the following features of the HarmonyOS distributed database are correctly described?

A.

depends on the cloud

B.

shields different physical transmission channels

C.

The synchronization logic is completely transparent

D.

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

Full Access
Question # 34

Which of the following items are involved in migrating Page from device A to device B?

A.

Thesystem calls back the onStartContinuation( ) method of all AbilitySlice instances on the Page on device A and all AbilitySlice instances in its AbilitySlice stack

B.

requests migration from the Page on Device A

C.

The system calls back the onCompleteContinuation( ) method of all AbilitySlice instances on the Page on Device A and all AbilitySlice instances in its AbilitySlice stack

D.

If the migration can be done immediately, the system calls back the onSaveData( ) method of all AbilitySlice instances on the Page on device B and all AbilitySlice instances in its AbilitySlice stack

Full Access
Question # 35

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 # 36

Regarding the ResponseCode returned by the request, which of the following descriptions is incorrect?

A.

AResponseCode.OK has a value of 200, indicating that the request is successful. It is generally used for GET and POST requests.

B.

Avalue of 404 for the B ResponseCode.NOT_FOUND indicates that the server was unable to locate the resource (web page) based on the client's request.

C.

Avalue of 500 for the C ResponseCode.INTERNAL_ERROR indicates an internal server error and the request could not be completed.

D.

Avalue of 404 indicates that the resource requested by the client no longer exists.

Full Access
Question # 37

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 # 38

In the process of debugging Harmomyos applications, it is a common debugging method for developers to "check whether the change process of variables meets the expected results". To this end, DevEcoStudio provides a visualization of debug variables, which of the following forms can be presented?

A.

Histogram

B.

Line Chart

C.

tree

D.

Form D

Full Access
Question # 39

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 # 40

HarmonyOS adopts a multi-core design, which supports the selection of appropriate OS kernels for different resource-constrained devices, and the kernel abstraction layer provides basic kernel capabilities for the upper layer by shielding the differences between multiple cores, including which of the following?

A.

Memory management

B.

File Management

C.

Network management

D.

Peripheral management

E.

Process Management

F.

Thread Management

Full Access
Question # 41

. When developing a HarmonyOS application, use a component Text as the title of a page, if you want to make the title invisible and still occupy the space of the current page, the following operations are correct

A.

ohos:visibility= "invisible"

B.

text.setVisibility(Component.HIDE)

C.

ohos:visibility="hide"

D.

text.setVisibility(Component.INVISIBLE)

Full Access
Question # 42

An engineer wrote the following code, which items are correct about 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 compound 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 name is user

Full Access
Question # 43

When developing an application, a developer uses the WLANP2P function to realize point-to-point data transmission between devices. The functionality of the application is as follows: Function 1: Discover the peer device. Function 2: Create and remove groups. Function 3: Initiate a connection to the peer device. Which of the above features is correct in the following descriptions?

A.

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

B.

To achieve function 1, you need to use the discoverDevice()interface, and you need to request ohos. permission. SET_WIFI_INFO Limitations

C.

In order to achieve function 3, the connect() interface needs to be used, and the ohos.permission.SET_WIFI_INFO permissions need to be requested

D.

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

Full Access
Question # 44

If a developer wants to use the distributed capabilities of HarmonyOS, which of the following options can the developer choose?

A.

Distributed device virtualization

B.

Distributed data management

C.

Distributed soft bus

D.

Distributed task scheduling

Full Access
Question # 45

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

A.

LiteOS

B.

HDF (Hardware Driver Foundation)

C.

Linux

D.

KAL(Kerne1 Abstract Layer)

Full Access
Question # 46

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?

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

Full Access
Question # 47

When is the aboutToAppear() of the custom component executed?

A.

build function

B.

build function

C.

page entry

D.

page

Full Access
Question # 48

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 # 49

After the open beta version is released, how can I add additional test users?

A.

is added directly in the current version

B.

needs to re-release a new beta version to add users

C.

Appended directly after the current version

D.

Users need to be added before releasing a new beta version

Full Access
Question # 50

Which of the following situations will not call back the onFinish function?

A.

delay is set to 0

B.

tempo is set to 1

C.

iterations set to -1

D.

playMode is set to PlayMode.Reverse

Full Access
Question # 51

In order to control the access of a specific interface to the caller, an application confirms that the visitor has the required permissions through verifyCallingPermission. Which of the following descriptions is correct?

A.

If verifyCallingPermission returns a value of 0, the service is not provided

B.

If the caller does not have permission, the service will not be provided

C.

If verifyCallingPermission returns a value of -1. then the service will be provided

D.

If the caller's permission verification is passed, the service will be provided

Full Access
Question # 52

Regarding the service cards of HarmonyOS applications, the following belong to the card users

A.

Traditional Applications

B.

Service Center

C.

Desktop

D.

Atomization services

Full Access
Question # 53

When an application calls a service, the service will check the permissions of the application, and the service cannot be used if there is no corresponding permission.

A.

True

B.

False

Full Access
Question # 54

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

A.

True

B.

False

Full Access
Question # 55

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

A.

True

B.

False

Full Access
Question # 56

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

A.

True

B.

False

Full Access
Question # 57

Frame rate is the frequency (rate) at which a bitmap image appears continuously on a display in frames, measured in hertz (Hz).

A.

True

B.

False

Full Access
Question # 58

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.

A.

True

B.

False

Full Access
Question # 59

Intent is a carrier for transmitting information between objects.

A.

True

B.

False

Full Access
Question # 60

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 # 61

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 # 62

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 # 63

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

A.

True

B.

False

Full Access
Question # 64

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

A.

True

B.

False

Full Access
Question # 65

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

A.

True

B.

False

Full Access
Question # 66

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 # 67

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.

A.

True

B.

False

Full Access
Question # 68

In the lifecycle of AbilitySlice, the onStart() callback method does not need to be rewritten.

A.

True

B.

False

Full Access
Question # 69

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.

A.

True

B.

False

Full Access
Question # 70

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 # 71

A user uses the HarmonyOS distributed task scheduling capability to migrate mobile phone videos to the smart screen for playback. In this scenario, the process of finding whether the smart screen has the same playback software is a global query.

A.

True

B.

False

Full Access
Question # 72

AbilitySlice and Page have the same lifecycle state and callback method with the same name, and when the Lifecycle of the Page changes, the same lifecycle change will occur in AbilitySlice. Similarly, as the lifecycle of an AbilitySlice changes, the lifecycle state of a Page changes.

A.

True

B.

False

Full Access
Question # 73

When MainAbility and MainAbiitySlice are bound together, the lifecycles of the two are synchronized, including the callback method for transitioning between states.

A.

True

B.

False

Full Access
Question # 74

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.

A.

True

B.

False

Full Access
Question # 75

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 # 76

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 # 77

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 # 78

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 # 79

A user grants permission X to application A of a certain device, and on the device, application A persists the state of this permission grant and can call all interfaces controlled by permission X at any time.

A.

True

B.

False

Full Access
Question # 80

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 # 81

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 # 82

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 # 83

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 # 84

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

A.

True

B.

False

Full Access
Question # 85

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.

A.

True

B.

False

Full Access
Question # 86

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 # 87

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.

A.

True

B.

False

Full Access
Question # 88

HAR (HarmonyOS Ability Resources) is different from HAP (HarmonyOS Ability Package) in that HAR cannot be installed and run on devices independently, and can only be referenced as dependencies of application modules.

A.

True

B.

False

Full Access
Question # 89

When designing a JavaScript UI based on HarmonyOS, if the text component itself cannot be focused, the focus cannot be moved to the component, and the focusableattribute of text is set to true. text component.

A.

True

B.

False

Full Access
Question # 90

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

A.

True

B.

False

Full Access
Question # 91

When a developer uses the JS (JavaScript) UI framework to develop an application, if style =width:"10px is used in the component, the width of the component cannot be dynamically modified. If you use style="width:{{width}}" to set the width of a component, you can dynamically modify the width of the component in a JS file.

A.

True

B.

False

Full Access
Question # 92

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.

A.

True

B.

False

Full Access
Question # 93

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 # 94

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 # 95

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 # 96

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

Image

image(Image)findComponentByld(ResourceTable.Id_cormponent_image);

Image.setPixelMap (ResourceTable.Media hawei);

A.

True

B.

False

Full Access
Question # 97

When developing the list component in the JavaScript UI framework, you can use the data of the Map type to dynamically bind the data.

A.

True

B.

False

Full Access
Question # 98

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

A.

True

B.

False

Full Access
Question # 99

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 # 100

There is a button on the main interface of a HarmonyOS application, and the display text on the button is "Start Download", after clicking this button, a sub-thread is created to perform time-consuming download operations. After the download is over, you can change the button in the subthread to "Download End".

A.

True

B.

False

Full Access
Question # 101

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 # 102

Components can neither be displayed nor interact with when they are not added to a layout, so a user interface contains at least one layout.

A.

True

B.

False

Full Access
Question # 103

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.

A.

True

B.

False

Full Access
Question # 104

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 # 105

Which of the following atomic layout capabilities does not belong to the position of the control element?

A.

Percentage

B.

Hidden

C.

Split the line

D.

stretch

Full Access
Question # 106

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

A.

onActive()

B.

onStart()

C.

onStop()

D.

onForeground()

Full Access
Question # 107

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 # 108

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 # 109

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

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

Full Access
Question # 110

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

A.

DirectionLayout

B.

DependentLayout

C.

Component

D.

TableLayout

Full Access
Question # 111

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 # 112

A developer found that the app could not usethe network management function of Harmony OS without requesting permissions. In order to use the network management feature, the developer requested the following permissions for their app, which of them is not required for the network management feature?

A.

ohos.permission.SET_NETWORK_INFO

B.

ohos.permission.INTERNET

C.

ohos.permission.LOCATION

D.

ohos.permission.GETNIPORK_INFO

Full Access
Question # 113

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

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

Full Access
Question # 114

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 # 115

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

A.

serialTaskDispatcher

B.

SpeeTaskDispatcher

C.

ParallelTaskDispatcher

D.

GlobalTaskDispatcher

Full Access
Question # 116

Thedefault size of shared memory in Harmony OS is ?

A.

8M

B.

4M

C.

2M

D.

1M

Full Access
Question # 117

When a developer uses HarmonyOS Device Manager, he wrote the following code, which code description is correct?

Vardevicelnto=dmInstance.getLocaIDevicelnfoSync () :

A.

Obtain the local device information synchronously

B.

Asynchronously obtain the list of trusted devices

C.

Obtain the list of trusted devices synchronously

D.

Asynchronously obtain local device information

Full Access
Question # 118

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 # 119

When a developer adds a Harmony OS app on the AppGallery web page, which platform does the developer need to choose to add the app?

A.

quick application

B.

Android

C.

Web

D.

HarmonyOS app

Full Access
Question # 120

A developer obtains a log content: static finalHiLogLabel LABEL = new HiLogLabe1

(HiLog.LOG_APP,Ox00201, "MY_TAG"); Which of the following information can't be obtained?

A.

log level

B.

The business area of the log

C.

Log ID

D.

Log type

Full Access
Question # 121

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 # 122

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 # 123

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 # 124

A user migrates video from a mobile phone to a smart screen for playback and uses the distributed task scheduling capability of HarmonyOS. Which of the following belongs to the process of opening the smart screen playback software when the mobile phone is migrated in this scenario?

A.

Remote connection

B.

Global query

C.

Remote start

D.

Remote migration

Full Access
Question # 125

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

A.

You can 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 deviceemulator

C.

The default shortcut to start running is Shift+F10

D.

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

Full Access
Question # 126

A developer has developed an Image component and written the following code, which of the following descriptions of the component is correct?

A.

The Aplant image is scaled to 0.5

B.

Thex-axis and y-axis of the B plant image are scaled to 0.5 and the effect is cropped in half

C.

Thex and y axes of the C plant image are scaled to 0.5 and the transparency is 0.5

D.

The Dplant image is cropped in half

Full Access
Question # 127

Which description of the HarmonyOS clipboard can be correctly interpreted in the following scenarios?

A.

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

B.

can be copied and pasted into app B in app A

C.

Only replication is supported

D.

Only clipping is supported

Full Access
Question # 128

Which of the following subsystems does a developer use when using the facial recognition feature of HarmonyOS?

A.

Multi-mode input subsystem

B.

Media Subsystem

C.

Safety subsystem

D.

Graphics subsystem

Full Access
Question # 129

The key generated by the developer contains the public key and the private key used in asymmetric encryption, and in what format is the key stored in the key file?

A.

cer

B.

csr

C.

p12

D.

p7b

Full Access
Question # 130

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 # 131

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?

A.

Multi-terminal migration

B.

Multi-terminal collaboration

C.

Cross-terminal collaboration

D.

Cross-terminal migration

Full Access
Question # 132

In the HarmonyOS system architecture, which of the following can shield the differences between multiple cores and provide basic kernel capabilities for the upper layer?

A.

Ability

B.

KAL (Kernel Abstract Layer)

C.

UI

D.

HDF (Hardware Driver Foundation)

Full Access
Question # 133

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 call Service Ability in Page Ability?

A.

onConneCtenxt()

B.

connectPageAbility(intent.connection)

C.

connectAbility(intent.connection);

D.

connectServiceAbility(intent,connection);

Full Access
Question # 134

HarmonyOSprovides developers with different abilities according to different application scenarios, for example, if a developer plans to develop a background music playback function, which of the following is correct about the configuration of the ability in config.json?

A.

“type: “service

B.

“type: “page

C.

“type: “ability

D.

“type: “data

Full Access
Question # 135

If the user displays the navigation information on the mobile phone and the smart watch at the same time, if the smart watch is out of power, causing the navigation information to terminate the display, which callback method will the navigation application on the mobile phone receive the termination notification?

A.

onCompleteContinuation

B.

onRestoreData

C.

onRemoteTerminated

D.

onSaveData

Full Access
Question # 136

When a developer designs a news browsing application, he needs to achieve the effect that the news list and news details are not displayed on the same page, which of the following needs to be created by the developer?

A.

0 Page Ability, 3 AbilitySlice

B.

1 Page Ability, 2 AbilitySlice

C.

3 Page Ability, 1 AbilitySlice

D.

2 Page Ability, 1 AbilitySlice

Full Access
Question # 137

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?

A.

Preparation for circulation

B.

Circulation

C.

End of circulation

D.

The circulation is complete

Full Access
Question # 138

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

A.

Only clipping is supported

B.

can be copied and pasted into app B in app A

C.

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

D.

Only replication is supported

Full Access
Question # 139

Which of the following modules provides an E2E encrypted channel in the HarmonyOS streaming architecture to provide a secure cross-terminal transmission mechanism for user applications?

A.

distributed soft bus

B.

Forwarding task management services

C.

Distributed security

D.

Distributed task scheduling

Full Access
Question # 140

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 selected tab to be marked by underlining at the bottom, which of the following codes is correct?

A.

ohos:tab indicator type="bottom_line"

B.

ohos:tab_indicator_type="invisible"

C.

ohos:tab_indicator_type="oval"

D.

ohos:tab_indicator_type="left_line"

Full Access
Question # 141

A HarmonyOS developerdevelops an application based on distributed data services, and the developer uses device A, device B, and device C to test the functionality of the application in a distributed scenario. In the test, after device A successfully adds, deletes, and modifies data, device B and device C cannot read the updated data immediately, but after a certain time window, the data of the three devices will reach the same state. In the preceding scenario, what kind of consistency does the application conform to in a distributed database?

A.

Weak consistency

B.

Strong consistency

C.

Eventual consistency

D.

Process consistency

Full Access
Question # 142

A developer has developed with the Text component, and the effect is as follows, which piece of code can be used to achieve the effect?

A.

ohos:width="match_content"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="true"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

ohos:background_element="$graphic:background_text"/>

B.

ohos:width="match_parent"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="true"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

ohos:background_element="$graphic:background_text"/>

C.

ohos:width="match_parent"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="false"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

ohos:background_element="$graphic:background_text"/>

D.

ohos:width="match_content"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="false"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

ohos:background_element="$graphic:background_text"/>

Full Access
Question # 143

When an engineer develops an application and needs to add the function of extracting videos, which of the following interfaces should be called?

A.

Codec()

B.

Player()

C.

Extractor()

D.

Recorder()

Full Access
Question # 144

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

A.

ToastDialog

B.

RoundProgressBar

C.

PageSlider

D.

ProgressBar

Full Access
Question # 145

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 # 146

What is the "1" in HarmonyOS's "1+8+N" strategy?

A.

mobile phone

B.

Tablet

C.

Watch

D.

Smart screen

Full Access
Question # 147

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 # 148

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 # 149

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?

A.

dispatcher.delayDispatch

B.

dispatcher.asyncDispatch

C.

dispatcher.syncDispatch

D.

dispatcher.createDispatchGroup

Full Access
Question # 150

When a developer develops a HarmomyOSapplication, if a Text component is used as the title bar of the page, and its width is set to match_parent and its height is set to 50vp, how can the text content in the Text be centered when setting its properties in the layout file?

A.

ohos:thorizontal_center=true"

B.

ohos:center_inparent="true"

C.

ohos:layout_alignment=center

D.

ohos:text_alignment=center

Full Access
Question # 151

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 # 152

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 # 153

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 # 154

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?

A.

Errorbuatfer()

B.

Bucferlistencr()

C.

lCodecListener()

D.

ErrorCode()

Full Access
Question # 155

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 # 156

A developer tries to use the word segmentation feature of HarmonyOS to tokenize a dry word article, and in this scenario, the word segmentation text exceeds 500 characters, so the parameter error will be returned.

A.

True

B.

False

Full Access
Question # 157

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 # 158

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 # 159

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 # 160

Which of the following methods can remove a notification?

A.

cancel

B.

cancelAll

C,removeSlot

C.

removeAll

Full Access
Question # 161

On the basis of the supported input events, the multi-mode input defines some input actions commonly used by users as a set of standardized events, and maps the input events of different input devices to the standardized events.

A.

True

B.

False

Full Access
Question # 162

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 # 163

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 # 164

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 # 165

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 # 166

A developer uses the JavaScript UI framework's swiper sliding container to develop a banner scrolling effect, which are the correct items in the following description of the swiper code?

indicator="true"autoplay="true"interval="2000"

loop="true"digital="false">

A.

subassembly loops

B.

subcomponent autoplay

C.

Navigation points can be manipulated

D.

subcomponent autoplay interval 20s

Full Access
Question # 167

In HarmomOS, when an application is launched, the system creates an execution thread named "Main Thread" for the application. The main thread, also known as the UI thread, displays and updates the UI interface on the main thread.

A.

True

B.

False

Full Access
Question # 168

If there are different components in the layout with the same ID, when the component is searched by ID, the last component found will be returned.

A.

True

B.

False

Full Access
Question # 169

What is the correct position setting for the Tabs tab described below?

A.

When barPosition is set to Start (default) and vertical property is set to false (default), the tab is located at the top of the container.

B.

When barPosition is set to Start (default) and vertical property is true, the tab islocated on the left side of the container.

C.

When barPosition is set to End and vertical property is set to false (the default value), the tab is located at the bottom of the container.

D.

If barPosition is set to End and vertical property is set to true, the tab is located on the right side of the container.

Full Access
Question # 170

Regarding the Tabs component and the TabContent component, the following description is correct

A.

TabContent component does not support setting a generic width property, and its width is equal to the barWidth property of the Tabs component.

B.

TheTabContent component does not support setting the general height attribute, and its height is determined by the height of the parent Tabs and the height of the TabBar component.

C.

TabsController is used to control tabs to switch between tabs, and does not support one tabscontroller to control multiple tabs.

D.

ThetabBar property of theTabContent component supports components generated using the @Builder constructor.

Full Access
Question # 171

What are the boot modes of UIAbility?

A.

singleton

B.

specified

C.

multition

D.

Builder

Full Access
Question # 172

The distributed database is based on the KV data model and provides KV access interfaces.

A.

True

B.

False

Full Access
Question # 173

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.

A.

True

B.

False

Full Access
Question # 174

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 # 175

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

A.

Distributed task scheduling

B.

Distributed data management

C.

Media Subsystem

D.

User Program Framework

Full Access
Question # 176

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 # 177

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 # 178

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 # 179

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?

A.

Component Tree

B.

Code Editor

C.

UI interface

D.

Terminal

Full Access
Question # 180

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 # 181

Which of the following can set the rounded corner effect of the ShapeElement?

A.

Bin Java code set: int radius =

B.

AttrHelper.vp2px(8)

element.setCornerRadiiArray(new float[]

{radius,radius,radius,radius,radius,radius,radius,radius})

C.

Set in XML:

D.

is set in Java code:

element.setCornerRadius(AttrHelper.vp2px(8))

Full Access
Question # 182

The main function of EventHandler is to deliver InnerEvent events or Runnable tasks to other threads for processing.

A.

IDLE

B.

HIGH

C.

LOW

D.

IMMEDIATE

Full Access
Question # 183

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?

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

Full Access
Question # 184

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 # 185

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 # 186

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 # 187

In HarmonyOS, when switching between pages, if you use Ability Switching, it is equivalent to constantly switching new pages in the same window, and if you use AbilitySlice to switch, a new window will pop up.

A.

True

B.

False

Full Access
Question # 188

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

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

Full Access
Question # 189

The main axis of the Row container is horizontal, and the cross axis is vertical, and its parameter type is VerticalAlign, and VerticalAlign defines the following types?

A.

Top

B.

Bottom

C.

Start

D.

End

E.

Center

Full Access
Question # 190

Which of the following are the animation control APIs provided by lottie?

A.

lottie.play()

B.

lottie.pause()

C.

lottie.stop()

D.

lottie.goToAndPlay()

Full Access
Question # 191

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 # 192

Which of the following processes does the HarmonyOS data lifecycle consist of?

A.

Data storage

B.

Data Usage

C.

Data generation

D.

Data Transfer

Full Access
Question # 193

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 # 194

A software development engineer will debug a piece of code, which of the following methods can be used?

A.

Click Attach Debugger to Process

B.

Click Debug

C.

Use the shortcut key Shift+F9

D.

Use the shortcut key Shift+F10

Full Access
Question # 195

What functions does UIAbility's lifecycle include?

A.

onCreate

B.

onForeground

C.

onBackground

D.

onDestroy

Full Access
Question # 196

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.

H14-231_V1.0 question answer

A.

True

B.

False

Full Access
Question # 197

HarmonyOS provides the Al capability of speech recognition, which can use machine learning technology to analyze the content of text messages of users in SMS or chat applications, and identify the user intent represented by the message content.

A.

True

B.

False

Full Access
Question # 198

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 # 199

When an intent is used to initiate a request, a developer designs to open a link through a browser, but does not care which browser application the user ultimately chooses.

A.

Action

B.

AbilityName

C.

Entity

D.

BundleName

Full Access
Question # 200

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 # 201

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 # 202

The log content filtered by a developer through relevant information is:

01-2016:08:36.908

23597/com.example.myapplication W

00201/MY TAG:Failed to visit,reason:503.

Which of the following cannot be obtained by analyzing the log?

A.

Content defined in HiLogLabel

B.

Errnovalue

C.

Reachable URL value

D.

The log level is WARN

Full Access
Question # 203

JavaScriptUl does not support async and await syntax.

A.

True

B.

False

Full Access
Question # 204

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

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

Full Access
Question # 205

To publish sticky public events in armonyOS, the publisher must first apply for the permissions required to publish sticky public events in config.json.

A.

True

B.

False

Full Access
Question # 206

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