Weekend Sale Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Huawei H14-231_V1.0 HCIP-HarmonyOS Application Developer V1.0 Exam Practice Test

Page: 1 / 70
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 1

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"

Question 2

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

Options:

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

Question 3

Which of the following permissions is required when using the Video component to play network videos?

Options:

A.

ohos.permission.READ_MEDIA

B.

ohos.permission.INTERNET

C.

ohos.permission.WRITE_MEDIA

D.

ohos.permission.LOCATION

Question 4

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

Options:

A.

LiteOS

B.

HDF (Hardware Driver Foudation)

C.

Linux Kernel

D.

KAL (Kernel Abstract Layer)

Question 5

If a developer wants to use the notification function of HarmonyOS when developing an application, which of the following notification styles can be selected by the developer?

Options:

A.

Plain text

B.

Multi-line text

C.

Long text

D.

Picture

Question 6

After the release of the open beta version, how do the invited test users experience?

Options:

A.

Go to AppGallery and search for the meta-service to be experienced

B.

Enter the servicecenter, turn on the "Developer Testing" switch, and find the meta-service to be experienced in the "Service Testing" at the bottom

C.

Enter the ecological market and search for meta-services to be experienced

D.

Enter the service center and search for the meta-service to be experienced

Question 7

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?

Options:

A.

Picker

B.

RadioButton

C.

Checkbox

D.

Switch

Question 8

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

Options:

A.

delay is set to 0

B.

tempo is set to 1

C.

iterations set to -1

D.

playMode is set to PlayMode.Reverse

Question 9

Regarding the callback event of the Video component, the following statement is incorrect

Options:

A.

onStart is triggered when the video is playing, and you can get the video duration here.

B.

This event is triggered at the end of the B onFinish video.

C.

Thisevent is triggered when the C onPrepared video is ready.

D.

onUpdate is triggered when the playback progress changes, the unit is s, and the update interval is 250 ms.

Question 10

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

Options:

A.

headphones

B.

Microwave oven

C.

Audio

D.

Glasses

Question 11

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

Question 12

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

Question 13

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

Options:

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

Question 14

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

Options:

A.

Event Awill be delivered immediately

B.

EventB D will be delivered before Event B

C.

delivers event C when there are no other events

D.

EventD will be delivered before Event C

Question 15

When developing a HarmonyOS application, which of the following notification types can be implemented by developers?

Options:

A.

Plain text

B.

Long text

C.

Image

D.

card

E.

Media

F.

Multiple lines

Question 16

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

Options:

A.

normal line breakpoint

B.

Exception breakpoint

C.

symbol breakpoint

D.

method breakpoint

Question 17

Where is the data of the preference placed after persistence?

Options:

A.

In memory

B.

database table

C.

file

D.

Cloud

Question 18

There is a configuration file named "config.json" in the root directory of each HAP package of the HarmonyOS application, which mainly covers the following three aspects:

Options:

A.

The configuration information of the app on a specific device

B.

Configuration information of all abilities in the current module

C.

Global configuration information for the app

D.

HAP package configuration information

Question 19

When a developer clicks the exit button of an application to release Page Ability resources, which callback method in the Page Ability lifecycle will be triggered?

Options:

A.

onForeground()

B.

onStop()

C.

onInactive()

D.

onBackground()

Question 20

In HarmonyOS, Intents are the carriers for transferring information between objects, and which of the following items can be set through Intents?

Options:

A.

Deviceld

B.

BundleName

C.

AbilityName

D.

Action

Question 21

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

Options:

A.

IDE plug-in

B.

Project Template

C.

Command-line tools

D.

Visualization Tools

Question 22

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 23

The maximum number of simultaneous activations of a Worker thread

Options:

A.

6

B.

7

C.

8

D.

9

Question 24

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

Options:

A.

ButtonType.Capsule

B.

ButtonType.Normal

C.

ButtonType.Circle

D.

None of the above

Question 25

What are the following types of transition animations in the declarative development paradigm?

Options:

A.

page transition

B.

Transitions between applications

C.

Share element transitions

D.

Transitions within an assembly

Question 26

API9 and above, router.pushUrl() method, what is the default mode used by the jump page?

Options:

A.

standard

B.

Single

C.

Specified

D.

All of the above

Question 27

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

