EMT Practice Test

1. Question Content...


Question List

Question1: What problems do developers need to think about each basic element when building page layouts in JavaScript UI frameworks?

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

Question3: A developer defines an entity class Student.java and uses the following code to construct a teaching table:
Entity(tableName="student",ignoredColums =["ignoredColumn1"," ignoredColumn2", indices
=(@Index(value =("firstName." ,"lastName",name="name_index", unique = true))) Public class User extends OrmObject{
@PrimaryKey(autoGenerate= true)
Private Integer userld;
Private String firstName;
Private String lastName;
Private int age;
Private double balance;
Private int ignoredColumnl;
Private int ignoredColumn2;
}
Which of the following descriptions of this code is wrong?

Question4: 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?

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

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

Question7: Which package is imported using the preferences?

Question8: 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?

Question9: 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.

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

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

Question12: Which of the following operations can be performed through the @ohos.systemTime module?

Question13: The input division method of HarmonyOS is different from that of traditional operating systems, and multi-dimensional inputs will be integrated, so that developers can use application frameworks, UI components or interfaces that come with the system to implement applications with multi-dimensional and natural interaction characteristics.

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

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

Question16: What is correct about Web Component Description A?

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

Question18: An engineer wrote the following code, which items are correct about the description of the following code?
@Entity(tableName = "user", ignoredColumns = {"ignoredColumn1", "ignoredColumn2"} , indices = {@Index(value = {"firstName", "lastName"), name ="name_index", unique = true)})

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

Question20: 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?

Question21: If a developer wants to develop a Data Ability for the storage and management of application data, which of the following can help the developer realize the function ofinserting multiple pieces of data into the database at one time?

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

Question23: In the following scenarios, which ones use the voice broadcast function?

Question24: A user migrates video playback from his mobile phone to a smart screen and uses the distributed task scheduling capability of HarmonyOS. Which of the following is the process of connecting the video to the smart screen playback in this scenario?

Question25: 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?

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

Question27: In the Page Ability lifecycle of HarmonyOS, when the system creates a Page instance for the first time, which of the following callback methods will be triggered first?

Question28: 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?

Question29: When a developer compiles a project, the compilation fails, and the message "This device type does not match project profile" is displayed, because the device type configured in "config.json" does not match the device type for debugging, and "deviceType" needs to be configured in the "module" tag.

Question30: 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.

Question31: 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.

Question32: 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?

Question33: An application needs to obtain the Wi-Fi connection status of the current device and check whether the Wi-Fi is turned on. Which of the following permissions is not required in order to do this?

Question34: Huawei's latest mobile phonesHarmonyOS 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

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

Question36: 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?

Question37: The maximum length limit of the preference key is ( ) bytes

Question38: After the user migrates the navigation of the mobile phone to the smart watch, if the smart watch needs to obtain the data transmitted from the mobile phone, which of the following methods should it be obtained?

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

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

Question41: What are the following scenarios that belong to the public events of the system?

Question42: 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?

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

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

Question45: Which of the following does not belong to the system service layer in the HarmonyOS system architecture?

Question46: 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.

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

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

Question49: How to realize distributed communication betweentwo existing Harmony OS devices?

Question50: 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?

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

Question52: Which of the following belongs to the lifecycle of starting a Service Ability?

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

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

Question55: Lightweight data storage is suitable for data storage involving a large number of data relationships and business relationships, and has better read and write performance than relational databases and object-relational mapping databases.

Question56: What are the following development languages that a developer can use to develop a mobile app using HarmonyOS?

Question57: If a developer wants to use the notification function of HarmonyOS when developing an application, which of the following notification styles can be selected by the developer?

Question58: 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?

Question59: 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?

Question60: 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?

Question61: 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.

Question62: 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.

Question63: In a HarmonyOS application, which of thefollowing and the ComponentContainer object are actually composed of the interface elements that the user sees?

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

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

Question66: Which of the following belongs to the application layer in the HarmonyOS system architecture?

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

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

Question69: 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?

Question70: What are the data management methods provided by HarmonyOS?

Question71: Which of the following items is an asynchronous task dispatch method in HarmonyOS threads?

Question72: 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?

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

Question74: 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?

Question75: Which of the following functions is a lifecycle function for a custom component?

Question76: 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.

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

Question78: When a developer wants to make the vertical scrolling layout take effect when using the ScrollView control, how should the width of the control corresponding to the layout be set?

Question79: What kind of custom component can be used as a page entry component with a decorator?

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

Question81: 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.

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

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

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

Question85: 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.

Question86: When the engineer is developing JS (JavaScript), the application can successfully load the local image in the common path, but cannot load the network image.

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

Question88: When a company is developing a HarmonyOSapplication, it needs to customize an artboard control, how to get the X coordinates of the current touch point in the whole screen during the listening of touch events?

Question89: If a developer uses custom components when developing a HarmonyOS application, what are the correct descriptions of custom components below?

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

Question91: If a developer sets a distributed tag Intent.FLAG_ABILITTSLICE_MULTI_DEVICE in the Intent, what does the tag mean?

Question92: 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.

Question93: . When developing a HarmonyOS application, use a component Text as the title of a page, if you want to make the title invisible and still occupy the space of the current page, the following operations are correct

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

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

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

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

Question98: 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.

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

Question100: Which of the following system resources does the Ark Development Framework provide for developers?

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

Question102: 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?

Question103: When a developer is developing a JavaSriptUI page of a shopping software,he needs to use the list component to display the product information, and which method of the list can be used to scroll to the specified item?

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

Question105: What attributes are supported by attribute animations?

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

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

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

Question109: Which of the following is all the components of the HAP package in HarmonyOS?

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

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

Question112: What are the following aspects of resource utilization analysis that DevEco Studio Performance Analyzer can perform?

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

Question114: If a developer uses the DevEco Studio tool for application development, which of the following commissioning methods does the tool support?

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

Question116: On the basis of the supported input events, the multi-mode input defines some input actions commonly used by users as a set of standardized events, and maps the input events of different input devices to the standardized events.

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

Question118: 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?

Question119: 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?

Question120: If a developer needs to use the JavaScript UI framework to display the bar chart of the month's product sales, he can use the chart component to implement this function.

Question121: When the system destroys a page, which of the following callback methods will be triggered?

Question122: The application package name cannot contain some reserved fields, which of the following fields meets the specification?

Question123: The following code snippet is used to start the Service of the remote device, if it is replaced with the Service.withDeviceld("deviceld") that starts the local device, it can be deleted.
Intent intent =new Intent();
Operation operation =new Intent.OperationBuilderO
.withDeviceld("deviceld")
.withBundleName
("com.domainname.hiworld.himusic")
.withAbilityName("com.domainname.hiworld.himusic.ServiceAbility")
.withFlags(Intent.FLAG_ABILITYSLICE_MULTI_DEVICE)
.bui1d();
intent.setOperation(operation);
startAbility(intent);

Question124: 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?

Question125: Which of the following methods can remove a notification?

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

Question127: A developer needs to use the current data network for socket data transmission, and the development process involves the following steps:
1Send data with sockets.
2Bind the network with NetHandle.bindSocket().
3Call NetManager.getDefaultNet() to get the default data network.
4Call 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?

Question128: 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?

Question129: Which field must the meta service package name end in?

Question130: Whichof the following does not belong to the application framework layer in theHarmony OS system architecture?

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

Question132: 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?

Question133: When a time-consuming operation needs to be performed in a HarmonyOS application, it is preferable to create subthreads in FA instead of creating subthreads in Service.

Question134: 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?

Question135: If a developer wants to obtain the location information of a HarmonyOS device, which of the following methods is correct?

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

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

Question138: 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?

Question139: A HarmonyOS developer created two serial task distributors, dispatchera anddispatcher_b, and also created a proprietary task dispatcher. Which of the following scenarios can cause deadlocks due to improper use of syncDispatch?

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

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

Question142: 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

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

Question144: API9 and above, router.pushUrl() method, what is the default mode used by the jump page?

Question145: 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.

Question146: JavaScriptUl does not support async and await syntax.

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

Question148: PositionLayout is an adaptive layout, which is mainly used in scenarios where multiple components at the same level need to automatically adjust the number of columns on different screen sizes.

Question149: A developer wants to use the list component of the JavaScript UI framework to display a table.
<list class="todo-wraper"
scrollpage="true"
scrollbar="on"
shapemode="round"
scrolleffect="no">
<list-item for="{{todolist}}"class="todo-item">
<text class="todo-title">{{Sitem.title}}</text>
<text class="todo-title">{{Sitem.date}}</text>
</list-item>
</list>

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

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

Question152: Which of the following features of the HarmonyOS distributed database are correctly described?

Question153: When developing a HarmonyOS application, a developer receives the following product request: If a user logs in to the same HarmonyOS account on device A and device B, the user can log in to the app on device A and synchronize the application account authentication information to account B as needed. After the account authentication information is synchronized, the user can open the application on device B and log in directly without entering the application account authentication information again. Which of the following descriptions of this scene is correct?

Question154: Which of the following layers does the JavaSeript framework include?

Question155: HarmonyOS provides the NFC message notification function, through which developers can obtain the message of the NFC switch state change and the NFC field strength message.

Question156: A developer needs to use the current scattered data network for socket data transmission, and in this scenario, the development process involves the following steps:
1. Use socket to send data
2. Call NetHandle.bindSocket() to bind the network.
3. Call NetManager.getDefaultNet() to get the default data network.
4. Call NetManager.getInstance(Context) 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?

Question157: When the developer jumps to a new page through the button button, the following code is created. If you don't add "" Button button = (Button) findComponentByld(ResourceTable.ld_button) ;" What happens to this line of code?
Public void onStart(Intent intent){
super.onStart(intent);
super.setUlContent
(ResourceTable.Layout_ability_main);
Button button =
(Button)findComponentByld(ResourceTable.ld_button);
button.setClickedListener(listener -> present(new
SecondAbilitySlice(),new Intent()));
}

Question158: HarmonyOSdefines different open scopes and authorization methods to protect data according to the sensitivity of the data involved in the interface

Question159: Before starting the debugging of the Entry module, the engineer needs to check whether the "visible" attribute exists in the config.jsnabilities array in the config.jsnabilities file under the Entry module, and if it does not exist, it needs to be added manually, otherwise the debugging of the Entry module cannot enter the breakpoint.

Question160: If a developer wants to quote the resource files in the base directory and the qualifier directory, which of the following can be used to do so?

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

Question162: 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?

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

Question164: 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.

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

Question166: When a developer develops a background music playback software, he needs to use Service Ability, what are the following correct descriptions of the use process of Service Ability?

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

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

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

Question170: A developer needs to use the current scattered data network for socket data transmission, in this scenario, the development process involves the following steps: 1. Use socket to send data.2. Call NetHandle.bindSocket() to bind the network.3. Call NetManager.getDefaultNet() to get the default data network.4. Call NetManager.getInstance(ContextWhen the developer sorts out the development steps, the above steps are sorted according to the order in which the functions are completed in the code. Which of the following is the correct order?

Question171: In the process of coding, software development engineers need to detect whether the Butfer data is read and whether an exception occurs, which of the following methods can be called?

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

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

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

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

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

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

Question178: 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.

Question179: Which of the following subsystems is not part of the basic software service subsystem of HarmonyoS?

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

Question181: API9 and above, router.pushUrl() method mode parameter can be configured to which of the following modes used by the jump page?

Question182: 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?

Question183: 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?

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

Question185: The main function of EventHandler is to deliver InnerEvent events or Runnable tasks to other threads for processing.

Question186: 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?

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

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

Question189: 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.

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

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

Question192: 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?

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

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

Question195: 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

Question196: 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?

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

Question198: Which of the following service management mechanisms does HarmonyOS's distributed task scheduling consist of?

Question199: When a data engineer constructs a data table, which of the following can be used as data types?

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

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

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

Question203: A developer called the getDefaultHost(Context context) interface of BluetoothHost to obtain a Bl1uetoothHost instance for managing local Bluetooth operations. The developer uses the following development steps to implement Bluetooth pairing:
1Turn on Bluetooth.
2Scan Bluetooth.
3. Initiate pairing.
Which of the following statements about steps 1, 2, and 3 is true?

Question204: Which of the following is the background agent reminder function module supported from API9.

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

Question206: 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?

Question207: Regarding the service cards of HarmonyOS applications, the following belong to the card users

Question208: 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?

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

Question210: 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?

Question211: A developer uses the HarmonyOS Bluetooth Low Energy function to achieve cross-distance wireless communication, how does the central device and peripheral devices interact in this scenario?

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

Question213: What are the boot modes of UIAbility?

Question214: Which of the following is NOT part of the software exposure capabilities provided by HarmonyOS Connect?

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

Question216: 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?

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

Question218: 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.

Question219: 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.

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

Question221: When developing a HarmonyOS application, a developer receives the following product request: If a user logs in to the same HarmonyOS account on device A and device B, the user can log in to the app on device A and synchronize the application account authentication information to account B as needed. After the account authentication information is synchronized, the user can open the application on device B and log in directly without entering the application account authentication information again.
Which of the following descriptions of this scene is correct?

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

Question223: A HarmonyOS developer uses the EventHandler mechanism to process 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.INTERMEDIATE Event B: Priority.HIGH Event C: Priority.IDLEWhich of the following statements about the above events are correct?

Question224: When developing HarmonyOS applications, the main function of EventHandler is to deliver InnerEvent events or Runnable tasks to other threads for processing.

Question225: Sampling refers to the process of sampling a digital signal in a continuous time domain at certain time intervals to obtain a discrete signal in the discrete time domain.

Question226: In the declarative development paradigm, which of the following rules about the constructor method initializes member variables is wrong?

Question227: 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?

Question228: What are the parts of the HarmonyOS cloud development project?

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

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

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

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

Question233: 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?

Question234: 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?

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

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

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

Question238: Which field needs to be configured in the module.json5 file for UIAbility startup mode?

Question239: 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.

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

Question241: 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?

Question242: If a developer uses the Text component to develop a UI interface, if the outside of the Text component needs to be left blank, which of the following codes can the developer use?

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

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

Question245: When a developer uses HarmonyOS Device Manager, he wrote the following code, which code description is correct?
Vardevicelnto=dmInstance.getLocaIDevicelnfoSync () :

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

Question247: 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?

Question248: Which of the following items belongs to the kernel layer in the system architecture of HarmonyOS?

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

Question250: 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?

Question251: 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.

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

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

Question254: What are the types of background agent reminder services?

Question255: HarmonyOS provides two mechanisms for calling JavaPA (ParticleAbility) by JSFA(FeatureAbility), namely Ability and InternalAbility.

Question256: What are the componentization characteristics of custom components?

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

Question258: The callback mechanism provided by the Ability class can allow the Page instance to switch with the user's operation background

Question259: 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?

Question260: 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??

Question261: What is the correct position setting for the Tabs tab described below?

Question262: 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?

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

Question264: When a developerdevelops an application based on Harmony OS, one of the HAPs (HarmonyOS Ability Package) needs to access the SQLite database to implement the following functions:
Function 1: Create a database.
Function 2: Insert data.
Function 3: Query data.
Which of the following descriptions of the developer's development steps is correct?

Question265: Regarding the boot mode of UIAbility, the following statement is incorrect

Question266: If a developer wants to develop a local background music playback function, he needs to implement Page Ability to start Service Ability, which of the following parameters need to be specified when starting?

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

Question268: Thedefault size of shared memory in Harmony OS is ?

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

Question270: 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.

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

Question272: 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.

Question273: HarmonyOS is a distributed operating system that can be deployed on mobile phones and embedded devices.

Question274: A HarmonyOS developer uses syncDispatch to synchronously dispatch tasks when developing applications. In this scenario, syncDispatch dispatches the task and waits for the task to complete on the current thread, so the current thread is not blocked until it returns.

Question275: Which of the following types of NFC tags are supported by HarmonyOS?

Question276: In the JS (JavaScript) UI framework, which layer is connected to the system platform platform by abstracting the platform layer and providing an abstract interface?

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

Question278: 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

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

Question280: 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.

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

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

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

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

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

Question286: What files does an engineer need to use when he wants to debug a newly developed application on a real device?