71 typical Android Interview Questions and Answers, including important knowledge points

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

, Interview questions
1.   Which of the following statements about memory reclaim are correct? (B) A. the programmer must create a thread to release the memory.
  B. The memory reclaim program is responsible for releasing useless memory.
  C. The memory reclaim program allows programmers to directly release the memory.
  D. The memory reclaim program can release memory objects at the specified time.
2.   The following exception is a runtime exception (ABCD) (multiple choice)  A. arithmeticexception
  B. illegalargumentexception 
  C. nullpointerexception
  D. bufferunderflowexception 
3.  Math. Round (11.5) equals to (). Math. Round (-11.5) equals to (c). c A, 11,-11B, 11,-12C, 12,-11D, 12,-12
4.   The output result of the following program segments is: (B)
   Void complicatedexpression_r (){
   Int x = 20, y = 30;
   Boolean B;
   B = x> 50 & Y> 60 | x> 50 & Y <-60 | x <-50 & Y> 60 | x <-50 && Y <-60;
   System. Out. println (B );
   }
   A, true B. False C, 1 D, 011. activity5.   Save some resources and status operations, preferably in which function of the Life Cycle (d)
 A. onpause () B. oncreate ()C. onresume ()D. onstart ()
6.   Which of the following data types can be passed (ABCD) When intent transmits data (Multiple choices)  A. serializable B. charsequence C. parcelable D. Bundle
7.   AndroidWhich of the following is intent? (c)  A. implement data sharing between applications
  B. It is a long life cycle. programs without a user interface can keep the applications running in the background without switching the page.
  C. You can switch between interfaces, including actions and action data, and connect the four components.
  D. process the integrity of an application
8.   Which of the following are advantages of parsing XML files by using Sax? (B)  A. The entire document tree is stored in the memory, which is easy to operate and supports deletion, modification, and rescheduling.
  B. The entire document does not need to be transferred in advance, which consumes less resources.
  C. The entire file is transferred to the memory, which wastes time and space.
  D. The data does not reside in the memory for a long time and is not persistent. After the event, if the data is not saved, the data will
  Disappear
9.  Which of the following methods is correct for custom Styles? () A. <resources>
  <Style name = "mystyle">
         <Itemname = "Android: layout_width"> fill_parent </item>
       </Style>
</Resources>
   B. <style name = "mystyle">
         <Itemname = "Android: layout_width"> fill_parent </item>
 </Style>
   C. <resources>
         <Itemname = "Android: layout_width"> fill_parent </item>
  </Resources>
   D. <resources>
         <Stylename = "Android: layout_width"> fill_parent </style>
  </Resources>
10. When using menu in Android, you may need to override (AC ). (Multiple options)  A. oncreateoptionsmenu ()
  B. oncreatemenu ()
  C. onoptionsitemselected ()
  D. onitemselected ()
11. Run the following T-SQL statement in SQL Server Management studio with the output value (c ). Select @ identity 
   A, May be 0.1
   B, It may be 3
   C, Impossible-100
   D, It must be 0.
12.  Run the following T-SQL statement in SQL Server 2005 to execute a query  The result is (d ). Begin transaction
  Update sales set qty = 30 Where qty <30
    Begin transaction B
      Update sales set qty = 40 whereqty <40
      Update sales set qty = 50 whereqty <50
      Update sales set qty = 60 whereqty <60
    Commit transaction B
  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.