Question 28

Which of the following scenarios is part of the HarmonyOS notification function?

Options:

A.

Push version updates

B.

Push advertising messages

C.

Displays received text messages

D.

Instant messaging

Question 29

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(Resource Table.ld_btn_switch);

btnSwitch.setStateOffText("ON");

btnSwitch.setStateONText("OFF");

D.

ohos:text_state_off="OFF"

ohos:text_state_on="ON">

Question 30

The maximum length limit of the preference key is ( ) bytes

Options:

A.

60

B.

70

C.

80

D.

90

Question 31

HarmonyOS Capabilities are divided into two types: Feature Ability and Particle Ability.

Options:

A.

Service Ability

B.

Data Ability

C.

Page Ability

D.

Ability Slice

Question 32

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

Options:

A.

Memory

B.

Battery

C.

CPU

D.

network

Question 33

A developer needs to use the current scattered data network for socket data transmission, and 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(Context) 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

Question 34

Which field needs to be configured in the module.json5 file for UIAbility startup mode?

Options:

A.

module

B.

skills

C.

launchType

D.

abilities

Question 35

How to set reverse playback in attribute animation?

Options:

A.

PlayMode.Normal B

B.

PlayMode.Alternate

C.

PlayMode.AlternateReverse

D.

PlayMode.Reverse

Question 36

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

Question 37

What principles of permission should be followed when developing HarmonyOS applications?

Options:

A.

The user can know and control

B.

The permission application is complete

C.

Custom permissions to prevent duplicate names

D.

Permission requests are minimized

Question 38

When designing the application, the developer added a Text component and a Button component, and the development sample is shown below. What layout does the developer not have to choose to place the components?

Question # 38

Options:

A.

StackLayout

B.

DependentLayout

C.

DirectionalLayout

D.

TableLayout

Question 39

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

Question 40

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

Options:

A.

86-189****1234

B.

189****1234

C.

+86189****1234

D.

0086-189****1234

Question 41

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

Options:

A.

animation

B.

graphic

C.

media

D.

Element

Question 42

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?

Options:

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

Question 43

When a developer receives a new product demand and asks the user to remake old documents such as paper letters into electronic versions, the application can improve the remake effect of old documents and make the work more correct. What kind of AI-enabled capabilities can be leveraged by HarmonyOSto achieve this?

Options:

A.

Text image is super-resolved

B.

Image super-resolution

C.

Document detection correction

D.

General character recognition

Question 44

Regarding the container components Row and Column, the following statement is wrong.Themain axis of A Column container is vertical, and the cross axis is horizontal;

Options:

A.

The main axis of the row container is horizontal, and the cross axis is vertical.

B.

The main axis and the cross axis are always perpendicular to each other, and the direction of the Row and Column main axes is different.

C.

The alignment of the subcomponents of the C Column in the direction of the main axis is set using the justifyContent property, and its parameter type is FlexAlign.

D.

Thealignment of D Row's subcomponents in the direction of the cross axis is set using the alignltems property, which is of type HorizontalAlign.

Question 45

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.

Options:

A.

2GB

B.

10M

C.

1GB

D.

Unlimited

Question 46

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

Options:

A.

API 6

B.

API 7

C.

API 8

D.

API 9

Question 47

A HarmonyOS application developer creates two pages, indlex and detai1, so that the two pages jump to each other. The code of the index page is as follows, which of the following descriptions are correct?

Question # 47

Options:

A.

Text component is used to mark the current page

B.

When you click the button, the lunch event will be triggered

C.

TheText component is used to jump to and from two pages

D.

TheButton component is used to jump to and from two pages

Question 48

Cross-terminal migration and collaboration are the capabilities of which HarmonyOS feature

Options:

A.

Develop multiple deployments at one time

B.

can be divided or combined

C.

Unified ecology

D.

Free circulation

Question 49

If a developer wants to obtain the location information of a HarmonyOS device, which of the following methods is correct?

Options:

A.

must apply for ohos.permission.LOCATION_INBACKGROUND permissions and be authorized by the user.

B.

If the application scenario does not require real-time device location, you can obtain the latest historical location result cached by the system

C.

When thereal-time location result of the device is successfully determined by the

system, it will be reported to the application through the onLocationReport interface. Applications can implement their own business logic in the implementation of the onLocationReport API

