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

H14-231_V1.0 PDF

$38.5

$109.99

3 Months Free Update

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

H14-231_V1.0 PDF + Testing Engine

$61.6

$175.99

3 Months Free Update

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

H14-231_V1.0 Engine

$46.2

$131.99

3 Months Free Update

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

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

Question # 6

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.

A.

True

B.

False

Full Access
Question # 7

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.

A.

True

B.

False

Full Access
Question # 8

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

A.

True

B.

False

Full Access
Question # 9

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.

A.

True

B.

False

Full Access
Question # 10

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

A.

True

B.

False

Full Access
Question # 11

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.

A.

True

B.

False

Full Access
Question # 12

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

A.

True

B.

False

Full Access
Question # 13

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

A.

True

B.

False

Full Access
Question # 14

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

A.

True

B.

False

Full Access
Question # 15

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.

A.

True

B.

False

Full Access
Question # 16

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

A.

True

B.

False

Full Access
Question # 17

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

A.

True

B.

False

Full Access
Question # 18

Intent is a carrier for transmitting information between objects.

A.

True

B.

False

Full Access
Question # 19

HarmonyOS application packages are released in the form of application packs, which are composed of one or more HAPs (HarmonyOS Ability Packages) and pack.info describing each HAP attribute.

A.

True

B.

False

Full Access
Question # 20

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

A.

True

B.

False

Full Access
Question # 21

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

A.

True

B.

False

Full Access
Question # 22

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

A.

True

B.

False

Full Access
Question # 23

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

A.

True

B.

False

Full Access
Question # 24

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

A.

True

B.

False

Full Access
Question # 25

After the user enters a piece of text, with the help of the part-of-speech annotation interface, the application can perform automatic word segmentation, and label each word in the word segmentation result with a correct part of speech. However, the part-of-speech tagging feature provided by HarmonyOS only provides a fixed word segmentation granularity, and developers cannot customize the word segmentation granularity as needed when developing applications.

A.

True

B.

False

Full Access
Question # 26

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

A.

True

B.

False

Full Access
Question # 27

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

A.

True

B.

False

Full Access
Question # 28

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

A.

True

B.

False

Full Access
Question # 29

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

A.

InputType.Normal

B.

InputType.Password

C.

InputType.Email

D.

InputType.Number

Full Access
Question # 30

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

A.

Text image is super-resolved

B.

Image super-resolution

C.

Document detection correction

D.

General character recognition

Full Access
Question # 31

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.

A.

True

B.

False

Full Access
Question # 32

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

A.

True

B.

False

Full Access
Question # 33

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

A.

True

B.

False

Full Access
Question # 34

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.

A.

True

B.

False

Full Access
Question # 35

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

A.

True

B.

False

Full Access
Question # 36

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

A.

True

B.

False

Full Access
Question # 37

The application package names of the application projects created by JavaSaript and the applications compiled by the Java projects are HAR (HarmonyOS Ability Resources) and HAP (HarmonyOS Ability Package), respectively.

A.

True

B.

False

Full Access
Question # 38

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

A.

True

B.

False

Full Access
Question # 39

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

A.

True

B.

False

Full Access
Question # 40

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.

A.

True

B.

False

Full Access
Question # 41

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

A.

True

B.

False

Full Access
Question # 42

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

A.

True

B.

False

Full Access
Question # 43

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.

A.

True

B.

False

Full Access
Question # 44

In order to improve the user experience, a developer uses ScrollView to realize the scrolling display of photos in an album application, and in order to improve the user experience, the developer sets the ScrollView rebound_effect property to true, so that the photo has a rebound effect when sliding to the bottom.

A.

True

B.

False

Full Access
Question # 45

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

A.

True

B.

False

Full Access
Question # 46

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

A.

True

B.

False

Full Access
Question # 47

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.

A.

True

B.

False

Full Access
Question # 48

What are the boot modes of UIAbility?

A.

singleton

B.

specified

C.

multition

D.

Builder

Full Access
Question # 49

What functions does UIAbility's lifecycle include?

A.

onCreate

B.

onForeground

C.

onBackground

D.

onDestroy

Full Access
Question # 50

Which of the following methods can remove a notification?

A.

cancel

B.

cancelAll

C,removeSlot

C.

removeAll

Full Access
Question # 51

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

H14-231_V1.0 question answer

A.

True

B.

False

