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

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

Demo: 208 questions
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 1

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

Options:

A.

True

B.

False

Question 2

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 3

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

Options:

A.

True

B.

False

Question 4

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

Options:

A.

True

B.

False

Question 5

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

Options:

A.

True

B.

False

Question 6

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 7

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

Options:

A.

True

B.

False

Question 8

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 9

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 10

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

Options:

A.

True

B.

False

Question 11

Static animation has a start state, an end state and an intermediate state, if you need to set the transition state and transition effect in the middle, you can use static animation to achieve it.

Options:

A.

True

B.

False

Question 12

A developer uses the Wi-Fi "Don't TrustHot-spotConfiguration" feature provided by HarmonyOS to add a specifiedhot-spotto its application, making it prioritize lower than the saved hot-spot. In this case, the system will refuse to connect to thehot-spoteven if it is the most suitablehot-spotafter the system scan.

Options:

A.

True

B.

False

Question 13

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 14

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

Options:

A.

True

B.

False

Question 15

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

Options:

A.

True

B.

False

Question 16

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

Options:

A.

True

B.

False

Question 17

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

Options:

A.

True

B.

False

Question 18

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

Options:

A.

True

B.

False

Question 19

When the user is driving a car, he cannot use the mobile phone with his hands free, but he can control the mobile phone through voice assistant interaction. The abovescenarios belong to a typical class of applications of entity recognition.

Options:

A.

True

B.

False

Question 20

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.

Options:

A.

True

B.

False

Question 21

Service is running in the background, and users want the application to keep running all the time when playing music, and the foreground Service cannot be used at this time.

Options:

A.

True

B.

False

Question 22

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 23

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

Options:

A.

True

B.

False

Question 24

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 25

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

Options:

A.

True

B.

False

Question 26

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.

Options:

A.

True

B.

False

Question 27

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 28

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

Options:

A.

True

B.

False

Question 29

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.

Options:

A.

True

B.

False

Question 30

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

Options:

A.

True

B.

False

Question 31

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 32

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

Options:

A.

True

B.

False

Question 33

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 34

In order to avoid affecting the startup speed, developers need to postpone the execution of non-essential time-consuming tasks until the time of use, instead of performing all initializations in the onStart() method.

Options:

A.

True

B.

False

Question 35

The Ability (referred to as "Service") of the Service template is only used for background running tasks, and the priority of background Services is relatively low, and when the resources are insufficient, the system may recycle the running background Service

Options:

A.

True

B.

False

Question 36

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 37

Intent is a carrier for transmitting information between objects.

Options:

A.

True

B.

False

Question 38

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 39

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

Options:

A.

True

B.

False

Question 40

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

Options:

A.

True

B.

False

Question 41

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

Options:

A.

True

B.

False

Question 42

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

Options:

A.

True

B.

False

Question 43

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

Options:

A.

True

B.

False

Question 44

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

Options:

A.

True

B.

False

Question 45

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

Options:

A.

True

B.

False

Question 46

An engineer uses a simulator to debug a HarmonyOS application, which can support two types of HAP: signed and unsigned HAP (Harmomy0S Ability Package).

Options:

A.

True

B.

False

Question 47

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

Options:

A.

True

B.

False

Question 48

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 49

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 50

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.

Options:

A.

True

B.

False

Question 51

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

Options:

A.

True

B.

False

Question 52

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 53

Which of the following classes is the base class for JavaScript FA (Feature Ability) to run on HarmonyOS?

Options:

A.

AceAbility

B.

PageAbility

C.

ServiceAbility

D.

MainAbility

Question 54

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?

Options:

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

Question 55

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

Options:

A.

Entry.hap

B.

FeatureB.hap

C.

FeatureC.hap

D.

FeatureA.hap

Question 56

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

Options:

A.

Location Services subsystem

B.

DV subsystem

C.

Media Subsystem

D.

Safety subsystem

Question 57

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

Options:

A.

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

B.

Page Ability to create a music list page

C.

Create a Page Ability area for playing the page

D.

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

Question 58

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

Options:

A.

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

btnSwitch.setStateOffText(OFF);

btnSwitch.setStateONText(ON);

B.

Ohos:text_state_off="ON"

Ohos:text_state_on="OFF">

C.

Switch btnSwitch=

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

btnSwitch.setStateONText(OFF);

D.

Ohos:text_state_off="OFF"

Ohos:text_state_on="ON">

Question 59

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?

