New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Huawei H14-231_V1.0 Dumps Questions Answers

Page: 1 / 52
Total 695 questions

HCIP-HarmonyOS Application Developer V1.0 Questions and Answers

Question 1

The Ark Development Framework of HarmonyOS includes a Web-like development paradigm based on TS extensions and a declarative development paradigm based on JS extensions.

Options:

A.

True

B.

False

Buy Now
Question 2

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

Options:

A.

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

B.

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

C.

Package Unsigned Indicates Illegal Package

D.

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

Question 3

When a user is on a video call,Want to migrate the mobile phone video to the smart screen for playback,When clicking Migrate,Find that the smart screen is already in theoptional list,What are the correct descriptions of the scene?

Options:

A.

It embodies the characteristics of extremely fast transmission of distributed soft bus

B.

requires the mobile phone and the smart screen to be under the same LAN

C.

embodies the self-discovery function of the distributed soft bus

D.

mobile phones and smart screens can make different Huawei accounts

Question 4

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

Options:

A.

Global Concurrent Task Dispenser

B.

Concurrent task distributor

C.

Serial task dispenser

D.

Proprietary task distributor

Question 5

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

Options:

A.

True

B.

False

Question 6

When developing an application, a developer uses the WLAN P2P function to realize point-to-point data transmission between devices. Function 2, Create and remove groups, Function 3, Initiate a connection to the peer device.Which of the above functions is correct in the following descriptions?

Options:

A.

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

B.

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

C.

In order to implement feature 3, connect() needs to be used, and ohos.permission.SET_WIFI_INFO permission needs to be requested

D.

To implement function 1, you need to use the discoverDevices() interface, and you need to request the ohos.permission.SET WIFI INFO permission

Question 7

Which of the following can set the rounded corner effect of the ShapeElement?

Options:

A.

Bin Java code set: int radius =

B.

AttrHelper.vp2px(8)

element.setCornerRadiiArray(new float[]

{radius,radius,radius,radius,radius,radius,radius,radius})

C.

Set in XML:

D.

is set in Java code:

element.setCornerRadius(AttrHelper.vp2px(8))

Question 8

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

Options:

A.

True

B.

False

Question 9

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

Options:

A.

Application Layer

B.

Front-end frame layer

C.

Engine Layer

D.

Platform adaptation layer

Question 10

Which of the following decorators can be used to manage the state of variables in custom components?

Options:

A.

@Component

B.

@Entry

C.

@State

D.

@Link

Question 11

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

Options:

A.

HUATEI DevEco Device Tool

B.

HiBurn

C.

DevEco Studio

D.

Visual Studio Code

Question 12

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

Options:

A.

True

B.

False

Question 13

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

Options:

A.

supports the configuration of the feature set within the component

B.

does not support the association of dependencies between components

C.

Support the on-demand selection of each component

D.

Clipping of functions within the component is not supported

Question 14

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 15

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

Options:

A.

data is the result data of an ordered public event

B.

intent is not allowed to be empty

C.

intent—must be empty

D.

codeis the result code of an ordered public event

Question 16

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

Options:

A.

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

B.

Account is not registered

C.

uses the Chrome browser

D.

The HUAWEI ID is not verified

Question 17

What are the componentization characteristics of custom components?

Options:

A.

Combinable

B.

Reusable

C.

Configure the lifecycle

D.

Data-driven updates

Question 18

What are the parameters of animation in attribute animation?

Options:

A.

playMode

B.

curve

C.

delay

D.

onFinish

Question 19

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

Options:

A.

Top

B.

Bottom

C.

Start

D.

End

E.

Center

Question 20

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

Options:

A.

True

B.

False

Question 21