Full Access
Question # 52

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

A.

Data connection management

B.

Data network management

C.

Traffic statistics

D.

Create a local socket

Full Access
Question # 53

How do I create a new project in DevEco Studio?

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

Full Access
Question # 54

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.

A.

True

B.

False

Full Access
Question # 55

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

A.

True

B.

False

Full Access
Question # 56

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

A.

True

B.

False

Full Access
Question # 57

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.

A.

True

B.

False

Full Access
Question # 58

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

A.

Small system equipment

B.

Large-scale system equipment

C.

Lightweight system equipment

D.

Standard system equipment

Full Access
Question # 59

When developing HarmonyOS applications, if the client and server need to communicate across processes, you can use idl to define programming interfaces that are recognized by both.

A.

True

B.

False

Full Access
Question # 60

What operations are supported by SCF in device-cloud integration?

A.

writes a function

B.

Test function

C.

Packing function

D.

Deploy functions

Full Access
Question # 61

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

A.

True

B.

False

Full Access
Question # 62

Knowing the variable int a=123, which of the following codes can successfully print the value of variable a in the console?

A.

HiLog.info(LABEL,String.format("a =%d",a));

B.

HiLog.info(LABEL,"a=%(public)d",a);

C.

HiLog.info(LABEL,"a =%d",a);

D.

HiLog.info(LABEL,"a =%{private}d",a);

Full Access
Question # 63

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

A.

Top

B.

Bottom

C.

Start

D.

End

E.

Center

Full Access
Question # 64

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

A.

True

B.

False

Full Access
Question # 65

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

A.

Unpublish a public event

B.

Subscribe to public events

C.

Publish a public event

D.

Unsubscribe from public events

Full Access
Question # 66

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

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

Full Access
Question # 67

What are the types of background agent reminder services?

A.

Countdown class

B.

Calendar class

C.

Alarm clock class

D.

Schedule

Full Access
Question # 68

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?

A.

file system

B.

Memory management

C.

Peripheral management

D.

Thread management

Full Access
Question # 69

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

A.

True

B.

False

Full Access
Question # 70

An engineer wrote the following code, which items are correct in the description of the following code?

@Entity(tableName="user",ignoredColumns={"ignoredColumn1","ignoredColumn2"},indices ={@Index(value ={"firstName","lastName"),name="name_index",unique =true)})

A.

"name_index" is the composite 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 is named "user".

Full Access
Question # 71

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

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

Full Access
Question # 72

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

A.

The release profile file in the package does not match the application of the currently uploaded package

B.

The release certificate in the software package does not match the release certificate in the release profile file

C.

Package Unsigned Indicates Illegal Package

D.

The certificate used in the package has expired, and the expired certificate has expired

Full Access
Question # 73

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

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

Full Access
Question # 74

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

A.

Preview is not supported for files currently open in the editor

B.

SDK has not been updated to the latest version

C.

The previewer resource was not downloaded

D.

Projectis not synchronized successfully

Full Access
Question # 75

What is correct about Web Component Description A?

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.

Full Access
Question # 76

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

A.

SCF

B.

Cloud Database

C.

Cloud storage

D.

Cloud hosting

Full Access
Question # 77

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.

A.

True

B.

False

Full Access
Question # 78

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

A.

text

B.

figures

C.

Image

D.

video

Full Access
Question # 79

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?

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

Full Access
Question # 80

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

01-2016:08:36.908

23597/com.example.myapplication W

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

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

A.

Content defined in HiLogLabel

B.

Errnovalue

C.

Reachable URL value

D.

The log level is WARN

Full Access
Question # 81

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

A.

fontColor

B.

fontSize

C.

fontStyle

D.

fontWeight

E.

fontFamily

Full Access
Question # 82

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

A.

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

B.

Account is not registered

C.

uses the Chrome browser

D.

The HUAWEI ID is not verified

Full Access
Question # 83

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

A.

True

B.

False

Full Access
Question # 84

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

A.

True

B.

False

Full Access
Question # 85

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

A.

AlertDialog

B.

@CustomDialog

C.

TextPickerDialog

D.

TimePickerDialog

Full Access
Question # 86

In the same - Page, which of the following methods can be used to deal with the navigation between different pages?

A.

startAbilityForResult ()

B.

presentForResult ()

C.

present()

D.

startAbility()

Full Access
Question # 87

