HarmonyOS Application Developer-----Basic Certification Test Questions and Answers

HarmonyOS Application Developer Basic Certification Test Questions and Answers

The test questions will be refreshed from time to time. This test question is only for your study reference.

  1. [True or False] 2.5/2.5
    All custom components decorated with @Component support onPageShow, onBackPress and onPageHide life cycle functions.
    Correct (True) False (False)
    Correct answer
  2. [Judgement Question] 2.5/2.5
    In the Column and Row container components, justifyContent is used to set the alignment format of the sub-component in the main axis direction, and alignItems is used to set the alignment format of the sub-component in the cross-axis direction.
    Correct (True) False (False)
    Correct answer
  3. [True or False] 2.5/2.5
    The @CustomDialog decorator is used to decorate custom pop-up window components so that the pop-up window can dynamically set content and style.
    Correct (True) False (False)
    Correct answer
  4. [Judgement Question] 2.5/2.5
    When using the http module to initiate a network request, you must use on('headersReceive') to subscribe to the request header, and the request will be successful.
    Correct (True) False (False)
    Correct answer
  5. [True or False] 2.5/2.5
    Each custom component has its own life cycle.
    Correct (True)
    or False (False).
  6. [True or False] 2.5/2.5
    Ability is the smallest unit of system scheduling application and a component that can complete an independent function. An application can contain one or more abilities.
    Correct (True) False (False)
    Correct answer
  7. [True or False] 2.5/2.5
    Every time the router.pushUrl() method is called, by default, the number of page stacks will be increased by 1, and the maximum number of pages supported by the page stack is 32.
    Correct (True) False (False)
    Correct answer
  8. [True or False Question] The 2.5/2.5
    Video component can support local video path and network path playback. When playing online videos, you need to apply for the permission ohos.permission.INTERNET.
    Correct (True) False (False)
    Correct answer
  9. [Judgement Question] 2.5/2.5
    The Tabs component can only contain the sub-component TabsContent. Each tab corresponds to a content view, which is the TabContet component.
    Correct (True) False (False)
    Correct answer
  10. [True or False Question] 2.5/2.5
    preferences store data in the form of Key-Value, where Key can be repeated.
    Correct (True) False (False)
    Correct answer
  11. [True or False] 2.5/2.5
    Web components can use the zoom(factor: number) method to zoom on all web pages.
    Correct (True) False (False)
    Correct answer
  12. [Single-choice question] 2.5/2.5
    The incorrect description about Resource is a resource reference type:
    A. Resource is a resource reference type and is used to set the value of component attributes. B. Reference application resources in the form of "$r('app.type.name')". app represents the resources defined in the resources directory within the application, and type represents the resource type (or resource storage location). C. Resource supports all data types. D. System

Guess you like

Origin blog.csdn.net/u010689434/article/details/132621144