Black Friday Biggest Discount Flat 70% Offer - Ends in 0d 00h 00m 00s - Coupon code: 70diswrap

Huawei H14-231_V1.0 Dumps

Page: 1 / 70
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 1

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

Options:

A.

Intent()

B.

SetMainRoute()

C.

AddActionRoute()

D.

onStart()

Question 2

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 3

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

Options:

A.

Trusted Execution Environment

B.

Safe Boot

C.

Device certificate authentication

D.

Collaborative Mutual Aid Certification

Question 4

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 5

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 6

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 7

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

Options:

A.

Remote start

B.

Remote call

C.

Remote connection

D.

Migration

Question 8

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

Options:

A.

Develop multiple deployments at one time

B.

can be divided or combined

C.

Unified ecology

D.

Free circulation

Question 9

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

Options:

A.

Distributed Device Virtualization

B.

Distributed task scheduling

C.

Distributed file services

D.

Distributed soft bus

Question 10

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

Options:

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

Question 11

Which of the following databases uses SQLite as the persistent storage engine in HarmonyOS data management?

Options:

A.

Relational database

B.

Object-relational mapping database

C.

Lightweight preference database

D.

Distributed data services

Question 12

Which of the following items are correctly described about the HarmonyOS distributed database?

Options:

A.

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

B.

shields different physical transmission channels

C.

Depends on the cloud

D.

The synchronization logic is completely transparent

Question 13

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 14

A developer is developing a flight booking application, and uses the sliding selector Picker to select the location of the ticket and writes the following code.

Options:

A.

The width of the component is 300vp

B.

Normal font size is 18fp

C.

Theheight of the C component matches the text size

D.

The selected font size is 16fp

Question 15

When a developer sets a background for a Text component, which of the following methods are correct?

Options:

A.

ohos:basement="$graphic:graphic_src"

B.

ohos:background_element="$graphic:background

C.

ohos:background_element="#000000"

D.

ohos:background_element="$color:black"

Question 16

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

Options:

A.

AceAbility

B.

PageAbility

C.

ServiceAbility

D.

MainAbility

Question 17

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

Options:

A.

Memory management

B.

File Management

C.

Network management

D.

Peripheral management

E.

Process Management

F.

Thread Management

Question 18

In which of the following files can you set the path configuration information of the page?

Options:

A.

main_pages.json

B.

module.json5

C.

app.json5

D.

package.json

Question 19

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

Options:

A.

2GB

B.

10M

C.

1GB

D.

Unlimited

Question 20

Where is the data of the preference placed after persistence?

Options:

A.

In memory

B.

database table

C.

file

D.

Cloud

Question 21

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

Options:

A.

is issued by AppGalleryConnect

B.

contains the public key in the key pair

C.

Digital certificates are used to ensure the integrity of the application

D.

format is .csr

Question 22

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 23

When a developer develops a news software, he will use the marquee of the Text component to realize the automatic scrolling of information, and before setting the marquee effect, he needs to set some preconditions for the Text component.

Options:

A.

ohos:multiple_lines=false

B.

ohos:max_text_line=1

C.

ohos:multiple_lines=true

D.

ohos:max_text_line=2

Question 24

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

as

Options:

A.

Text component is used to mark the current page

B.

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

C.

TheText component is used to jump to and from two pages

D.

TheButton component is used to jump to and from two pages

Question 25

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 26

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 27

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 28

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

Options:

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

Question 29

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 30

A developer uses a task distributor to dispatch tasks 1, 2, and 3. The developer added Task 1 and Task 2 to a task group and used syncDispatchBarrier to set up a task execution barrier on that task group. During execution, the discoverer waits for both task 1 and task 2 to be executed before executing task 3. Based on the above scenario analysis, which of the following task distributors may be used by the developer?

Options:

A.

SpecTaskDispatcher

B.

ParallelTaskDispatcher

C.

GlobalTaskDispatcher

D.

Serial TaskDispatcher

Question 31

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 32

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 33