If a HarmonyOS application developer writes the following code, what options are correct for the following code description?

H14-231_V1.0 question answer

A.

The device receives a notification when A Feature Ability starts

B.

Received a notification titled "Text 1"

C.

The content of the notification received is "text 2"

D.

TheImport statement is in the wrong position and should be inside the export default parentheses

Full Access
Question # 88

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

A.

Distributed Task Scheduling

B.

Forwarding task management services

C.

Distributed security authentication

D.

Distributed soft bus

Full Access
Question # 89

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

A.

onCompleteContinuation

B.

onRemoteTerminated

C.

onSaveData

D.

onRestoreData

Full Access
Question # 90

Ability and InternalAbility are two different ways to call PA (ParticleAbility) by FA (FeatureAbility).

A.

Ability has an independent life cycle

B.

Theclass inherited byB Ability is ohos.aafwk.ability.Ability

C.

Ability does not need to be registered with the FA

D.

internalAbility can be called by other FAs

Full Access
Question # 91

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

A.

Swipe up icon, information directly

B.

Multiple sizes, choose at will

C.

Add desktops and combine them freely

D.

None of the above is true

Full Access
Question # 92

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.

A.

Front-end frame layer

B.

Engine Layer

C.

Application Layer

D.

Adaptation layer

Full Access
Question # 93

In order to complete the release of the application, an engineer needs to apply for a digital certificate, which of the following options is correct about the description of the digital certificate?

A.

is in the format of .csr

B.

contains the public key in the key pair

C.

Digital certificates are used to ensure the integrity of the application

D.

is issued by AppGallery Connect

Full Access
Question # 94

The developer is developing a ticket booking application, and uses the slide selector Picker to select the starting point of the ticket and writes the following code.

ohos:id="$+id:test_picker"

ohos:selected_text_color="#FFFFFF"

ohos:value="55"

ohos:max_value="10"

ohos:selector_item_num="10"

ohos:bottom_line_element="#FFFFFF"

ohos:selected_text_size="16fp"/>

A.

Set the font size of the selected Chinese version to 16fp

B.

Choose the color of the Chinese text as white

C.

The current value is 10

D.

The maximum value is 10

Full Access
Question # 95

A HarmonyOS application developer displays three flowers in the form of a list, and the interaction logic code of the page is as follows.

H14-231_V1.0 question answer

A.

The data for the A listcomes from the textList array, so the list will display three rows

B.

src indicates the path of the image, and value indicates the name of the image

C.

The three images are placed in the images subdirectory in the common directory of the same level as the file on the project page

D.

The developer defines the contents of the textList array, which contains three elements

Full Access
Question # 96

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

A.

IDE plug-in

B.

Project Template

C.

Command-line tool

D.

Visualization Tools

Full Access
Question # 97

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

A.

Distributed Device Virtualization

B.

Distributed task scheduling

C.

Distributed file services

D.

Distributed soft bus

Full Access
Question # 98

The default size of shared memory in HarmonyOSis ?

A.

8M

B.

2M

C.

4M

D.

1M

Full Access
Question # 99

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?

A.

Distributed file services

B.

Virtualization of distributed devices

C.

Cloth data services

D.

Distributed soft bus

Full Access
Question # 100

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

A.

p12

B.

.csr

C.

p7b

D.

.cer

Full Access
Question # 101

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

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 102

When a user uses the device camera to flip a blurry text file, he expects the camera app to provide a plug-in to improve the recognition of the text. Which of the following HarmonyOS service features is best suited to meet the needs of this user?

A.

Keyword extraction

B.

Document detection and correction

C.

General character recognition

D.

Image text is super-resolved

Full Access
Question # 103

What is the API for lottie to subscribe to events?

A.

lottie.setSpeed()

B.

lottie.setDirection()

C.

animationltem.addEventListener()

D.

animationltem.removeEventListener()

Full Access
Question # 104

Regarding Hongmeng's atomic service, the following statement is correct

A.

Atomic service is displayed as a card in the Services Hub that can be added to thedesktop

B.

When an atomic service is managed and distributed by the Marketplace, its size cannot exceed 10 MB

C.

Atomic service is an installation-free application with an independent entrance

D.

Atomic services correspond to one HAP package and are used to complete one specific convenience service

Full Access
Question # 105

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?

A.

onStartContinuation()

B.

onCompleteContinuation()

C.

onRestoreData()

D.

