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

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

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

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 2

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 3

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

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

loop="true"digital="false">

Options:

A.

subassembly loops

B.

subcomponent autoplay

C.

Navigation points can be manipulated

D.

subcomponent autoplay interval 20s

Question 4

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

Options:

A.

Action

B.

AbilityName

C.

Entity

D.

BundleName

Question 5

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

Options:

A.

@State

B.

@Prop

C.

@Link

D.

@Provide

E.

@Consume

Question 6

JavaScriptUl does not support async and await syntax.

Options:

A.

True

B.

False

Question 7

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 8

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 9

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 10

Which of the following information is included in the module.json5 configuration file?

Options:

A.

ability

B.

Module Name

C.

The version number of the app

D.

Module type

Question 11

Which of the following properties or events does the web component support?

Options:

A.

fileAccess(fileAccess:boolean)

B.

javaScriptAccess(javaScriptAccess:

boolean)

C.

on(type:'headerReceive',callback:

AsyncCallback):void

D.

onConfirm(callback:(event?:{url:string;

message:string; result:JsResult })=>

boolean)

E.

destroy():void

Question 12

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 13

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

Options:

A.

True

B.

False

Question 14

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

Options:

A.

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

B.

Account is not registered

C.

uses the Chrome browser

D.

The HUAWEI ID is not verified

Question 15

Which of the following methods can remove a notification?

Options:

A.

cancel

B.

cancelAll

C,removeSlot

C.

removeAll

Question 16

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

Options:

A.

Device certificate certification

B.

Safe Boot

C.

Trusted Execution Environment

D.

Zero trust model

Question 17

A developer has multiple versions of the object-relational mapping database, and the developer calls the BOOKstoreUpgrade class to upgrade the database version, and the version number of the BOOKstoreUpgrade class is configured as "3", and the actual version number of the current BOOKstore.db is "1", in this case, TestormMigration12, TestormMigration23 The onMigration method is automatically called to complete the database upgrade.

Options:

A.

True

B.

False

Question 18

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 19

HarmonyOS provides developers with a HiLog logging system, which of the following log levels are defined in HiLog?

Options:

A.

DEBUG

B.

INFO

C.

WARN

D.

FATAL

Question 20

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 21

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 22

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 23

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

Options:

A.

True

B.

False

Question 24

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

Options:

A.

Data storage

B.

Data Usage

C.

Data generation

D.

Data Transfer

Question 25

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 26

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 27

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 28

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 29

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 30

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

Options:

A.

True

B.

False

Question 31

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 32

What are the data management methods provided by HarmonyOS?

Options:

A.

preference

B.

Distributed data services

C.

Relational databases

D.

Distributed data objects

Question 33

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 34

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 35

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

Switch btnSwitch=

(Switch)findComponentByld(ResourceTable.

ld_btn_switch);

btnSwitch.setStateOffText("ON");

btnSwitch.setStateOnText("OFF");

Options:

A.

True

B.

False

Question 36

If a reading app uses the language recognition capability provided by HarmonyOS, the app can automatically read a novel.

Options:

A.

True

B.

False

Question 37

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

Options:

A.

Picker

B.

ListContainer

C.

Switch

D.

ScrollView

Question 38

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 39

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 40

What are the types of background agent reminder services?

Options:

A.

Countdown class

B.

Calendar class

C.

Alarm clock class

D.

Schedule

Question 41

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 42

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 43

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 44

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 45

What services will be automatically activated after a HarmonyOS Cloud development project is created?

Options:

A.

SCF

B.

Cloud Database

C.

Cloud storage

D.

Certification services

Question 46

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

Options:

A.

Top

B.

Bottom

C.

Start

D.

End

E.

Center

Question 47

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

scrollpage="true"

scrollbar="on"

shapemode="round"

scrolleffect="no">

{{Sitem.title}}

{{Sitem.date}}

Options:

A.

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

B.

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

C.

The side slider is circular

D.

Swiping to the edge has no effect

Question 48

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 49

What is correct about Web Component Description A?

Options:

A.

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

B.

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

C.

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

D.

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

Question 50

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 51

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 52

What are the componentization characteristics of custom components?

Options:

A.

Combinable

B.

Reusable

C.

Configure the lifecycle

D.

Data-driven updates

Question 53

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

Options:

A.

True

B.

False

Question 54

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

Options:

A.

True

B.

False

Question 55

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

Options:

A.

True

B.

False

Question 56

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

Options:

A.

True

B.

False

Question 57

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

Options:

A.

True

B.

False