The Web-like development paradigm provides a series of lifecycle callback methods for custom components, which are the following lifecycle callback methods for developers to manage the internal logic of custom components?

Options:

A.

OnAttached

B.

Onlnit

C.

OnPageShow

D.

OnDestroy

Question 34

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 35

How to set reverse playback in attribute animation?

Options:

A.

PlayMode.Normal B

B.

PlayMode.Alternate

C.

PlayMode.AlternateReverse

D.

PlayMode.Reverse

Question 36

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 37

DevEco studio provides remote simulator developers to run and debug HMOS applications, which of the following limitations will the remote simulator have?

Options:

A.

Each session lasts for1 hour

B.

Real-name login is required

C.

Automatically releases resources when it expires

D.

Automatic remote simulation by default

Question 38

To test the HarmonyOS Bluetooth Low Energy function, a developer uses a central device to call the startScan() interface and scans for a peripheral device. In order for the central device to complete the data exchange with the peripherals, the developer implemented the following development steps.

Options:

A.

GATT connection is successful, and the peripheral device can call the write method to write the eigenvalue data to the central device

B.

Afterthe central device obtains the peripherals,it calls connect (boolean isAUtoConnect, BlePeripheraCallback callback) to establish a GATT connection with the peripherals

C.

After the C GATT connection is successful, the central device can call the discoverServices() interface to obtain various data supported by the peripheral equipment

D.

After the GATT connection is started, the developer needs to determine whether the GATT connection is successful based on the serviceDiscoveredEvent(int status) callback result

Question 39

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 40

When a developer calls Particle Ability (PA) with FA (Feature Ability), callAbility returns the error "Internal ability not register.", what key steps does the developer need to check?

Options:

A.

checks that the Ability filled in on the JS (JavaScript) side is 1

B.

In the AccAbility inheritance class, whether the register method is executed for the AcelnternalAbility inheritance class

C.

Whether the bundLeName and abilityName filled in on the JS (JavaScript) side are the same as the names filled in the AcelnternalAbility inheritance class constructor

D.

Check that the Internal Ability entered on the JS (JavaScript) side is 0

Question 41

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

Options:

A.

FooAbilitySlice changes from the INACTIVE state to the ACTIVE state

B.

BarAbilitySlice changes from the INITIAL state to the INACTIVE state first

C.

FooAbilitySlice changes from ACTIVE to INACTIVE

D.

FooAbilitySlice changes from INACTIVE to BACKGROUIND

Question 42

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

Options:

A.

build function

B.

build function

C.

page entry

D.

page

Question 43

Which field must the meta service package name end in?

Options:

A.

mservice

B.

Any field

C.

hap

D.

har

Question 44

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

Options:

A.

AlertDialog

B.

@CustomDialog

C.

TextPickerDialog

D.

TimePickerDialog

Question 45

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 46

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

Options:

A.

onForeground()

B.

onStop()

C.

onInactive()

D.

onBackground()

Question 47

When a developer designs a JavaScript login page, he needs to use Internal Ability to call Data Abiliity to verify the username and password, which of the following can be modified to complete the function?

const ABILITY_TYPE_EXTERNAL=0;

var action=0;

action.bundleName="com.huawei.loginservice"; action.abilityName="com.huawei.loginservice.LoginDataAbility";

action.messageCode=ACTION_MESSAGE_CODE_PLUS;

action.data=actionData;

action.abilityType=ABILITY_TYPE_EXTERNAL; action.syncOption=ACTION_SYNC;

var result=await

FeatureAbility.callAbility(action);

Options:

A.

action.ability Type= ABILITY_TYPE_INTERNAL;

B.

action.abiltyType =ABILITY_TYPE;

C.

const ABILITY_TYPE_INTERNAL=1;

D.

const ABILITY_TYPE_EXTERNAL= 2;

Question 48

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 49

Atomic service is a future-oriented service delivery method provided by HarmonyOS, which of the following statements about atomic service is correct?

Options:

A.

Atomic service consists of one or more HAP packets, and one HAP packet corresponds to one FA or one PA

B.

Atomic services are managed and distributed by AppGallery