onSaveData()

Full Access
Question # 106

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

A.

Data search service

B.

Local application data management

C.

Data storage management

D.

Distributed data services

Full Access
Question # 107

When a developer develops a HarmonyOS application and uses an intent pass object, which of the following descriptions of intent are correct?

A.

does not specify the BundleName and Ability Name to implement the jump, and the application is started according to other attributes in the operation

B.

Specify the BundleName and AbilityName to implement the jump, and start the application directly according to the full name of the Ability

C.

deals with the work of an application as a whole

D.

is a long-lifecycle, D-program with no user interface that keeps the app running in the background and doesn't disappear by switching pages

Full Access
Question # 108

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?

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

Full Access
Question # 109

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

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 110

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

H14-231_V1.0 question answer

H14-231_V1.0 question answer

A)H14-231_V1.0 question answer

B)H14-231_V1.0 question answer

C)H14-231_V1.0 question answer

D)H14-231_V1.0 question answer

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 111

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

A.

Location Services subsystem

B.

Safety subsystem

C.

Media Subsystem

D.

AI subsystem

Full Access
Question # 112

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

A.

Service Ability

B.

Data Ability

C.

Page Ability

D.

Ability Slice

Full Access
Question # 113

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

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

Full Access
Question # 114

The streaming capability of HarmonyOS breaks the boundaries of devices and enables multi-device linkage, enabling users to separable, merge, and stream, enabling distributed services such as cross-device email editing, multi-device collaborative fitness, and multi-screen games. Which of the following options is one of the advantages of the HarmonyOS forwarding architecture?

A.

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

B.

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

C.

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

D.

Support multiple applications to be forwarded at the same time

Full Access
Question # 115

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

A.

@Component

B.

@Entry

C.

@Builder

D.

@Preview

Full Access
Question # 116

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

A.

@State and @Link

B.

@Provide and @Consume

C.

@Observed and @ObjectLink

D.

@State and @Prop

Full Access
Question # 117

What are the following task distribution methods for developers?

A.

Synchronous distribution

B.

Asynchronous distribution

C.

Asynchronous delayed distribution

D.

Distributed in groups

Full Access
Question # 118

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

A.

Remote start

B.

Remote call

C.

Remote connection

D.

Migration

Full Access
Question # 119

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

A.

package

B.

name

C.

bundleName

D.

page

Full Access
Question # 120

Which of the following accounts does the authentication service support?

A.

WeChat

B.

QQ

C.

HUAWEI ID

D.

Alipay

Full Access
Question # 121

Which of the following sorting types does the trusted list of devices found by HarmonyOS Device Manager contain?

A.

Historically first used

B.

Intelligent Recommendation Mode

C.

History recently used

D.

History is the most used

Full Access
Question # 122

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?

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

Full Access
Question # 123

Where is the data of the preference placed after persistence?

A.

In memory

B.

database table

C.

file

D.

Cloud

Full Access
Question # 124

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?

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

Full Access
Question # 125

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?

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

Full Access
Question # 126

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?

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

Full Access
Question # 127

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?

A.

reqPermissions

B.

requestPermissions

C.

defPermissions

D.

canRequestPermissions

Full Access
Question # 128

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

A.

Picker

B.

RadioButton

C.

Checkbox

D.

Switch

Full Access
Question # 129

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?

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.

Full Access
Question # 130

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

A.

onForeground()

B.

onStop()

C.

onInactive()

D.

onBackground()

Full Access
Question # 131

Which of the following component hierarchies is wrong?

A.

list>listltem>Column

B.

Column>List>Listltem

C.

Grid>Row>Gridltem

D.

Grid>Gridltem

Full Access
Question # 132

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?

A.

Checkbox

B.

RadioButton

C.

Picker

D.

RadioContainer

Full Access
Question # 133

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?

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

Full Access
Question # 134

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

A.

HUATEI DevEco Device Tool

B.

HiBurn

C.

DevEco Studio

D.

Visual Studio Code

Full Access
Question # 135

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

A.

Component Tree

B.

Code Editor

C.

UI interface

D.

Terminal

Full Access
Question # 136

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

A.

True

B.

False

Full Access
Question # 137

What are the boot modes of UIAbility?

A.

multiton

B.

singleton

C.

specified

D.

standard

Full Access
Question # 138

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

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 139

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

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 140

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

A.

True

B.

False