D.

You can use the system's predefined constant SCENE_TRAJECTORY_TRACKING in a trajectory tracking scene

Question 50

HarmonyOS supports the flexible deployment of multiple terminal devices on demand through design methods such as componentization and miniaturization, and can adapt to different types of hardware resources and functional requirements. Which of the following descriptions of elastic deployment are correct?

Options:

A.

Clipping of functions within the component is not supported

B.

supports the association of components and dependencies

C.

The selection of each component is not supported

D.

Supports the configuration of the feature set within the component

Question 51

In the game scene, when playing games on the smart screen, you can use the mobile phone as a remote control handle, and with the help of the mobile phone's gravity sensor, acceleration sensor, and touch ability, it provides players with a more convenient and smooth gaming experience. What distributed capabilities are used to use the mobile phone as a remote control controller in this scenario?

Options:

A.

Distributed Device Virtualization

B.

Distributed task scheduling

C.

Distributed file services

D.

Distributed soft bus

Question 52

In HramonyOS, which of the following can developers use the static animation feature to achieve?

Options:

A.

The picture is rotated along the center point

B.

The image rotates along the horizontal axis

C.

The picture rotates along the edges

D.

The picture rotates along the vertical axis

Question 53

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

Options:

A.

True

B.

False

Question 54

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

Options:

A.

True

B.

False

Question 55

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

Question 56

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

Options:

A.

True

B.

False

Question 57

Huawei's latest mobile phones、HarmonyOS system is pre-installed in the smart screen.Among them, the mobile phone does not belong to the HarmonyOS large system device.The smart screen belongs to the large system device。

Options:

A.

True

B.

Error

Question 58

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

Options:

A.

True

B.

False

Question 59

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

Options:

A.

True

B.

False

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

Options:

A.

True

B.

False

Question 61

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

Options:

A.

True

B.

False

Question 62

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

Options:

A.

True

B.

False

Question 63

Intent is a carrier for transmitting information between objects.

Options:

A.

True

B.

False

Question 64

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

Question 65

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

Question 66

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

Question 67

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

Options:

A.

True

B.

False

Question 68

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.

Options:

A.

True

B.

False

Question 69

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

Question 70

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

Question 71

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

Question 72

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.

Options:

A.

True

B.

False

Question 73

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

Options:

A.

True

B.

False

Question 74

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

Question 75

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

Options:

A.

True

B.

False

Question 76

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.

Options:

A.

True

B.

False

Question 77

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

Question 78

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.

Options:

A.

True

B.

False

Question 79

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

Question 80

The way to find the object of the control declared in the Layout file by ID in HarmonyOS is findComponentByld().

Options:

A.

True

B.

False

Question 81

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

Options:

A.

True

B.

False

Question 82

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

Options:

A.

True

B.

False

Question 83

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

Options:

A.

True

B.

False

Question 84

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

Options:

A.

True

B.

False

Question 85

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

Options:

A.

True

B.

False

Question 86

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

Options:

A.

True

B.

False

Question 87

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

Options:

A.

True

B.

False

Question 88

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

Options:

A.

True

B.

False

Question 89

AR (HarmonyOSAbilityResources) Different HAPs (HarmonyOSAbilityPackage), HAR cannot be installed and run on the device independently, and can only be referenced as a dependency of the application module.

Options:

A.

True

B.

False

Question 90

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

Options:

A.

True

B.

False

Question 91

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

Options:

A.

True

B.

False

Question 92

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

Question 93

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

Question 94

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

Options:

A.

True

B.

False

Question 95

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

Question 96

A developer calls the terminate method in JavaScript code, which causes the Page Ability to be destroyed.

Options:

A.

True

B.

False

Question 97

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.

Options:

A.

True

B.

False

Question 98

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.

Options:

A.

True

B.

False

Question 99

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.

Options:

A.

True

B.

False

Question 100

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

Question 101

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

Question 102

Distributed data services can isolate data belonging to different applications to ensure that data between different applications cannot be accessed to each other through distributed data services.

Options:

A.

True

B.

False

Question 103

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.

Options:

A.

True

B.

False

Question 104

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

Options:

A.

True

B.

False

Question 105

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.

Question 106

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

Question 107

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?

Options:

A.