Question 58

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 59

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

Options:

A.

True

B.

False

Question 60

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

Options:

A.

True

B.

False

Question 61

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

Options:

A.

True

B.

Error

Question 62

When using EventHandler to implement inter-thread communication, if the callback method of EventHandler and the processing method of EventHandler are used.

Options:

A.

True

B.

False

Question 63

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 64

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 65

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

Options:

A.

True

B.

False

Question 66

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

Options:

A.

True

B.

False

Question 67

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

Options:

A.

True

B.

False

Question 68

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 69

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 70

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 71

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

Options:

A.

True

B.

False

Question 72

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 73

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 74

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

Options:

A.

True

B.

False

Question 75

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

Options:

A.

True

B.

False

Question 76

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

Options:

A.

True

B.

False

Question 77

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 78

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 79

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

Options:

A.

True

B.

False

Question 80

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 81

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 82

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 83

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 84

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 85

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 86

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 87

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 88

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 89

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 90

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 91

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 92

The global search portal provided on HarmonyOS has a desktop drop-down search box or a negative screen search box.

Options:

A.

True

B.

False

Question 93

An application can have one or two HAP (HarmonyOS Abi1itPackage) packages of entry type in the same device type.

Options:

A.

True

B.

False

Question 94

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 95

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

Options:

A.

True

B.

False

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

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 98

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

Options:

A.

True

B.

False

Question 99

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 100

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 101

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 102

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 103

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

Options:

A.

True

B.

False

Question 104

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 105

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

Options:

A.

app

B.

deviceConfig

C.

module

D.

abilities

Question 106

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

Options:

A.

Add a route for AbilitySliceA2via addActionRoute() in PageA

B.

Register the action corresponding to PageA in the configuration file

C.

Set the action in the Intent of the PageB navigation

D.

Set Deviceld to empty in the Intent of the PageB navigation

Question 107

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 108

With regard to Web components, the following is incorrect

Options:

A.

WebController can control various behaviors of web components, such as forward, backward, runJavaScript, etc.

B.

The web component supports the setting of various properties such as fileAccess.javaScriptAccess, for example, .javaScriptAccess(true) indicates that JavaScript scripts are allowed to be executed.

C.

The web component supports a variety of events, such as onConfirm and onConsole, for example, the onConfirm callback is triggered when a web page calls confirm().

D.

The ohos.permission.INTERNET permission is required to access both online and offline web pages using the web component.

Question 109

The software engineer will encode the data, which can take two coding methods: ordinary and pipeline, which of the following are the differences between these two coding methods?

Options:

A.

In pipeline mode, the application needs to call the setSource() method of the Source class

B.

In the B pipeline mode, the application must continuously transfer data B to the Code instance

C.

Inpipeline mode, it is not necessary for the application to continuously transfer data to the Code instance

D.

Inpipe mode, the app is automatically parsed and transferred to the Code instance after it is correctly configured

Question 110

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

Options:

A.

Issued by AppGallery Connect

B.

You need to use DevEco Studio to generate a key

C.

Digital certificates are used to ensure the integrity of the application

D.

The digital certificate format is .csr

Question 111

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 112

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?

Options:

A.

StackLayout

B.

DependentLayout

C.

DirectionalLayout

D.

TableLayout

Question 113

If a developer needs to use the JavaScript UI framework to develop an application, which of the following components can the developer choose?

Options:

A.

Container component

B.

Media Component

C.

Foundation Components

D.

Canvas component

Question 114

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 115

What are the following task distribution methods for developers?

Options:

A.

Synchronous distribution

B.

Asynchronous distribution

C.

Asynchronous delayed distribution

D.

Distributed in groups

Question 116

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 117

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

Options:

A.

onStartContinuation()

B.

onCompleteContinuation()

C.

onRestoreData()

D.

onSaveData()

Question 118

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 119

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

Options:

A.

Front-end frame layer

B.

Engine Layer

C.

Application Layer

D.

Adaptation layer

Question 120

A developer has developed a HarmonyOS application that remotely launches a Page on phone B, and which of the following permissions does not need to request the user to grant permission by sending a pop-up window at runtime?

Options:

A.

ohos.permission.GET_DISTRIBUTED_DEVICE_INFO

B.

ohos.permission.DISTRIBUTED_DEVICE STATE_CHANGE

C.

ohos.permission.GET_BUNDLE_INFO

D.

ohos.permission.DISTRIBUTED_DATASYNC

Question 121

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 122

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

Options:

A.

Distributed file services

B.

Virtualization of distributed devices

C.