Full Access
Question # 141

When an engineer compiles and builds a HarmonyOS Ability Package (HAP) with debugging signature information in DevEco Studio, he or she needs to apply for a debugging certificate and profile file in advance.

A.

SignAlg

B.

Certpath File

C.

Profile File

D.

Store File

Full Access
Question # 142

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

A.

GPS

B.

Beidou

C.

WLAN

D.

Base Station

E.

Bluetooth

Full Access
Question # 143

What features can developers use to implement collaborative identity authentication through HarmonyOS?

A.

Secure boot

B.

Zero trust model

C.

Collaborative Mutual Aid Certification

D.

Multi-factor fusion authentication

Full Access
Question # 144

What attributes are supported by attribute animations?

A.

width

B.

rotate

C.

opacity

D.

scale

Full Access
Question # 145

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

A.

Click Attach Debugger to Process

B.

Click Debug

C.

Use the shortcut key Shift+F9

D.

Use the shortcut key Shift+F10

Full Access
Question # 146

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

A.

True

B.

False

Full Access
Question # 147

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

A.

True

B.

False

Full Access
Question # 148

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

A.

True

B.

False

Full Access
Question # 149

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.

A.

True

B.

False

Full Access
Question # 150

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.

A.

True

B.

False

Full Access
Question # 151

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.

A.

True

B.

False

Full Access
Question # 152

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.

A.

True

B.

False

Full Access
Question # 153

In DevEco Studio, engineers can log in to the emulator after passing the real-name authentication of their HUAWEI ID.

A.

True

B.

False

Full Access
Question # 154

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

A.

True

B.

False

Full Access
Question # 155

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

A.

True

B.

False

Full Access
Question # 156

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

A.

True

B.

False

Full Access
Question # 157

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

A.

privileged

B.

signature

C.

restricted

D.

deivced

Full Access
Question # 158

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

A.

Only clipping is supported

B.

can be copied and pasted into app B in app A

C.

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

D.

Only replication is supported

Full Access
Question # 159

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

A.

Preparation for circulation

B.

Circulation

C.

End of circulation

D.

The circulation is complete

Full Access
Question # 160

When an engineer needs to add the function of recording video when developing an application, which of the following interfaces should be called?

A.

Recorder

B.

Coder

C.

Extractor

D.

Player

Full Access
Question # 161

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?

A.

Checkbox

B.

Switch

C.

DatePicker

D.

TimePicker

Full Access
Question # 162

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?

A.

log level

B.

The business area of the log

C.

Log ID

D.

Log type

Full Access
Question # 163

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

A.

Remote connection

B.

Global query

C.

Remote start

D.

Remote migration

Full Access
Question # 164

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

A.

ohos:width="match_content"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="true"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

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

B.

ohos:width="match_parent"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="true"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

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

C.

ohos:width="match_parent"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="false"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

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

D.

ohos:width="match_content"

ohos:text="HarmonyOS:Hello world!"

ohos:text_color="$color: white"

ohos:text_size="100"

ohos:multiple_lines="false"

ohos:top_margin="15"

ohos:left_margin="15"

ohos:right_margin="15"

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

Full Access
Question # 165

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

A.

cer

B.

csr

C.

p12

D.

p7b

Full Access
Question # 166

When a developer was developing a ticket booking application, he used the sliding selector TimPicker in the time selection of air tickets, according to the requirements of the airline, the time does not need to display the second information, which of the following can meet the needs?

A.

timePicker.enableHour(false);

B.

timePicker.showMinute(false);

C.

timePicker.enableMinute(false);

D.

timePicker.showSecond(false);

Full Access
Question # 167

The engineer fails to access the network through the get request, and the prompt 'Attempt to invoke virtual method' is displayed, which of the following permissions should be configured in config.json?

A.

harmonyos. permission. INTERNET

B.

harmonyos. permission.ANSWER:

C.

harmonyos. permission. REQUEST

D.

harmonyos. permission. ACCESS_NETTORKSTATE

Full Access
Question # 168

If a UI is no longer visible to the user, but you don't want to destroy it, which method will the system call to release the corresponding resources?

A.

onForeground()

B.

onInactive( )

C.

onPause()

D.

onBackground( )

Full Access
Question # 169

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

A.

GlobalTaskDispatcher

B.

SpecTaskDispatcher

C.

SerialTaskDispatcher

D.

ParallelTaskDispatcher