Content defined in HiLogLabel

B.

Errnovalue

C.

Reachable URL value

D.

The log level is WARN

Question 108

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

Options:

A.

True

B.

False

Question 109

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

Question 110

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

Question 111

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

Question 112

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 113

What are the parameters of animation in attribute animation?

Options:

A.

playMode

B.

curve

C.

delay

D.

onFinish

Question 114

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

Question 115

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?

Options:

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

Question 116

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

Options:

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

Question 117

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 118

Which of the following components are container components?

Options:

A.

Button

B.

Row

C.

Column

D.

Image

E.

TextInput

Question 119

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.

Options:

A.

True

B.

False

Question 120

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

Question 121

A user migrated video from his mobile phone to a smart screen for playback, using the distributed task scheduling capability of HarmonyOS. In this scenario, the process of connecting the mobile phone to the playback software of the smart screen belongs to the remote connection.

Options:

A.

True

B.

False

Question 122

What are the following scenarios that belong to the public events of the system?

Options:

A.

System upgrade

B.

Customize the lights off time

C.

Network connection

D.

USB plugging and unplugging

Question 123

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

Options:

A.

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

B.

calls startScan() to start scanning the Bluetooth device

C.

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

Callback, which is used to receive scan results

D.

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

Question 124

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

Options:

A.

True

B.

False

Question 125

HarmonyOS Distributed File Service can automatically share files under different accounts.

Options:

A.

True

B.

False

Question 126

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?

Options:

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

Question 127

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

Question 128

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

Options:

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.

Question 129

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.

Question # 129

Options:

A.

True

B.

False

Question 130

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

Question 131

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

Question 132

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

Options:

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

Question 133

Which of the following component hierarchies are correct

Options:

A.

Text>Span

B.

Button>Column>Image

C.

Button>Image>Text

D.

Image>Text>Span

E.

Column>Row>Button

Question 134

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

Question 135

What are the life cycle states of UIAbility?

Options:

A.

Create

B.

WindowStageCreate

C.

dForeground

D.

Background

E.

WindowStageDestroy

F.

Destroy

Question 136

If a developer uses the startAbility() method provided in Ability to start a Service, what are the correct descriptions of starting the Service?

Options:

A.

If the Service is running, the system will call back theonStart() method of the Service to start the Service

B.

If the Service is running, the system will call back the onCommand() method of theService to start the Service

C.

If the Service is not already running, the system will call the onCommand() method to start the Service

D.

If the Service is not yet running, the system will call onStart() to initialize the Service

Question 137

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

Options:

A.

GPS

B.

Beidou

C.

WLAN

D.

Base Station

E.

Bluetooth

Question 138

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

Question 139

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

Options:

A.

True

B.

False

Question 140

Which of the following pop-up functions does ArkU provide?

Options:

A.

AlertDialog

B.

TextPickerDialog

C.

DatePickerDialog

D.

@CustomDialog

E.

TimePickerDialog

Question 141

What attributes are supported by attribute animations?

Options:

A.

width

B.

rotate

C.

opacity

D.

scale

Question 142

What is the correct description of the http module?

Options:

A.

HTTP requests support common request methods, such as get, post, and put.

B.