Cloth data services

D.

Distributed soft bus

Question 123

When using the capabilities or data of the corresponding service, you need to apply for the corresponding permissions, and the non-sensitive permissions need to be declared in which field of config.json?

Options:

A.

reqPermissions

B.

requestPermissions

C.

defPermissions

D.

canRequestPermissions

Question 124

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

Options:

A.

ohos.permission.READ_MEDIA

B.

ohos.permission.INTERNET

C.

ohos.permission.GET_NETWORK_INFO

D.

ohos.permission.DISTRIBUTED_DATASYNC

Question 125

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 account 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 UUIDs, as the app can be used during its lifetime

The UUID uniquely identifies the same device

B.

If the developer borrows the UUID to achieve the above requirements, the UUID logo still exists after the application is uninstalled.

C.

Developers can achieve the above requirements with the help of DVID, because the application can be accessed and managed according to the DVID

Distributed equipment

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 126

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 127

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 128

In what ways can developers use device-cloud integration in DevEco Studio?

Options:

A.

IDE plug-in

B.

Project Template

C.

Command-line tool

D.

Visualization Tools

Question 129

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 130

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

Options:

A.

build function

B.

build function

C.

page entry

D.

page

Question 131

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 132

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

Options:

A.

is added directly in the current version

B.

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

C.

Appended directly after the current version

D.

Users need to be added before releasing a new beta version

Question 133

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

Options:

A.

package

B.

name

C.

bundleName

D.

page

Question 134

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

Options:

A.

LiteOS

B.

HDF (Hardware Driver Foundation)

C.

Linux

D.

KAL(Kerne1 Abstract Layer)

Question 135

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

Options:

A.

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

B.

The thread pool is full

C.

In dispatcher_a assignment tasks, use dispatcher_b to dispatch assignments

D.

On a dedicated thread bound dispatcher_s, use dispatcher_s for syncDispatch

Question 136

With regard to the characteristics of @State state data, the following description is incorrect

Options:

A.

State is decorated with a variable that is the internal state data of the component, and when the state data is modified, the build method of the component will be called to refresh the UI.

B.

Properties marked as @State are private variables that can only be accessed within the component

C.

@State variable can be left without an initial value

The decorated variables@Link

D.

child components can be bidirectionally bound to the @State variables of the parent component

Question 137

When a developer develops an online education application, which of the following components can be combined into a single-choice question if the studentAnswer:ing interface has multiple choice questions and multiple choice questions?

Options:

A.

Checkbox

B.

RadioButton

C.

Picker

D.

RadioContainer

Question 138

Which of the following component hierarchies is wrong?

Options:

A.

list>listltem>Column

B.

Column>List>Listltem

C.

Grid>Row>Gridltem

D.

Grid>Gridltem

Question 139

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 140

When a HarmonyOS developer makes an FA call to PA, the callAbility interface returns the error "Internal ability not register.", which of the following points needs to be checked correctly?

Options:

A.

Check whether the Ability entered on the JS side is 1

B.

Check whether the bundleName and abilityName entered on the JS side are the same as those entered in the AcelnternalAbility inheritance class constructor

C.

In the AceAbility inheritance class, the register method is executed for the AcelnternalAbility inheritance class

D.

Check whether the InternalAbility set on the JS side is 0

Question 141

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

Options:

A.

deviceConfig information

B.

Layout property configuration information

C.

Version information for the app

D.

deviceType

Question 142

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

Options:

A.

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

B.

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

C.

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

D.

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

E.

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

Question 143

Which of the following belong to the lifecycle callback method of Page Ability?

Options:

A.

onStart

B.

onForeground

C.

onActive

D.

onCreate

Question 144

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 145

Where is the data of the preference placed after persistence?

Options:

A.

In memory

B.

database table

C.

file

D.

Cloud

Question 146

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 147

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 148

Use Textlnput to complete a password input box, which of the following values is recommended to set the type attribute?

Options:

A.

InputType.Normal

B.

InputType.Password

C.

InputType.Email

D.

InputType.Number

Question 149

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 150

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

Options:

A.

oval

B.

rectangle

C.

line

D.

are

Question 151

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

Options:

A.

ohos.permission.GET_DISTRIBUTED_DEVICE_INFO

B.

ohos.permission.DISTRIBUTED_DEVICE_STATE_CHANGE

C.

ohos.permission.GET_BUNDLE_INFO

D.

ohos.permission.DISTRIBUTED_DATASYNC

Question 152

Whichof the following subsystems in Harmony OS can achieve data isolation between applications?