Full Access
Question # 170

Which of the following modules does a developer need to call to check whether the HarmonyOS cellular data service is enabled?

A.

@ohos.telephony.sms

B.

@ohos.telephony.data

C.

@ohos.telephony.sim

D.

@ohos.telephony.call

Full Access
Question # 171

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

A.

“type: “service

B.

“type: “page

C.

“type: “ability

D.

“type: “data

Full Access
Question # 172

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

A.

device is virtual

B.

Decision-making centre

C.

Device management

D.

Data Processing

Full Access
Question # 173

In order to ensure better responsiveness of the application, developers need to use the task distributor to design the priority of the task.

A.

DEFAULT

B.

MIDDLE

C.

HIGH

D.

LOW

Full Access
Question # 174

In order to test the distributed file service functions of application A and application B, the developer installs application A and application B on both device 1 and device 2. During the test, application A on device 1 creates a distributed file X, and application B on device 2 creates a distributed file Y. Which of the following descriptions of this scenario is wrong?

A.

If Device 1 and Device 2 are logged in to different HarmonyoS accounts, distributed file sharing cannot be implemented

B.

If device 1 runs out of power and causes the device to go offline, distributed file X cannot be accessed

C.

With distributed file services, application A on device 1 is able to read and write file Y on device 2

D.

ApplicationA and Application B need to apply for ohos.permission.DISTRIBUTED_DATASYNC permissions to use the full functionality of the distributed file service

Full Access
Question # 175

In distributed task scheduling, if a developer needs to coordinate access from multiple devices, what field in config.json does a developer need to apply for permission?

A.

deviceld

B.

reqPermissions

C.

Intent

D.

name

Full Access
Question # 176

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?

A.

connectPageAbility(intent,connection)

B.

connectAbility(intent, connection)

C.

onConnect

D.

connectServiceAbility(intent, connection)

Full Access
Question # 177

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.

A.

bility

B.

PageAbility

C.

ServiceAbility

D.

ServiceAbility

Full Access
Question # 178

When a developer is developing a HarmonyOSapplication, if he needs to annotate information for a certain resource file of different types of elements in the Element directory to facilitate the understanding and use of the resource, which of the following methods can be added (XXX represents the comment text)?

A.

"comment": "xxX"

B.

#XXX

C.

/+××X+/ or /XXX

D.

xXxX

Full Access
Question # 179

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

A.

Ability

B.

KAL (Kernel Abstract Layer)

C.

UI

D.

HDF (Hardware Driver Foundation)

Full Access
Question # 180

When a developer uses the Text component for development, due to the long length of the input string, the content in the middle of the text needs to be truncated with ellipses. Which of the following codes can be used to achieve the above requirements?

A.

ohos:truncation_mode=ellipsis_at_start

B.

ohos: truncation_mode=auto_scrolling

C.

ohos:truncation_mode=ellipsis_at_middle

D.

ohos:truncation_mode=ellipsis_at_end

Full Access
Question # 181

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

Vardevicelnto=dmInstance.getLocaIDevicelnfoSync () :

A.

Obtain the local device information synchronously

B.

Asynchronously obtain the list of trusted devices

C.

Obtain the list of trusted devices synchronously

D.

Asynchronously obtain local device information

Full Access
Question # 182

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

A.

Disconnect remote FA (Feature Ability).

B.

Disabling Remote PA (Particle Ability)

C.

Connect to remote PA (Particle Ability)

D.

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

Full Access
Question # 183

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

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

Full Access
Question # 184

When developing a HarmonyOSapplication, what methods do I need to call when migrating the FA (Feature Ability) on device A to device B?

A.

continueAbility ()

B.

continueAbilityReversibly ()

C.

startAbilityForResult ()

D.

startAbility ()

Full Access
Question # 185

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

A.

Run the program

B.

Implement the function

C.

Create a project

D.

Design interface

Full Access
Question # 186

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

A.

Converged search interface

B.

Distributed data service interface

C.

Data storage management interface

D.

Relational data services

Full Access
Question # 187

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

A.

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

B.

By default, DevEco Studio does not automatically match the corresponding deviceemulator

C.

The default shortcut to start running is Shift+F10

D.

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

Full Access
Question # 188

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

A.

onStart()?onActive()

B.

onStart()?onActive()?onInactive()

C.

onBackground()?onForeground()?onStop()