When a developer is developing a flight booking application, he needs to use the sliding selector DatePicker in the date selection of air tickets, and in order to improve the user experience, he needs to set the color of a single year/month/day item in operation to blue (#0000FF), which of the following items can meet the development needs?

Options:

A.

ohos:selected text color=#0000FF

B.

datePicker.setSelectedTextColor(new Color(Color.getlIntColor( "#0000FF")));

C.

datePicker.setPeratedTextColor(new Color(Color.getIntColor("#000OFF")));

D.

ohos:operated_text_color="0000FF"

Question 22

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

Options:

A.

True

B.

False

Question 23

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

Options:

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

Question 24

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

Options:

A.

DEBUG

B.

INFO

C.

WARN

D.

FATAL

Question 25

What are the types of background agent reminder services?

Options:

A.

Countdown class

B.

Calendar class

C.

Alarm clock class

D.

Schedule

Question 26

What are the boot modes of UIAbility?

Options:

A.

multiton

B.

singleton

C.

specified

D.

standard

Question 27

HarmonyOS provides the Al capability of speech recognition, which can use machine learning technology to analyze the content of text messages of users in SMS or chat applications, and identify the user intent represented by the message content.

Options:

A.

True

B.

False

Question 28

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

Options:

A.

Click Attach Debugger to Process

B.

Click Debug

C.

Use the shortcut key Shift+F9

D.

Use the shortcut key Shift+F10

Question 29

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

Options:

A.

True

B.

False

Question 30

Which of the following subsystems in HarmonyOS belongs to the Enhanced Software Services subsystem?

Options:

A.

Wearable business subsystem

B.

Sign-in service subsystem

C.

Smart large-screen business subsystem

D.

Media subsystem

Question 31

What is the correct description of the http module?

Options:

A.

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

B.

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

C.

Theparameters of thepost request can be specified in extraData.

D.

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

Question 32

What functions does UIAbility's lifecycle include?

Options:

A.

onCreate

B.

onForeground

C.

onBackground

D.

onDestroy

Question 33

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

Options:

A.

TabContent component does not support setting a generic width property, and its width is equal to the barWidth property of the Tabs component.

B.

TheTabContent component does not support setting the general height attribute, and its height is determined by the height of the parent Tabs and the height of the TabBar component.

C.

TabsController is used to control tabs to switch between tabs, and does not support one tabscontroller to control multiple tabs.

D.

ThetabBar property of theTabContent component supports components generated using the @Builder constructor.

Question 34

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 35

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

Options:

A.

True

B.

False

Question 36

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

Options:

A.

SCF

B.

Cloud Database

C.

Cloud storage

D.

Certification services

Question 37

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

Options:

A.

True

B.

False

Question 38

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

Options:

A.

Secure boot

B.

Zero trust model

C.

Collaborative Mutual Aid Certification

D.

Multi-factor fusion authentication

Question 39

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

Options:

A.

Unpublish a public event

B.

Subscribe to public events

C.

Publish a public event

D.

Unsubscribe from public events

Question 40

What attributes are supported by attribute animations?

Options:

A.

width

B.

rotate

C.

opacity

D.

scale

Question 41

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

Options:

A.

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

B.

calls startScan() to start scanning the Bluetooth device

C.

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

Callback, which is used to receive scan results

D.

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

Question 42

There is an application A that occupies a large amount of memory and a background service B on the mobile phone, but there is no binding relationship between the two. What are the following scenarios that may cause Service B to be stopped?

Options:

A.

App A calls onCommand() to stop service B

B.

applies A to call stopAbility() to stop service B

C.

service B calls terminateAbility() by itself

D.

The system is tight on memory and slow to respond

Question 43

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

Options:

A.

True

B.

False

Question 44

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

Options:

A.

GPS

B.

Beidou

C.

WLAN

D.

Base Station

E.

Bluetooth

Question 45

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

Options:

A.

True

B.

False

Question 46

To publish an app, a HarmonyOS developer needs to use a certificate request file (Cerificate Signing Request) to apply for a digital certificate from AppGallery Connect.

Options:

A.

Name of the organization

B.

Common name

C.

Public key

D.

Organizational unit

Question 47

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

Options:

A.

Data storage

B.

Data Usage

C.

Data generation

D.

Data Transfer

Question 48

In order to solve the problem of safety risks when walking or cycling, a travel navigation company uses HarmoryOS to push mobile navigation reminders to its watch.

Options:

A.

Distributed data management

B.

Distributed soft bus

C.

Distributed device virtualization

D.

Distributed task scheduling

Question 49

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 50

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

Options:

A.

Concurrent task distributor is globally unique

B.

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

C.

The global concurrent task distributor is globally unique

D.

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

Question 51

What are the parts of the HarmonyOS cloud development project?

Options:

A.

end development project (Application)

B.

CloudProgram

C.

External Libraries on theside

D.

Public Resource Library (Resource)

Question 52

What are the data management methods provided by HarmonyOS?

Options:

A.

preference

B.

Distributed data services

C.

Relational databases

D.

Distributed data objects

Question 53

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 54

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

Options:

A.

Weak consistency

B.

Strong consistency

C.

Eventual consistency

D.

Process consistency

Question 55

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

Options:

A.

Onlnit

B.

OnAttached

C.

OnLayoutReady

D.

OnDetached

Question 56

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 57

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

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

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 58

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 59

If a developer needs to solve problems such as insufficient image resolution and image compression noise, which of the following AI capabilities can be used by HarmonyOS?

Options:

A.

Document Detection Correction

B.

General Character Recognition

C.

Entity Recognition

D.

Image super-resolution

Question 60

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

Options:

A.

ohos:visibility="invisible"

B.

text.setVisibility(Component.VISIBLE);

C.

ohos:visibility="visible"

D.

ohos:visibility="hide"

Question 61

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

Options:

A.

KAL (Kernel Abstract Layer)

B.

Ability

C.

UI

D.

HDF (Hardware Driver Foundation)

Question 62

A developer is developing a ticket booking application, in the selection of the location of the ticket, you need to use the slide selector Picker, in order to highlight the selected text, the developer sets the rendering effect that the selected text margin is greater thanthe ordinary text margin. Which of the following settings are correct?

Options:

A.

B.

Picker.setSelectNormal TextMarginRatio(5.0f);

C.

D.

Picker.setSelectNormalTextMarginRatio(5.0);

Question 63

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

Options:

A.

Ability does not need to quit

B.

All abilities bound to the Service instance are exited

C.

has 1 Ability to exit

D.

has 2 Ability exits

Question 64

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

Options:

A.

Enable remote FA (Feature Ability).

B.

Connect to a remote PA (Particle Ability).

C.

Start the remote PA (Particle Ability).

D.

Particle Ability (PA)

Question 65

fter a developer sets :ohos:layout_alignment="horizontal_center" in the Text component, he writes: text.setMarginRight (600) in the code, where is the Text displayed in the parent layout?

Options:

A.

is horizontally centered and shifted to the right by 600

B.

The parent layout moves 600 to the top left and right

C.

level is centered

D.

is horizontally centered and shifted 600 to the left

Question 66

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

Options:

A.

“type: “service

B.

“type: “page

C.

“type: “ability

D.

“type: “data

Question 67

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 68

If a developer wants to use the JavaScript UI framework to develop a graffiti application that allows users to draw custom graphics, which of the following components can be used by the developer?

Options:

A.

video

B.

button

C.

canvas

D.

grid-container

Question 69

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 70

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 71

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 72

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 73

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

Options:

A.

HAR(HarmonyOS Ability Resources)

B.

APP Pack (Application Package)

C.

HAP (HarmonyOS Ability Package)

D.

pack.info

Question 74

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

Options:

A.

Use the setMainRoute() method to specify the forwarding device

B.

Implement the IAbilityContribution interface to enable Ability to support migration

C.

Use the continueAbility() method for fetching

D.

Use the onStart() method to rewrite the migration flow

Question 75

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 76

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 77

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 78

How to realize distributed communication betweentwo existing Harmony OS devices?

Options:

A.

Configure the ohos.permission.lNTERNEl permission in the configuration file

B.

Configure ohos.permission.DISTRIBUTED_DATASYNC permission in the configuration file and dynamically request this permission again

C.

Configure ohos.permission.DISTRIBUTED_DATASYNC permissions in the configuration file

D.

Configure the ohos.permission.IlNTERNET permission in the configuration file and dynamically request this permission again

Question 79

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 80

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

Options:

A.

Enable remote FA (Feature Ability).

B.

Connect to a remote PA (Particle Ability).

C.

Start the remote PA (Particle Ability).

D.

Particle Ability (PA) of the Guantuan

Question 81

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

Options:

A.

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

B.

can be copied and pasted into app B in app A

C.

Only replication is supported

D.

Only clipping is supported

Question 82

A developer defines an entity class

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

@Entity(tableName ="student", ignoredColums

=["ignoredColumn1","ignoredColumn2", indices

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

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

pub1ic class User extends OrmObject{

@PrimaryKey(autoGenerate= true)

private Integer userld;

private String firstName;

private String lastName;

private int age;

private doub1e balance;

private int ignoredColumn1;

private int ignoredColumn2;

}

Which of the following descriptions of this code is wrong?

Options:

A.

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

B.

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

C.

The name of the data sheet is "student".

D.

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

Question 83

Thedefault size of shared memory in Harmony OS is ?

Options:

A.

8M

B.

4M

C.

2M

D.

1M

Question 84

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 85

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

Options:

A.

Start an AbilitySlice by navigating

B.

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

C.

Jump to another page via a hyperlink

D.

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

Question 86

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 87

Which of the following is NOT acomponent of the Harmony OS object-relational mapping database?

Options:

A.

Object data manipulation interface

B.

Database

C.

Solid object

D.

Relationship table

Question 88

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

Options:

A.

onForeground()

B.

onInactive()

C.

onActive()

D.

onStart()

Question 89

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

Options:

A.

camera

B.

Make a call

C.

Photo

D.

Microphone

Question 90

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

Options:

A.

RoundProgressBar

B.

PageSlider

C.

ToastDialog

D.

ProgressBar

Question 91

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

Options:

A.

cer

B.

csr

C.

p12

D.

p7b

Question 92

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 93

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 94

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 95

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

Options:

A.

mobile phone

B.

Tablet

C.

Watch

D.

Smart screen

Question 96

Which of the following interfaces can repeatedly call a function with a fixed time delay between each call?

Options:

A.

setTimeout?

B.

setlnterval

C.

clearTimeout

D.

clearlnterval

Question 97

HarmonyOS's AI capability provides the function of generating QR codes, for example, if you need to generate a QR code for each mobile phone contact, which of the following describes the QR code correctly?

Options:

A.

The width of the generated QR code image can be 2000 pixels

B.

The length of the string must be at least 2953 characters

C.

The height of the generated QR code image can be 1680 pixels

D.

Call the detect() method of IBarcodeDetector to generate the corresponding QR code image byte stream based on the input string information

Question 98

When a developer designs a news browsing application, he needs to achieve the effect that the news list and news details are not displayed on the same page, which of the following needs to be created by the developer?

Options:

A.

0 Page Ability, 3 AbilitySlice

B.

1 Page Ability, 2 AbilitySlice

C.

3 Page Ability, 1 AbilitySlice

D.

2 Page Ability, 1 AbilitySlice

Question 99

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

Options:

A.

Wearable business subsystem

B.

Location Services Subsystem

C.

Multi-mode input subsystem

D.

Media subsystem

Question 100

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

Options:

A.

connectPageAbility(intent,connection)

B.

connectAbility(intent, connection)

C.

onConnect

D.

connectServiceAbility(intent, connection)

Question 101

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 102

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 103

In HarmonyOS application development, where can commonly used backgrounds, such as common text backgrounds and button backgrounds, be placed?

Options:

A.

graphic

B.

media

C.

layout

D.

element

Question 104

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

Options:

A.

"comment": "xxX"

B.

#XXX

C.

/+××X+/ or /XXX

D.

xXxX

Question 105

When using HarmonyOS in distributed terminal scenarios, which of the following capabilities can be used to ensure that the device is safe and reliable?

Options:

A.

Zero Trust model

B.

Device Certificate Certification

C.

Trusted Execution Environment

D.

Secure Boot

Question 106

Which of the following accounts does the authentication service support?

Options:

A.

WeChat

B.

QQ

C.

HUAWEI ID

D.

Alipay

Question 107

When a developer is developing a UI, he writes the following code, which of the following is the correct implementation effect?

Options:

A.

The two words "classmate" are evenly distributed horizontally on two lines

B.

Text wraps automatically and keeps the upper and lower widths

C.

The four characters "Hello classmates" are evenly distributed vertically on a column

D.

The 4 words "Hello classmates" are evenly distributed horizontally on one line

Question 108

What kind of permissions do you need to use Image to load network images?

Options:

A.

ohos.permission.USE_BLUETOOTH

B.

ohos.permission.INTERNET

C.

ohos.permission.REQUIRE_FORM

D.

ohos.permission.LOCATION

Question 109

The library file is the third-party code that the application depends, which are the correct ways to use the following library files?

Options:

A.

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

B.

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

If the required library files exist in the maven repository, you can configure the project's build.gradle as follows to useRepositories {.}

C.

Maven{

Url 'XXX'

// Add a Mavenrepository address, which can be a local Maven address or a remote Maven address

}

D.

Put the library file in the libs directory in the form of jar.so, and then refer to the dependencies (Implementationproject(: mylibrary)) through the build.gradle of the application module.

Question 110

In the process of debugging Harmomyos applications, it is a common debugging method for developers to "check whether the change process of variables meets the expected results". To this end, DevEcoStudio provides a visualization of debug variables, which of the following forms can be presented?

Options:

A.

Histogram

B.

Line Chart

C.

tree

D.

Form D

Question 111

Which of the following functions can be achieved through the sidebar button of the remote simulator?

Options:

A.

Sets the device resolution of the remote emulator

B.

Release the remote emulator that is currently in use

C.

Rotate the screen clockwise

D.

Return to the main interface of the device

Question 112

In the distributed terminal scenario, the "correct person" refers to the data accessor and business operator who have passed identity authentication. The "right person" is a prerequisite to ensure that user data is not illegally accessed and user privacy is not leaked. What does HarmonyOS use to implement collaborative authentication?

Options:

A.

Zero Trust model

B.

Trusted Execution Environment

C.

Multi-factor fusion authentication

D.

Collaborative Mutual Aid Certification

Question 113

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 114

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 115

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

Options:

A.

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

B.

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

C.

@State variable can be left without an initial value

The decorated variables@Link

D.

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

Question 116

Which of the following development languages can a developer use when developing a HarmonyOS smart screen application?

Options:

A.

JavaScript

B.

Python

C.

Andriod

D.

Java

Question 117

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

Options:

A.

headphones

B.

Microwave oven

C.

Audio

D.

Glasses

Question 118

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

Options:

A.

package

B.

name

C.

bundleName

D.

page

Question 119

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

Options:

A.

Deviceld

B.

BundleName

C.

AbilityName

D.

Action

Question 120

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

Options:

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

Question 121

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

Options:

A.

API 6

B.

API 7

C.

API 8

D.

API 9

Question 122

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 123

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

Options:

A.

delay is set to 0

B.

tempo is set to 1

C.

iterations set to -1

D.

playMode is set to PlayMode.Reverse

Question 124

Which of the following is part of the basic software service subset in HarmonyOS?

Options:

A.

multimedia subsystem

B.

Telephone subsystem

C.

Event Notification Service Subsystem

D.

Graphics subsystem

E.

Location Services subsystem

Question 125

Which of the following features does HarmonyOS smart home devices include?

Options:

A.

Minimalist connection

B.

Wildcard card

C.

Minimalist interaction

D.

Hardware Mutual Aid

Question 126

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 127

A developer designed an application, when the user receives a notification, if the user clicks on the notification, it will jump to a new page, and if the notification is not clicked, the new page will not be triggered.

Options:

A.

NotificationSlot

B.

triggerlntentAgent

C.

setName

D.

setDescription

Question 128

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

Options:

A.

Checkbox

B.

RadioButton

C.

Picker

D.

RadioContainer

Question 129

Which of the following methods can jump to a new page and destroy the current page?

Options:

A.

router.pushUrl( )

B.

router.replaceUrl( )

C.

router.back( )

D.

router.clear( )

Question 130

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?

Options:

A.

onCompleteContinuation

B.

onRemoteTerminated

C.

onSaveData

D.

onRestoreData

Question 131

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

Options:

A.

Add a route for AbilitySliceA2via addActionRoute() in PageA

B.

Register the action corresponding to PageA in the configuration file

C.

Set the action in the Intent of the PageB navigation

D.

Set Deviceld to empty in the Intent of the PageB navigation

Question 132

Which of the following NFC functions can developers use when developing apps based on HarmonyOS?

Options:

A.

NFC message notification

B.

Access to the security element

C.

card emulation

D.

NFC basic query

Question 133

The declarative development paradigm based on TS extensions provides a series of basic components, the following code describes the structure of a simple page, read this code, which of the following are built-in components?

Options:

A.

Divider

B.

Button

C.

Text

D.

Columm

Question 134

HarmonyOS Converged Search provides developers with search-engine-level full-text search capabilities to provide users with a more accurate and efficient search experience.

Options:

A.

Cross-app search

B.

System global search

C.

Open systems search

D.

In-app search

Question 135

Which of the following components cannot contain subcomponents?

Options:

A.

Row

B.

Button

C.

Text

D.

LoadingProgress

Question 136

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

Options:

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

Question 137

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

Options:

A.

Commissioning Certificate

B.

Publish certificates

C.

Test Certificate

D.

Operating Certificate

Question 138

Which of the following subsystems in the HarmonyOS subsystem belongs to the hardware service subsystem set?

Options:

A.

Location Services subsystem

B.

Event Notification Service Subsystem

C.

Media Subsystem

D.

Biometric service subsystem

Question 139

Which of the following interfaces is NOT an API provided by the preference?

Options:

A.

get()

B.

update()

C.

put()

D.

flush()

Question 140

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

Options:

A.

normal line breakpoint

B.

Exception breakpoint

C.

symbol breakpoint

D.

method breakpoint

Question 141

Which of the following component hierarchies is wrong?

Options:

A.

list>listltem>Column

B.

Column>List>Listltem

C.

Grid>Row>Gridltem

D.

Grid>Gridltem

Question 142

What components can the animation property be used in?

Options:

A.

can only be a base component

B.

can only container components

C.

Basic components and container components

D.

None of the above is true

Question 143

The maximum number of simultaneous activations of a Worker thread

Options:

A.

6

B.

7

C.

8

D.

9

Question 144

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?

Options:

A.

Keyword extraction

B.

Document detection and correction

C.

General character recognition

D.

Image text is super-resolved

Question 145

When a developer develops a JavaScript application on the smart screen,Want to do some static animation,If you want to move a component in the horizontal direction by 200px,Which of the following style configurations is correct?

Options:

A.

transform: scaleX(200px)

B.

transform:rotateX(200px)

C.

transform: translatex(200px)

D.

transform: translateY(200px)

Question 146

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 147

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 148

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

Options:

A.

page transition

B.

Transitions between applications

C.

Share element transitions

D.

Transitions within an assembly

Question 149

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 150

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

Options:

A.

package

B.

name

C.

bundleName

D.

page

Question 151

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

Options:

A.

Data search service

B.

Local application data management

C.

Data storage management

D.

Distributed data services

Question 152

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

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

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

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

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

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

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

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

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

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

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

Options:

A.

module.json5

B.

oh-package.json5

C.

app.json5

D.

main_page.json

Question 153

A developer is writing a piece of code to control the access rights of an Ability

Apps with the ohos.permission.CAMERA permission can access this ability. The relevant code completed by the developer in config.json is as follows:

"abilities": [

{

"name": ". MainAbility",

"description":

"Sstring:description_main_abi1ity",

"icon" : "$media:hiworld.png",

"label": "HiCamera",

"1aunchType": "standard",

"orientation": "portrait",

"visible": false,______________________________

} ]

Which of the following should the developer add to the horizontal line?

Options:

A.

"permissions": [

"ohos.permission.CAMERA" ]

B.

"defPermissions":[

{"ohos.permission.CAMERA"}]

C.

"reqPermissions": [ {

"ohos.permission.CAMERA”}]

D.

"permissions": [

"ohos.permission.LOCATION"]

Question 154

Which of the following modules needs to be imported for page routing?

Options:

A.

import prompt from '@ohos.prompt'

B.

import router from '@ohos.router'

C.

import Notification from'@ohos.notification'

D.

import window from '@ohos.window'

Question 155

Options:

A.

Resource is a resource reference type that sets the value of a component's properties

B.

refers to application resources in the form of "Sr('app.type.name')", and the app represents the app

resources directory, type represents the resource type (or the location where the resource is stored)

C.

Resource supports all data types

D.

system can load the appropriate Resource resources according to the current configuration, for example, developers can render different layout effects according to the screen size, or provide different strings according to the language settings

Question 156

A HarmonyOS developer uses the EventHandler mechanism to handle four events: A, B, C, and D, where event D retains the default priority, and the priority properties of the other three events are set as follows:

Event A: Priority.IMMEDIATE

Event B: Priority.HIGH

Event C: Priority.IDLE

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

Options:

A.

Event A will be delivered immediately

B.

Event B D will be delivered before Event B

C.

delivers event C when there are no other events

D.

Event D will be delivered before EventC

Question 157

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

Options:

A.

True

B.

False

Question 158

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

Options:

A.

True

B.

Error

Question 159

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 160

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 161

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 162

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

Question 163

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

Options:

A.

True

B.

False

Question 164

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

Options:

A.

True

B.

False

Question 165

A user uses the HarmonyOS distributed task scheduling capability to migrate mobile phone videos to the smart screen for playback. In this scenario, the process of finding whether the smart screen has the same playback software is a global query.

Options:

A.

True

B.

False

Question 166

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 167

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 168

When users use mobile phones, they will find that the phone number in the text message is often highlighted, and they can dial directly. This is a typical application scenario for entity recognition Al.

Options:

A.

True

B.

False

Question 169

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 170

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 171

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

Options:

A.

True

B.

False

Question 172

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

Options:

A.

True

B.

False

Question 173

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

Options:

A.

True

B.

False

Question 174

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 175

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

Options:

A.

True

B.

False

Question 176

Components can neither be displayed nor interact with when they are not added to a layout, so a user interface contains at least one layout.

Options:

A.

True

B.

False

Question 177

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

Options:

A.

True

B.

False

Question 178

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

Options:

A.

True

B.

False

Question 179

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

Options:

A.

True

B.

False

Question 180

The lightweight preference database is a non-relational database, which mainly provides lightweight key-value operations and supports local applications to store a large amount of data. If a HarmonyOS developer uses a lightweight preference database to save data, the data will be stored in a local file and will not be loaded into memory.

Options:

A.

True

B.

False

Question 181

HarmonyOS's Data Ability is used to provide an interface for operation data, but cannot provide file-related operations.

Options:

A.

True

B.

False

Question 182

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 183

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 184

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

Options:

A.

True

B.

False

Question 185

The user application package of HarmonyOS may not contain a HAP package of the feature type.

Options:

A.

True

B.

False

Question 186

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 187

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

Options:

A.

True

B.

False

Question 188

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 189

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

Options:

A.

True

B.

False

Question 190

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

Options:

A.

True

B.

False

Question 191

HAR (HarmonyOS Ability Resources) is different from HAP (HarmonyOS Ability Package) in that HAR cannot be installed and run on devices independently, and can only be referenced as dependencies of application modules.

Options:

A.

True

B.

False

Question 192

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

Options:

A.

True

B.

False

Question 193

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 194

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

Options:

A.

True

B.

False

Question 195

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

Options:

A.

True

B.

False

Question 196

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

Options:

A.

True

B.

False

Question 197

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

Options:

A.

True

B.

False

Question 198

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 199

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

Options:

A.

True

B.

False

Question 200

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 201

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 202

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

Options:

A.

True

B.

False

Question 203

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 204

Intent is a carrier for transmitting information between objects.

Options:

A.

True

B.

False

Question 205

A developer needs to read the resource files in the rawfile folder, and the following code can be used to read them successfully.

Image

image(Image)findComponentByld(ResourceTable.Id_cormponent_image);

Image.setPixelMap (ResourceTable.Media hawei);

Options:

A.

True

B.

False

Question 206

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

Options:

A.

True

B.

False

Question 207

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

Options:

A.

True

B.

False

Question 208

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

Options:

A.

True

B.

False

Exam Detail
Vendor: Huawei
Certification: Huawei Certification
Exam Code: H14-231_V1.0
Last Update: Dec 22, 2024
H14-231_V1.0 Question Answers
Page: 1 / 52
Total 695 questions