Options:

A.

Location Services subsystem

B.

Safety subsystem

C.

Media Subsystem

D.

AI subsystem

Question 153

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

Options:

A.

Distributed multi-terminal collaborative identity authentication

B.

The distributed terminal must be a Huawei product

C.

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

D.

Build a trusted operating environment on distributed terminals

Question 154

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 155

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 156

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 157

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 158

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 159

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 160

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 161

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 162

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 163

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

Options:

A.

ohos:visibility= hide

B.

text.setVisibility(Component. VISIBLE)

C.

ohos:visibility=visible

D.

ohos: visibi1ity=invisible

Question 164

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 165

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

Options:

A.

RoundProgressBar

B.

PageSlider

C.

ToastDialog

D.

ProgressBar

Question 166

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 167

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 168

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 169

Thedefault size of shared memory in Harmony OS is ?

Options:

A.

8M

B.

4M

C.

2M

D.

1M

Question 170

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 171

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 172

When a developer specifies a music playback service through an intent when starting a remote service, device A (local device) can start the music playback capability of device B (remote device).

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) of the Guantuan

Question 173

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 174

When a developer uses Page Ability to open a ServiceAbility, he needs to pass parameters through Intent, at what stage is the parameter obtained in the whole process null?

onStart( ) in A S ervice.

Options:

A.

bility

B.

PageAbility

C.

ServiceAbility

D.

ServiceAbility

Question 175

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 176

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

Options:

A.

ohos:visibility="invisible"

B.

text.setVisibility(Component.VISIBLE);

C.

ohos:visibility="visible"

D.

ohos:visibility="hide"

Question 177

A developer designs a game application with MainAbility on the home page, click the game icon on the desktop, and then press the Home button to hide the game in the background, how does the life cycle of MainAbility change?

Options:

A.

onStart ()→onResume()—onInActive()→onBackground()

B.

onStart()→onActive()→onInActive()→onStop()

C.

onStart()—onActive()→onInActive()

D.

onStart()→onActive()→onlnActive()→onBackground()

Question 178

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 179

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

Options:

A.

Signature information is not configured

B.

Package information exceeds the maximum length

C.

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

D.

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

Question 180

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

Options:

A.

connectPageAbility(intent,connection)

B.

connectAbility(intent, connection)

C.

onConnect

D.

connectServiceAbility(intent, connection)

Question 181

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

Options:

A.

DV subsystem

B.

Proprietary business subsystem of smart screen

C.

Media Subsystem

D.

Safety subsystem

Question 182

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 183

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 184

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 185

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 186

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

Options:

A.

Distributed file services

B.

Distributed data services

C.

Data search services

D.

Data storage management

Question 187

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 188

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

Options:

A.

cer

B.

csr

C.

p12

D.

p7b

Question 189

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 190

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 191

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

Options:

A.

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

B.

can be copied and pasted into app B in app A

C.

Only replication is supported

D.

Only clipping is supported

Question 192

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

Options:

A.

ohos:selected_tab_indicator_color=#000000

B.

ohos:tab_indicator_type=#000000

C.

ohos:normal_text_color=#000000

D.

ohos:selected _text_color=#000000

Question 193

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 194

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

Options:

A.

Percentage

B.

Hidden

C.

Split the line

D.

stretch

Question 195

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 196

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 197

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

Options:

A.

onStart

B.

onActive

C.

onBackground

D.

onInactive

Question 198

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 199

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 200

The logs queried by a developer are as follows. HiLog.warn(LABEL, "Failed to visit %(private) s,reason:%(public}d.",url, exrno); What kind of level does the log belong to?

Options:

A.

WARN

B.

FalseCode()

C.

INFO

D.

DEBUG

Question 201

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

Options:

A.

onForeground()

B.

onInactive()

C.

onActive()

D.

onStart()

Question 202

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 203

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 204

When a developer clicks the exit button of an application to release PageAbility resources, which callback method in the ability lifecycle of the Pag package will betriggered?

Options:

A.

onBackground( )

B.

onInactive( )

C.

onForeground( )

D.

onStop( )

Question 205

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 206

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 207

If an engineer needs to determine whether a device supports the corresponding decoder of the specified MIME (Multipurpose Internet Mail Extensions), which of the following interfaces should be selected?

Options:

A.

getSupportedMimes()

B.

isEncodeSupportedByMime(String mime)

C.

isDecodeSupportedByMime(String mime)

D.

isDecoderSupportedByFormat(Format format)

Question 208

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

Page: 1 / 70
Total 695 questions