C.

All HAP packages (including EntryHAP and FeatureHAP) of the Atomic Service are non-installation-free

D.

Atomic services do not have desktop icons, but they can be manually added to desktops in the form of service cards

E.

Comparedwith the traditional way of installing applications, the E atomic service is lighter, and provides richer entry points and more accurate distribution

Question 50

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

Options:

A.

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

B.

requests migration from the Page on Device A

C.

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

D.

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

Question 51

Which of the following properties about Web components is incorrect?

Options:

A.

Set whether to enable the access of the Chinese system of the application, which is enabled by default. Access to files in the rawfile path in $rawfile(filepath/filename) is not affected by this attribute.

B.

imageAccess specifies whether to allow automatic loading of image resources, which is allowed by default.

C.

javaScriptAccess is set to whether to allow JavaScript script execution, which is not allowed by default.

D.

zoomAccess sets whether to support gesture zoom, which is allowed by default.

Question 52

There are two Text components in the Row component, if the justifyContent alignment method is used, which of the following properties can be aligned to the left and right ends

Options:

A.

FlexAlign.Start

B.

FlexAlign.SpaceEvenly

C.

FlexAlign.End

D.

FlexAlign.SpaceBetween

Question 53

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 54

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

Options:

A.

onStop()

B.

onlnactive()

C.

onForeground()

D.

onBackground()

Question 55

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?

Options:

A.

harmonyos. permission. INTERNET

B.

harmonyos. permission.ANSWER:

C.

harmonyos. permission. REQUEST

D.

harmonyos. permission. ACCESS_NETTORKSTATE

Question 56

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 57

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

Options:

A.

Multi-mode input subsystem

B.

Media Subsystem

C.

Safety subsystem

D.

Graphics subsystem

Question 58

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

Options:

A.

TaskDispatcher

B.

Group

C.

lAbilityMlanager

D.

BackgroundTaskManager

Question 59

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 60

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

Options:

A.

transform: rotate×(200px);

B.

transform: rotateY(200px);

C.

transform: translatex(200px);

D.

transform: scaleX(200px);

Question 61

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

Options:

A.

ohos:thorizontal_center=true"

B.

ohos:center_inparent="true"

C.

ohos:layout_alignment=center

D.

ohos:text_alignment=center

Question 62

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

Options:

A.

AbilitySlice can exist on its own

B.

Bpage can contain multiple AbilitySlices

C.

There is at least one AbilitySlice in a page

D.

Page can contain only one AbilitySlice

Question 63

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

Options:

A.

serialTaskDispatcher

B.

SpeeTaskDispatcher

C.

ParallelTaskDispatcher

D.

GlobalTaskDispatcher

Question 64

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

Options:

A.

privileged

B.

signature

C.

restricted

D.

deivced

Question 65

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

Options:

A.

Only clipping is supported

B.

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

C.

Only replication is supported

D.

can be copied and pasted into app B in app A

Question 66

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 67

A developer uses the threading function of HarmonyoS and writes the following code, which is the correct order of the execution result of the code?

TaskDispatcher globalTaskDispatcher =

getGlobalTaskDispatcher(TaskPriority.DEFAULT);