can use on(headersReceive') to subscribe to the request response header.

C.

Theparameters of thepost request can be specified in extraData.

D.

After the createHttp command is successfully executed, an httpRequest object is returned, which includes the request, destroy, on, and off methods.

Question 143

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

Question 144

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.

Options:

A.

True

B.

False

Question 145

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

Question 146

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.

Options:

A.

Name of the organization

B.

Common name

C.

Public key

D.

Organizational unit

Question 147

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

Options:

A.

True

B.

False

Question 148

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?

Options:

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"

Question 149

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?

Options:

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

Question 150

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

Question 151

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

Options:

A.

Global Concurrent Task Dispenser

B.

Concurrent task distributor

C.

Serial task dispenser

D.

Proprietary task distributor

Question 152

What are the types of background agent reminder services?

Options:

A.

Countdown class

B.

Calendar class

C.

Alarm clock class

D.

Schedule

Question 153

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

Options:

A.

onCreate

B.

onDestroy

C.

onPageShow

D.

onPageHide

E.

onForeground

F.

onBackground

Question 154

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

Question 155

HarmonyOS adopts a multi-core design, which supports the selection of appropriate OS kernels for different resource-constrained devices, and which of the following capabilities does the kernel provide for the operating system?

Options:

A.

file system

B.

Memory management

C.

Peripheral management

D.

Thread management

Question 156

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

Question 157

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

Question 158

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?

Options:

A.

“type: “service

B.

“type: “page

C.

“type: “ability

D.

“type: “data

Question 159

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?

Options:

A.

log level

B.

The business area of the log

C.

Log ID

D.

Log type

Question 160

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

Question 161

Which of the following subsystems is not part of the basic software service subsystem of HarmonyoS?

Options:

A.

Event Notification Service subsystem

B.

Telephone service subsystem

C.

Multimedia subsystem

D.

Location Services subsystem

Question 162

Which of the following scenarios does not use encoding technology?

Options:

A.

sound travels through twisted pairs

B.

Sound travels through rails

C.

Sound travels by radio

D.

Sound travels through optical fibers

Question 163

Inwhat form will the application package of Harmony OS be released and put on the shelves?

Options:

A.

HAR(HarmonyOS Ability Resources)

B.

APP Pack (Application Package)

C.

HAP (HarmonyOS Ability Package)

D.

pack.info

Question 164

Both the provider and user of DataAbility use a URI (UnifomResourceldentifier) to identify a specific data, and the format of the URI is as follows:

Scheme://[authority]/[path][? query][#fragment]

Which is the correct URI description in the cross-device scenario and the local device scenario?

Options:

A.

In cross-device scenarios, you do not need to enter authority

B.

In cross-device scenarios, the scheme is fixed to "dataability".

C.

In the local device scenario, authority does not need to be specified

D.

In the local setting, the path does not need to be specified

Question 165

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

Question 166

A developer is developing an online education application, and there are multiple choice questions and multiple choice questions in the studentAnswer:interface, which of the following components is suitable for displaying multiple choice questions?

Options:

A.

Picker

B.

Checkbox

C.

RadioButton

D.

Switch

Question 167

Which of the following options is allthe components ofthe Harmony OS package?

Options:

A.

Logical code, resource files, and application configuration files

B.

Logical code and application configuration file

C.

Logical code

D.

Logical code, resource files, third-party libraries, and application configuration files

Question 168

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

Options:

A.

DirectionalLayout

B.

PositionLayout

C.

DependentLayout

D.

StackLayout

Question 169

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

Question 170

When a developer develops a JavaScript application on a smart screen. If you want to do some static animation, if you want to move a component 200px horizontally, which of the following styling configurations is correct?

Options:

A.

transform: rotate×(200px);

B.

transform: rotateY(200px);

C.

transform: translatex(200px);

D.

transform: scaleX(200px);

Question 171

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

Question 172

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

Options:

A.

insert (Uri uri,ValuesBucket value)

B.

delete(Uri uri,DataAbilityPredicates predicates)

C.

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

D.

batchlnsert (Uri uri, ValuesBucket[]values)

Question 173

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?

Options:

A.

Weak consistency

B.

Strong consistency

C.

Eventual consistency

D.

Process consistency

Question 174

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

Question 175

In the Page Ability lifecycle of HarmonyOS, when the system creates a Page instance for the first time, which of the following callback methods will be triggered first?

Options:

A.

onStart()

B.

onActive()

C.

onInactive()

D.

onStop()

Question 176

The developer uses device A (local device) to control device B (remote device) to open the album, which distributed task scheduling capability is used in this scenario?

Options:

A.

Enable remote FA (Feature Ability).

B.

Connect to a remote PA (Particle Ability).

C.

Start the remote PA (Particle Ability).

D.

Particle Ability (PA)

Question 177

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

}

Options:

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

Question 178

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

Question 179

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

Options:

A.

onActive()

B.

onStart()

C.

onStop()

D.

onForeground()

Question 180

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

Question 181

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

Question 182

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

Question 183

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

Question 184

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?

Options:

A.

timePicker.enableHour(false);

B.

timePicker.showMinute(false);

C.

timePicker.enableMinute(false);

D.

timePicker.showSecond(false);

Question 185

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

Question 186

It is necessary to apply for the permission of certain operation sensitive capabilities. Which of the following is NOT considered a sensitive capability?