D.

onActive()?onInactive()

Full Access
Question # 189

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?

A.

onBackground( )

B.

onInactive( )

C.

onForeground( )

D.

onStop( )

Full Access
Question # 190

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

A.

KAL (Kernel Abstract Layer)

B.

Ability

C.

UI

D.

HDF (Hardware Driver Foundation)

Full Access
Question # 191

The user migrates the video on the mobile phone to the smart screen for playback, and after the mobile phone saves the data, the smart screen calls back which of the following methods does the user recover the data?

A.

onStartContinuation

B.

onRestoreData

C.

onCompleteContinuation

D.

onSaveData

Full Access
Question # 192

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?

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

Full Access
Question # 193

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?

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

Full Access
Question # 194

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?

A.

IAbilityConnection

B.

IAbilityContinuation

C.

AbilityContinuation

D.

AbilityConnection

Full Access
Question # 195

The HarmonyOS video module supports the development of video services and the opening of the ecosystem, allowing developers to easily play, operate, and develop new functions of video media through the open interfaces. Video playback includes playback controls, playback settings, and playback queries, such as start/stop playback, playback speed settings, and whether to loop playback. When developing a video playback feature, which of the following steps is correct?

A.

Create a Player instance?construct a data source object and set the media source?call method prepare(),?call method play(), call method stop(??call method release()

B.

Create a Player instance ? call the prepare() ? play() ?construct the data source object and set the media source?call the stop()?release().

C.

Construct a data source object and set the media source?create a Player instance?call method play(),?call method prepare(),?call method stop(?call method release()

D.

Call the prepare() method?create a Plawer instance?construct a data source object and set the media source?call method?create a Player instance, Play()?call method stop()?call method release()

Full Access
Question # 196

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

A.

Media Subsystem

B.

Safety subsystem

C.

AI subsystem

D.

Location Services Subsystem

Full Access
Question # 197

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

A.

Apply for the release of certificates and profile files?create an AGC project?create a HarmonyOS app?generate a key and certificate request file?compile and build the app?and put it on the app marketplace

B.

Generate a key and certificate request file?create an AGC project?create a HarmonyOS app?apply for a certificate and profile file?compile and build the app,?put it on the Marketplace

C.

Apply for the release of certificates and profile files?compile and build apps?create AGC projects?create HarmonyOSapps?generate keys and certificate request files?and put them on the app marketplace

D.

Generate a key and certificate request file?create an AGC project?create a HarmonyOS app?compile and build an app?apply for a certificate and Profi1e file, and?list it on the Marketplace

Full Access
Question # 198

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

A.

ToastDialog

B.

RoundProgressBar

C.

PageSlider

D.

ProgressBar

Full Access
Question # 199

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?

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

Full Access
Question # 200

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

A.

Weak consistency

B.

Strong consistency

C.

Eventual consistency

D.

Process consistency

Full Access
Question # 201

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

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

Full Access
Question # 202

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

A.

DV subsystem

B.

Proprietary business subsystem of smart screen

C.

Media Subsystem

D.

Safety subsystem

Full Access
Question # 203

TaskDispatcher is the basic interface for Ability to distribute tasks, which hides the implementation details of the thread where the task is located. To ensure that the application is more responsive, we respond to the priority of the design task, which of the following is not the priority of the task?

A.

MIDDLE

B.

HIGH

C.

DEFAULT

D.

LOW

Full Access
Question # 204

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

A.

Logical code, resource files, and application configuration files

B.

Logical code and application configuration file

C.

Logical code

D.

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

Full Access
Question # 205

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

A.

Engine Layer

B.

Platform adaptation layer

C.

Front-end frame layer

D.

Application layer

Full Access
Question # 206

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?

A.

onStart ()?onResume()—onInActive()?onBackground()

B.

onStart()?onActive()?onInActive()?onStop()

C.

onStart()—onActive()?onInActive()

D.

onStart()?onActive()?onlnActive()?onBackground()

Full Access
Question # 207

If a developer wants to develop a page with a tab function, the developer can use theTabList component provided by HarmomyOS. If you want to set the horizontal center alignment of text, which of the following codes is correct?

A.

ohos:text_alignment=start

B.

ohos:text_alignment=bottom

C.

ohos:text_alignment=vertical_center

D.

ohos:text_alignment=horizontal_center

Full Access
Question # 208

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?

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)

Full Access