globalTaskDispatcher.syncDispatch(new

Runnable(){

@Override

public void run(){

HiLog.info (LABEL_LOG,"sync task1 run");//1

HiLog.info (LABEL_LOG, "after sync task1");//2

globalTaskDispatcher.syncDispatch(new

Runnable(){

@0verride

pub1ic void run(){

HiLog.info(LABEL_LOG,"sync task2 run"); 3

}

});

HiLog.info (LABEL_LOG, "after sync task2");//4

Options:

A.

2→1→3→4

B.

1→2→3→4

C.

2→1→4→3

D.

4→1→2→3

Question 68

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 69

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 70

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

Options:

A.

player plays music from the record

B.

Convert the data to audio

C.

Notebook plays video files from the hard drive

D.

Save the photo in digital form

Question 71

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

Options:

A.

@ohos.telephony.sms

B.

@ohos.telephony.data

C.

@ohos.telephony.sim

D.

@ohos.telephony.call

Question 72

A developer needs to use the current data network for socket data transmission, and the development process involves the following steps:

1。Send data with sockets.

2。Bind the network with NetHandle.bindSocket().

3。Call NetManager.getDefaultNet() to get the default data network.

4。Call NetManager.getInstance(Context9) to get the instance object of network management.

When the developer combed through the development steps, the above steps were sorted according to the order in which the features were completed in the code. Which of the following is the correct order?

Options:

A.

4→1→2→3

B.

4→2→1→3

C.

4→3→2→1

D.

2→1→4→3

Question 73

Before developing the NFC function, a HarmonyOS developer must first confirm whether the device supports the NFC function and whether the NFC is turned on.

Options:

A.

NFC basic query

B.

Access to the security element

C.

card emulation

D.

NFC message notification

Question 74

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

Options:

A.

Picker

B.

Checkbox

C.

RadioButton

D.

Switch

Question 75

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 76

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

Options:

A.

Text image is super-resolved

B.

Image super-resolution

C.

Document detection correction

D.

General character recognition

Question 77

When the user clicks on a song from the music list page and jumps to the playback interface of the song, the principle is that the page route routes to the destination page according to which of the following?

Options:

A.

router.push

B.

router.back

C.

uri

D.

intent

Question 78

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

Options:

A.

Recorder

B.

Coder

C.

Extractor

D.

Player

Question 79

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?

Options:

A.

Preparation for circulation

B.

Circulation

C.

End of circulation

D.

The circulation is complete

Question 80

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 81

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

Options:

A.

onCompleteContinuation

B.

onRestoreData

C.

onRemoteTerminated

D.

onSaveData

Question 82

In the JavaScript UI framework, which layer is used to provide animation parsing, DOM (Document Object Model) tree construction, layout calculation, rendering command construction and drawing, event management, etc.?

Options:

A.

Engine Layer

B.

Platform adaptation layer

C.

Front-end frame layer

D.

Application layer

Question 83

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

Options:

A.

ToastDialog

B.

RoundProgressBar

C.

PageSlider

D.

ProgressBar

Question 84

When a developer needs to create a Service Ability when developing a background service, which of the following processes is NOT the step to create the Ability?

Options:

A.

onStart

B.

onCommand

C.

onStop

D.

onActive

Question 85

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 86

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 87

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?

Options:

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

Question 88

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

Options:

A.

INITIAL

B.

INACTIVE

C.

ACTIVE

D.

BACKGROUND

Question 89

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 90

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

Options:

A.

GlobalTaskDispatcher

B.

SpecTaskDispatcher

C.

SerialTaskDispatcher

D.

ParallelTaskDispatcher

Question 91

Which of the following security mechanisms can ensure that application data is not maliciously used?

Options:

A.

Permission management

B.

App permissions

C.

port security

D.

Application security

Question 92

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

Options:

A.

Logical code, resource files, and application configuration files

B.

Logical code and application configuration file

C.

Logical code

D.

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

Question 93

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?

Options:

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

Question 94

Browse articles in the reading app on your phone, migrate to the tablet to continue viewing, and exit the reading app on your phone. Which HarmonyOS streaming solution is used in this scenario?

Options:

A.

Multi-terminal migration

B.

Multi-terminal collaboration

C.

Cross-terminal collaboration

D.

Cross-terminal migration

Question 95

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

Options:

A.

module: {

reqPermissions: [{

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

availableScope: [signatures]

}

}

B.

module: {

defPermissions: [{

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

grantMode:user grant,

availableScope: [signatures]

}

}

module: {

defPermissions: [{

C.

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

grantMode:system_grant,

availableScope: [signatures]

}

}

module: {

defPermissions: [{

D.

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

grantMode:system_grant,

availableScope: [signatures]

}

}

Question 96

After a developer sets :ohos:layout_ alignment="horizontal _center" in the Text component, he writes: text.setTranslationX(600) in the code, where is the Text displayed in the parent layout?

Options:

A.

level is centered

B.

is horizontally centered and shifted to the right by 600

C.

The parent layout is moved 600 to the top left and right

D.

is horizontally centered and shifted 600 to the left

Question 97

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 98

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 99

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 100

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

Options:

A.

Disconnect remote FA (Feature Ability).

B.

Disabling Remote PA (Particle Ability)

C.

Connect to remote PA (Particle Ability)

D.

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

Question 101

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

Options:

A.

Data and Computing Center

B.

Decision-making centre

C.

Task Bus

D.

Interconnection Management Center

Question 102

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 103

When a developer calls HarmonyOS Abi1ity Resources (HAR) in an application module, he or she needs to merge the config.json file of HAP and the config.json file of HAR into a single config.json file when compiling and building a HarmonyS Ability Package (HAP). During the merging process, under what circumstances will the values of tags conflict?

Options:

A.

HAP has no label value; The HAR has a tag value, and the value can be B

B.

HAP has a label value, and the value is A; HAR has no label value

C.

NeitherHAP nor HAR had labeled values

D.

HAP has a label value, and the value is A. The HAR has a tag value, and the value can be B

Question 104

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?

Options:

A.

onForeground()

B.

onInactive( )

C.

onPause()

D.

onBackground( )

Question 105

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

Options:

A.

True

B.

False

Question 106

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 107

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 108

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

Options:

A.

True

B.

False

Question 109

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 110

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 111

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

Options:

A.

True

B.

False

Question 112

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

Options:

A.

True

B.

False

Question 113

With the help of HarmonyOS's Al capability, it can detect and recognize the text of image sources such as document remakes and street view reproductions, and can also be integrated into other applications to provide text detection and recognition functions, and provide translation, search and other related services based on therecognition results. This is by taking advantage of the super-resolution of text and images in AI.

Options:

A.

True

B.

False

Question 114

HarmonyOS not only has the system capability of a single device, but also supports deployment on multiple devices with different memory sizes based on the same set of system capabilities

Options:

A.

True

B.

False

Question 115

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

Options:

A.

True

B.

False

Question 116

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

Options:

A.

True

B.

False

Question 117

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

Options:

A.

True

B.

False

Question 118

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 119

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

Options:

A.

True

B.

False

Question 120

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

Options:

A.

True

B.

False

Question 121

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 122

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

Options:

A.

True

B.

False

Question 123

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 124

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

Options:

A.

True

B.

False

Question 125

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

Options:

A.

True

B.

False

Question 126

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 127

If a developer wants to develop a file background download function, there needs to be a Page Ability to provide UI pages, and a ServiceAbility to provide a background file download function. If you want to perform some operations in the Service Ability after connecting to the Service Ability in the Page Ability, you need to implement the onConnect() method in the Service Ability.

Options:

A.

True

B.

False

Question 128

HarmonyOS provides access to external storage devices, such as USB flash drives, SD cards, etc.

Options:

A.

True

B.

False

Question 129

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 130

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

Options:

A.

True

B.

False

Question 131

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

Options:

A.

True

B.

False

Question 132

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 133

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 134

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 135

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 136

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

Options:

A.

True

B.

False

Question 137

The callback mechanism provided by the Ability class can enable the Page instance to switch in the background following the user's operation.

Options:

A.

True

B.

False

Question 138

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 139

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

Options:

A.

True

B.

False

Question 140

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

Options:

A.

True

B.

False

Question 141

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

Options:

A.

True

B.

False

Question 142

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 143

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

Options:

A.

True

B.

False

Question 144

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

Options:

A.

True

B.

False

Question 145

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 146

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

Options:

A.

True

B.

False

Question 147

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 148

When a developer has multiple versions of the object-relational mapping database, and the developer calls the BookStoreUpgrade class to upgrade the database version, the version number of the BookStoreUpgrade class is configured as "2", and the actual version number of the current BookStore.db is "1".

Options:

A.

True

B.

False

Question 149

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 150

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

Options:

A.

True

B.

False

Page: 1 / 70
Total 695 questions