Options:

A.

camera

B.

Make a call

C.

Photo

D.

Microphone

Question 187

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

Options:

A.

ohos.permission.READ.MEDIA

B.

ohos.permssion.WRITE_MEDIA

C.

ohos.permission.INTERNET

D.

ohos.permission.GET_NETWORK_INFO

Question 188

After the creation of a custom component of the Web development paradigm, which of the following callbacks will be triggered when it is added to the Page component tree?

Options:

A.

Onlnit

B.

OnAttached

C.

OnLayoutReady

D.

OnDetached

Question 189

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

Question 190

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

Question 191

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

Options:

A.

IAbilityConnection

B.

IAbilityContinuation

C.

AbilityContinuation

D.

AbilityConnection

Question 192

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?

Options:

A.

quick application

B.

Android

C.

Web

D.

HarmonyOS app

Question 193

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?

Options:

A.

Ability

B.

KAL (Kernel Abstract Layer)

C.

UI

D.

HDF (Hardware Driver Foundation)

Question 194

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

Question 195

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?

Options:

A.

serialTaskDispatcher

B.

SpeeTaskDispatcher

C.

ParallelTaskDispatcher

D.

GlobalTaskDispatcher

Question 196

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

Options:

A.

module: {

reqPermissions: [{

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

availableScope: [signatures]

}

}

B.

module: {

defPermissions: [{

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

grantMode:user grant,

availableScope: [signatures]

}

}

module: {

defPermissions: [{

C.

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

grantMode:system_grant,

availableScope: [signatures]

}

}

module: {

defPermissions: [{

D.

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

grantMode:system_grant,

availableScope: [signatures]

}

}

Question 197

A HarmonyOSuser downloads and installs a new application, which has declared some non-sensitive permissions in the config.json file, and the application may involve some sensitive permissions during running. Which of the following is correct in this scenario?

Options:

A.

For the non-sensitive permissions declared by the app in the config.json file, the authorization method is user authorization (user_grant)

B.

For the non-sensitive permissions declared by the application in the config.json file, the application will be dynamically applied for during use

C.

For the sensitive permissions that may be involved in the running process of the application, the authorization method is system authorization (system_grant).

D.

Non-sensitive permissions declared by the app in the config.json file are automatically granted when the user installs the app

Question 198

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

Options:

A.

Media Subsystem

B.

Safety subsystem

C.

AI subsystem

D.

Location Services Subsystem

Question 199

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?

Options:

A.

ToastDialog

B.

RoundProgressBar

C.

PageSlider

D.

ProgressBar

Question 200

Which of the following is NOT a capability provided by Distributed Device Virtualization in HarmonyOS?

Options:

A.

device is virtual

B.

Decision-making centre

C.

Device management

D.

Data Processing

Question 201

A developer now needs to make a motion track recording application, which can report the user's location information in real time. Which of the following is correct?

Options:

A.

Use RequestParam.SCENE_TRAJECTORY_TRACKINGsettings to locate the scene

B.

Apply for the ohos.permission.LOCATION permission only in config.json

C.

dynamically requests user authorization only in the codeohos.permission.LOCATION

D.

Use RequestParam.SCENE_NO_POWER settings to locate the scene

Question 202

When a developer receives a new product demand and asks users to remake old documents such as paper letters into electronic versions, the application can improve the remake effect of the old documents and make the work more correct. What kind of AI-enabled capabilities can be leveraged by HarmonyOSto achieve this?

Options:

A.

Text image is super-resolved

B.

Image super-resolution

C.

Document detection correction

D.

General character recognition

Question 203

Which option is not the process of decoding in the conversion of the following information?

Options:

A.

player plays music from the record

B.

Convert the data to audio

C.

Notebook plays video files from the hard drive

D.

Save the photo in digital form

Question 204

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

Options:

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

Question 205

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

Options:

A.

KAL (Kernel Abstract Layer)

B.

Ability

C.

UI

D.

HDF (Hardware Driver Foundation)

Question 206

WhenthePage of Harmony OS executes the onForeground() callback, which of the following states will the Page return to first?

Options:

A.

INITIAL

B.

INACTIVE

C.

ACTIVE

D.

BACKGROUND

Question 207

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

Page: 1 / 70
Total 695 questions