Free H14-231_V1.0 Exam Braindumps

A developer designs a game application with MainAbility on the home page, click the game icon on the desktop, and then press the Home button to hide the game in the background, how does the life cycle of MainAbility change?

  1. onStart ()onResume()--onInActive()onBackground()
  2. onStart()onActive()onInActive()onStop()
  3. onStart()--onActive()onInActive()
  4. onStart()onActive()onlnActive()onBackground()

Answer(s): D



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?

  1. router.push
  2. router.back
  3. uri
  4. intent

Answer(s): C



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

  1. ohos:text_alignment=start
  2. ohos:text_alignment=bottom
  3. ohos:text_alignment=vertical_center
  4. ohos:text_alignment=horizontal_center

Answer(s): D



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?

  1. lgnoredColumns indicates that the field does not need to be added to the attributes of the student table
  2. lndices creates a composite index name_index for the firstName and 1astName fields
  3. The name of the data table is student
    The index value of the
  4. composite index name_index is not unique

Answer(s): D






Post your Comments and Discuss Huawei H14-231_V1.0 exam with other Community members:

H14-231_V1.0 Exam Discussions & Posts