Options:

A.

"permissions": [

"ohos.permission.CAMERA" ]

B.

"defPermissions":[

{"ohos.permission.CAMERA"}]

C.

"reqPermissions": [ {

"ohos.permission.CAMERA”}]

D.

"permissions": [

"ohos.permission.LOCATION"]

Question 60

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

Options:

A.

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

B.

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

C.

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

D.

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

dependencies(Implementation project(":mylibrary"))

Question 61

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?

Options:

A.

Specify the resource type and resource size

B.

Resource name

C.

Resource size

D.

Specify the resource type and resource name

Question 62

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

Options:

A.

errno value

B.

The log level is Warn

C.

The log level is DEBUG

D.

Content defined in HiLoglabel

Question 63

The Minimalist Protocol is a communication protocol customized by HarmonyOS, which layers of the traditional communication protocol are simplified?

Options:

A.

Application Layer

B.

Data Link Layer

C.

Transport Layer

D.

represents the layer

E.

network layer

F.

Session Layer

Question 64

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

Options:

A.

build method

B.

onPageShow method

C.

aboutToAppear method

D.

onStart method

Question 65

In the distributed terminal scenario, only by ensuring that the equipment used by theuser is safe and reliable can the user's data be effectively protected on the virtual terminal and avoid the leakage of user privacy. What does HarmonyOS do to ensure that your devices are reliable?

Options:

A.

Trusted Execution Environment

B.

Safe Boot

C.

Device certificate authentication

D.

Collaborative Mutual Aid Certification

Question 66

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?

Options:

A.

Memory management

B.

File Management

C.

Network management

D.

Peripheral management

E.

Process Management

F.

Thread Management

Question 67

What components can the animation property be used in?

Options:

A.

can only be a base component

B.

can only container components

C.

Basic components and container components

D.

None of the above is true

Question 68

A developer calls the getDefauitHOST(Context context) interface of Bluetooth HOST to obtain a Bluetooth HOST instance for managing local Bluetooth operations. This developer experiments with the following development steps to implement Bluetooth pairing. 1Turn on Bluetooth, 2Scan Bluetooth3 Initiate pairingWhich of the following statements about steps 1, 2, and 3 are correct?

Options:

A.

CALLS STARTPAIR() TO COMPLETE STEP 3

B.

calls enablebt() to complete step 1

C.

CALLS STARTBTDISCOVERY() TO COMPLETE STEP 2

D.

steps 2 and 3 can be reversed in the order D

Question 69

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

Options:

A.

HarmsryAppProxvision file (.p7b).

B.

Digital certificate (.cer).

C.

Private key (.p12)

D.

Request file (.csr).

Question 70

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

Options:

A.

ToastDialog

B.

Picker

C.

ScrollView

D.

PageSlider

Question 71

When publishing an application, I need to create a certificate, and what type of certificate type should I choose?

Options:

A.

Commissioning Certificate

B.

Publish certificates

C.

Test Certificate

D.

Operating Certificate

Question 72

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

Options:

A.

The default value of tempo is 1.0

B.

parameter delay cannot be greater than duration

C.

parameter curve can be left unset

D.

parameter iterations can be left unset

Question 73

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 74

HarmonyOS provides developers with data management functions, which of the following are the following?

Options:

A.

Converged Search

B.

Data storage management

C.

Distributed data services

D.

Distributed file services

E.

Local database

Question 75

Which of the following accounts does the authentication service support?

Options:

A.

WeChat

B.

QQ

C.

HUAWEI ID

D.

Alipay

Question 76

Distributed task scheduling builds a unified distributed service management (discovery, synchronization, registration, and call) mechanism based on technical characteristics such as distributed soft bus, distributed data management, and distributed profile.

Options:

A.

Remote start

B.

Remote connection

C.

Remote migration

D.

Remote call

Question 77

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 78

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 79

When a developer is developing an application, he calls the IAbilityContribution interface to migrate between multiple pages, what are the methods that belong to the interface?

Options:

A.

onRestoreData()

B.

onCompleteContinuation()

C.

onStartContinuation()

D.

onAbilityConnectDone()

Question 80

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 81

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

Options:

A.

Distributed Device Virtualization

B.

Distributed Data Service

C.

distributed soft bus

D.

Distributed file services

Question 82

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 83

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 84

What development steps does a developer use to develop an application with a UI?

Options:

A.

Create a project

B.

Run the program

C.

Design interface

D.

Implement the function

Question 85

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

Options:

A.

Debug

B.

distribution

C.

runs

D.

Operations

Question 86

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 87

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

Options:

A.

Distributed device virtualization

B.

Distributed data management

C.

Distributed soft bus

D.

Distributed task scheduling

Question 88

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

Options:

A.

ohos:truncation_mode="none"

B.

ohos:truncation_mode="ellipsis_at_start"

C.

ohos:auto_font_size="true"

D.

ohos:multiple_lines="true"

Question 89

Which of the following combinations cannot realize two-way data synchronization between child components and parent and child components?

Options:

A.

@State and @Link

B.

@Provide and @Consume

C.

@Observed and @ObjectLink

D.

@State and @Prop

Question 90

A developer creates MyAbility with FooAbilitySlice and BarAbilitySlice, and currently FooAbilitySlice is in the foreground and gets focused, and then navigates to BarAbilitySlice, what happens to the lifecycle state in this period?

Options:

A.

FooAbilitySlice changes from the INACTIVE state to the ACTIVE state

B.

BarAbilitySlice changes from the INITIAL state to the INACTIVE state first

C.

FooAbilitySlice changes from ACTIVE to INACTIVE

D.

FooAbilitySlice changes from INACTIVE to BACKGROUIND

Question 91

If a HarmonyOS engineer needs to apply for a digital certificate to complete the application release, what are the errors in the following descriptions of digital certificates?

Options:

A.

is issued by AppGalleryConnect

B.

contains the public key in the key pair

C.

Digital certificates are used to ensure the integrity of the application

D.

format is .csr

Question 92

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

Options:

A.

HTTP

B.

WebSocket

C.

Socket

D.

Request

Question 93

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

Options:

A.

The user can know and control

B.

The permission application is complete

C.

Custom permissions can be renamed the same name

D.

Permission requests are minimized

Question 94

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 95

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

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

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

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

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

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

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

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

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

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

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

Options:

A.

module.json5

B.

oh-package.json5

C.

app.json5

D.

main_page.json

Question 96

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 97

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

Options:

A.

Use Java to develop the UI of the application

B.

JS FA calls Java PA

C.

Use JS to develop the logic of the application

D.

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

Question 98

A HarmonyOS developer uses the EventHandler mechanism to handle 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.IMMEDIATE

Event B: Priority.HIGH

Event C: Priority.IDLE

Which of the following accounts of the above events is correct?

Options:

A.

Event A will be delivered immediately

B.

Event B D will be delivered before Event B

C.

delivers event C when there are no other events

D.

Event D will be delivered before EventC

Question 99

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

1Turn on Bluetooth.

2Scan Bluetooth.

3. Initiate pairing.

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

Options:

A.

calls startBtDiscovery()to complete step 2

B.

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

C.

calls the enableBt()interface to complete step 1

D.

calls startPair()to complete step 3

Question 100

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

Options:

A.

@Component

B.

@Entry

C.

@Preview

D.

@Builder

Question 101

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?

Options:

A.

Remote connection

B.

Global query

C.

Remote migration

D.

Remote start

Question 102

Which of the following is an event method that can obtain the offset of the List slide

Options:

A.

onScroll

B.

onScrolllndex

C.

onReachStart

D.

onReachEnd

Question 103

A developer has developed a news browsing application, and the news list page is displayed by default when the application is opened, which of the following methods does the developer use to achieve this function?

Options:

A.

Intent()

B.

setMainRoute()

C.

addActionRoute()

D.

onStart()

Question 104

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 105

When a developer designs a navigation application and needs the system to provide accurate positioning, which subsystem will be used?

Options:

A.

Wearable business subsystem

B.

Location Services Subsystem

C.

Multi-mode input subsystem

D.

Media subsystem

Question 106

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 107

A developer defines an entity class Student.java and uses the following code to construct a teaching table:

Entity(tableName="student",ignoredColums =["ignoredColumn1"," ignoredColumn2", indices =(@Index(value =("firstName." ,"lastName",name="name_index", unique = true)))

Public class User extends OrmObject{

@PrimaryKey(autoGenerate= true)

Private Integer userld;

Private String firstName;

Private String lastName;

Private int age;

Private double balance;

Private int ignoredColumnl;

Private int ignoredColumn2;

}

Which of the following descriptions of this code is wrong?

Options:

A.

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

B.

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

C.

The name of the data table is student

The index value of the

D.

composite index name_index is not unique

Question 108

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

Options:

A.

Engine Layer

B.

Platform adaptation layer

C.

Front-end frame layer

D.

Application layer

Question 109

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

Options:

A.

ScrollView

B.

PageSlider

C.

Text

D.

ListContainer

Question 110

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 111

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 112

In order to cope with complex application business logic, a developer needs to create multiple threads to perform multiple tasks. In this case, the code is complex and difficult to maintain, and the interaction between tasks and threads becomes more complex. To solve this problem, which of the following interfaces can the developer use to distribute different tasks?

Options:

A.

TaskDispatcher

B.

Group

C.

lAbilityMlanager

D.

BackgroundTaskManager

Question 113

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 114

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

Public void onStart(Intent intent){

super.onStart(intent);

super.setUlContent

(ResourceTable.Layout_ability_main);

Button button =

(Button)findComponentByld(ResourceTable.ld_button);

button.setClickedListener(listener -> present(new

SecondAbilitySlice(),new Intent()));

}

Options:

A.

When you click the button again, the ability crashes

B.

buttonbutton does not show up on the layout

C.

Clicking the button does not respond

D.

Click the button button to jump to a new page

Question 115

When designing an application, the program needs to include the global configuration information of the application and the configuration information of the HarmonyOS Ability Package (HAP). In which file can the developer configure this information?

Options:

A.

build.gradle

B.

Manifest.xml

C.

MainAbility.java

D.

config.json

Question 116

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 117

A developer defines an entity class

Student.java and use the following code to construct the table:

@Entity(tableName ="student", ignoredColums

=["ignoredColumn1","ignoredColumn2", indices

= (@Index(value =("firstName.","lastName",

name="name_index", unique = true)))

pub1ic class User extends OrmObject{

@PrimaryKey(autoGenerate= true)

private Integer userld;

private String firstName;

private String lastName;

private int age;

private doub1e balance;

private int ignoredColumn1;

private int ignoredColumn2;

}

Which of the following descriptions of this code is wrong?

Options:

A.

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

B.

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

C.

The name of the data sheet is "student".

D.

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

Question 118

What lifecycle processes will be triggered when a developer creates a Page instance and lets the instance be displayed in the foreground?

Options:

A.

onStart()→onActive()

B.

onStart()→onActive()→onInactive()

C.

onBackground()→onForeground()→onStop()

D.

onActive()→onInactive()

Question 119

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?

Options:

A.

ohos.permission.SET_NETWORK_INFO

B.

ohos.permission.INTERNET

C.

ohos.permission.LOCATION

D.

ohos.permission.GETNIPORK_INFO

Question 120

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 121

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

Options:

A.

Jump to another page through a hyperlink

B.

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

C.

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

D.

Start an AbilitySlice by navigating

Question 122

If a developer wants to stop the service in a Service, which of the following APIs needs to be called?

Options:

A.

terminateAbility()

B.

stopAbility()

C.

connectAbility()

D.

startAbility()

Question 123

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 124

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?

Options:

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"

Question 125

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 126

Developers will use the UI framework provided by Harmony OS when developing mobile phone pages, which of the following is not a UI framework?

Options:

A.

layout

B.

Cross-device call

C.

Graphical controls

D.

Window Management Framework

Question 127

Which of the following fields is not within the scope of permission?

Options:

A.

privileged

B.

signature

C.

restricted

D.

deivced

Question 128

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 129

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

Options:

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

Question 130

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

Options:

A.

Checkbox

B.

Switch

C.

DatePicker

D.

TimePicker

Question 131

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

Options:

A.

mobile phone

B.

Tablet

C.

Watch

D.

Smart screen

Question 132

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

Options:

A.

Use the setMainRoute() method to specify the forwarding device

B.

Implement the IAbilityContribution interface to enable Ability to support migration

C.

Use the continueAbility() method for fetching

D.

Use the onStart() method to rewrite the migration flow

Question 133

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

Options:

A.

"module": {

"reqPermissions": [

{

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

"grantMode":"system_grant",

"availableScope": ["signatures"]

}

}

B.

"module": {

"defPermissions": [

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

"grantMode":"user_grant"

"availableScope": ["signatures"]

}

}

C.

"module": {

"defPermissions": [

{

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

"grantMode":"system_grant"

"availableScope": ["signatures"]

}

}

D.

"module": {

"defPermissions": [

{

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

"grantMode":"system_grant"

"availableScope": ["signatures"]

}

}

Question 134

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 135

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

Options:

A.

Menu

B.

List

C.

Input

D.

Image

Question 136

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 137

A developer usestheAI capabilities provided by Harmony OS to achieve the following functions: 1. Perform text detection and recognition of image sources such as document remakes and street view reproductions, and provide translation, search and other related services based on the recognition results. 2. Convert various bills into image information by taking pictures, and then use text recognition technology to convert image information into character information that can be used by computers and other equipment. In order to implement the above functions, which of the following I capabilities is most likely to be used by the developer?

Options:

A.

Universal Character Recognition

B.

Text and image super-resolution

C.

Keyword extraction

D.

Part-of-speech annotation

Question 138

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 139

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

Options:

A.

Data and Computing Center

B.

Decision-making centre

C.

Task Bus

D.

Interconnection Management Center

Question 140

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

Options:

A.

Start an AbilitySlice by navigating

B.

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

C.

Jump to another page via a hyperlink

D.

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

Question 141

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 142

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

Options:

A.

Large-screen refrigerator

B.

smart door lock

C.

Rice cooker

D.

Water heater

Question 143

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 144

A developer wants to implement a registration and login function, and there are two pages, namely registration page A and login page B. When jumping from registration page A to login page B, which of the following is correct about the lifecycle of the two pages?

Options:

A.

A(INACTIVE)→B(INITIAL)→B(ACTIVE)→A(BACKGROUND)

B.

B(INITIAL)→B(ACTIVE)→A(INITIAL)→A(BACKGROUND)

C.

A(INACTIVE)→A(BACKGROUND)→B(INITIAL)→B(ACTIVE)

D.

A(INACTIVE)→B(INITIAL)→A(BACKGROUIND)→B(ACTIVE)

Question 145

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

Options:

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

Question 146

When a developerdevelops an application based on Harmony OS, one of the HAPs (HarmonyOS Ability Package) needs to access the SQLite database to implement the following functions:

Function 1: Create a database.

Function 2: Insert data.

Function 3: Query data.

Which of the following descriptions of the developer's development steps is correct?

Options:

A.

The developer can use the query() interface provided by the relational database to implement the function 2

B.

The developer can use the getRdbStore interface of the DatabaseHelper class to implement function 1

C.

The developer can use the insert() interface provided by the relational database to implement function 3

D.

Before queryingdata, you need to construct a predicate object for querying and store it in the form of a ValuesBucket

Question 147

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?

Options:

A.

distributed soft bus

B.

Forwarding task management services

C.

Distributed security

D.

Distributed task scheduling

Question 148

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?

Options:

A.

onConneCtenxt()

B.

connectPageAbility(intent.connection)

C.

connectAbility(intent.connection);

D.

connectServiceAbility(intent,connection);

Question 149

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

Options:

A.

For sensitive permissions that may be involved in the operation of the application, the authorization method is system authorization (system_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.

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

D.

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

Question 150

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 151

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

Options:

A.

config.json

B.

ability_main.xml

C.

MainAbilityS1ice.java

D.

string.json

Question 152

A developer obtains a log content: static final HiLogLabel LABEL = new HiLogLabe1 (HiLog.LOG_APP,0x00201,"MY_TAG");

Which of the following information can't be obtained?

Options:

A.

log level

B.

The business area of the log

C.

Log ID

D.

Log type

Question 153

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 154

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 155

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?

Options:

A.

GlobalTaskDispatcher

B.

SpecTaskDispatcher

C.

SerialTaskDispatcher

D.

ParallelTaskDispatcher

Question 156

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 157

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

Options:

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.

Question 158

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

Options:

A.

data is the result data of an ordered public event

B.

intent is not allowed to be empty

C.

intent—must be empty

D.

codeis the result code of an ordered public event

Question 159

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

Options:

A.

True

B.

False

Question 160

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 161

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

Options:

A.

Data connection management

B.

Data network management

C.

Traffic statistics

D.

Create a local socket

Question 162

What functions does UIAbility's lifecycle include?

Options:

A.

onCreate

B.

onForeground

C.

onBackground

D.

onDestroy

Question 163

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

Options:

A.

True

B.

False

Question 164

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

Options:

A.

True

B.

False

Question 165

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 166

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 167

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 168

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.

Options:

A.

True

B.

False

Question 169

Which of the following components are container components?

Options:

A.

Button

B.

Row

C.

Column

D.

Image

E.

TextInput

Question 170

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 171

How do I create a new project in DevEco Studio?

Options:

A.

Create a new file on your computer and name it "new harmonyOS project"

B.

If you have a project open, select 'file>new>Create Project from the DevEco Studio menu

C.

If you open DevEco Studio for the first time, click "Create new Project" on the welcome page

D.

Create a new project without having to rename it

Question 172

Which of the following container components can be scrolled

Options:

A.

Scroll

B.

List

C.

Row

D.

Grid

E.

Column

Question 173

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 174

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 175

What are the features of Huawei DevEco Studio, which is a multi-device unified development environment?

Options:

A.

Support distributed multi-terminal application development

B.

Support multi-device previewer

C.

Support rapid development of FA (Feature Ability) and PA (Partic1eAbility).

D.

Support multi-device emulators

Question 176

When using Bluetooth Low Energy in HarmonyOS, the peripheral device, as a client, can receive GATT connection requests from the central device, but cannotAnswer:requests for reading and writing eigenvalue content from the central device.

Options:

A.

True

B.

False

Question 177

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

Options:

A.

Entry.hap

B.

FeatureB.hap

C.

FeatureC.hap

D.

FeatureA.hap

Question 178

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 179

What development tools do programmers do not need to install when developing HarmonyOS mobile apps?

Options:

A.

HUATEI DevEco Device Tool

B.

HiBurn

C.

DevEco Studio

D.

Visual Studio Code

Question 180

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.

Options:

A.

SignAlg

B.

Certpath File

C.

Profile File

D.

Store File

Question 181

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

Options:

A.

True

B.

False

Question 182

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.

Options:

A.

True

B.

False

Question 183

Which of the following descriptions of the global concurrent task distributor and the concurrent task distributor is correct?

Options:

A.

Concurrent task distributor is globally unique

B.

Global concurrent task dispatcher, obtained by Ability by executing getGlobalTaskDispatcher().

C.

The global concurrent task distributor is globally unique

D.

Concurrent task dispatcher, created by Ability to execute createParallelTaskDispatcher() and returned

Question 184

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 185

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

Options:

A.

Application Layer

B.

Front-end frame layer

C.

Engine Layer

D.

Platform adaptation layer

Question 186

What are the boot modes of UIAbility?

Options:

A.

singleton

B.

specified

C.

multition

D.

Builder

Question 187

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.

Options:

A.

True

B.

False

Question 188

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 189

Which of the following statements is correct?

Options:

A.

preference follows the ACID characteristic

B.

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

C.

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

D.

The key of the preference is of type String

Question 190

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

Options:

A.

True

B.

False

Question 191

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 192

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 193

Cross-terminal migration is a technical solution to realize the flow of user applications, which refers to the simultaneous or alternate operation of FA/PA on multiple terminals to achieve complete services.

Options:

A.

True

B.

False

Question 194

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

Options:

A.

DV subsystem

B.

Proprietary business subsystem of smart screen

C.

Safety subsystem

D.

Media subsystem

Question 195

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

Options:

A.

fontColor

B.

fontSize

C.

fontStyle

D.

fontWeight

E.

fontFamily

Question 196

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

Options:

A.

C/C++

B.

CSS

C.

HTML5

D.

JavaScript

Question 197

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 198

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 199

What are the parts of the HarmonyOS cloud development project?

Options:

A.

end development project (Application)

B.

CloudProgram

C.

External Libraries on theside

D.

Public Resource Library (Resource)

Question 200

Which of the following information is contained in moduleJSON5 under entry?

Options:

A.

Application package name and version number information

B.

Ability

C.

Device type information

D.

Application list for application permissions

Question 201

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

Options:

A.

Small system equipment

B.

Large-scale system equipment

C.

Lightweight system equipment

D.

Standard system equipment

Question 202

. If a developer wants to use the distributed device virtualization capabilities of HarmonyOS, which of the following hardware can be selected by the developer?

Options:

A.

display

B.

Camera

C.

Global Positioning System (GPS).

D.

Accelerometer

Question 203

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

Options:

A.

True

B.

False

Question 204

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 205

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

Options:

A.

True

B.

False

Question 206

In the process of application development, a developer uses the global concurrent task distributor to dispatch tasks, and if a specific task needs to be executed 10 times, the developer can use applyDispatch to execute the task multiple times.

Options:

A.

True

B.

False

Question 207

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 208

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

Demo: 208 questions
Total 695 questions