<span id="Label3"></p>71 Classic Android Face questions and Answers 1. Which of the following statements is correct about memory recycling? (b)<p><p>a, the programmer must create a thread to free up memory</p></p><p><p>B, Memory Recovery Program is responsible for releasing useless memory</p></p><p><p>C, Memory Recycle program allows the programmer to free memory directly</p></p><p><p>D, Memory Recycle program can free memory objects at specified time</p></p>2. The following exception belongs to the runtime Exception (abcd) (multiple Selection)<p><p>A, arithmeticexception B, illegalargumentexception C, nullpointerexception D, bufferunderflowexception</p></p>3.math.round (11.5) equals how much (). Math.Round (-11.5) equals how much (c)<p><p>A, one, -11 B, one, -12 C, a, -11 D, 12, 12</p></p>4. The output of the following program segments Is: (b)<p><p>void Complicatedexpression_r () {</p></p><p><p>int x=20, y=30;</p></p><p><p>Boolean b;</p></p><p><p>b=x>50&&y>60| | x>50&&y<-60| | x<-50&&y>60| | x<-50&&y<-60;</p></p><p><p>System.out.println (b);</p></p><p><p>}</p></p><p><p>A, true B, false C, 1 D, 0</p></p>5. Save the operation of some resources and state, preferably in which function of the life cycle (d)<p><p>A, onPause () B, onCreate () C, onresume () D, onStart ()</p></p>6.Intent when passing data, the following data types which can be passed (abcd) (multiple Selection)<p><p>A, Serializable B, charsequence C, parcelable D, Bundle</p></p>The following functions of the intent in 7.android are (c)<p><p>A. implement data sharing between applications</p></p><p><p>B, is a long life cycle, there is no user interface program, You can keep the app running in the background, and will not disappear because of the switch page</p></p><p><p>C, can achieve the interface between the switch, can contain action and action data, connecting the four components of the link</p></p><p><p>D. work with an application integrity</p></p>8. The following advantages of the SAX parsing xml file are (b)<p><p>a, the entire document tree in memory, easy to operate, to support the deletion, modification, rearrangement and many other functions</p></p><p><p>B, do not need to transfer the entire document in advance, occupy less resources</p></p><p><p>C, the entire document into memory, wasting time and space</p></p><p><p>D, not long-term resident in memory, data is not persistent, after the event, if the data is not saved, the data will disappear</p></p>9. There may be a method to override when using menu in Android (ac). (multiple Selection)<p><p>A, oncreateoptionsmenu () B, oncreatemenu () C, onoptionsitemselected () D, onitemselected ()</p></p>10. Run the following t-sql statement in SQL Server Management Studio with its output value (c)<p><p>SELECT @ @IDENTITY</p></p><p><p>A, may be 0.1 B, may be 3 C, cannot be -100 D, must be 0</p></p>11. In SQL Server 2005, run the following t-sql statement, assuming that the sales table has more than one row of data, the result after executing the query is (d).<p><p>BEGIN TRANSACTION A</p></p><p><p>Update SALES Set qty=30 WHERE qty<30</p></p><p><p>BEGIN TRANSACTION B</p></p><p><p>Update SALES Set qty=40 whereqty<40</p></p><p><p>Update SALES Set qty=50 whereqty<50</p></p><p><p>Update SALES Set qty=60 whereqty<60</p></p><p><p>COMMIT TRANSACTION B</p></p><p><p>COMMIT TRANSACTION A</p></p><p><p></p></p><p><p></p></p><p><p>A, the Qty column minimum value is greater than or equal to 30 in the sales table</p></p><p><p>B, the Qty column in the Sales table has a minimum value greater than or equal to 40</p></p><p><p>The data in the Qty column in the Sales table is all 50</p></p><p><p>D, the Qty column in the Sales table has a minimum value greater than or equal to 60</p></p>12. When using Sqliteopenhelper as an auxiliary class in android, a database can be generated and the database version can be managed (ab)<p><p>A, getwriteabledatabase () B, getreadabledatabase () C, getdatabase () D, getabledatabase ()</p></p><p><p></p></p>13.android oncreate () and OnStart () about the service life cycle are correct (ad) (multiple-choice)<p><p>A. call the OnCreate () and OnStart () methods when you first start</p></p><p><p>B, the OnCreate () method is only called when the first boot</p></p><p><p>C, If the service has been started, will call the OnCreate () and the OnStart () method successively</p></p><p><p>D. If the service is started, only the OnStart () method is executed, not the OnCreate () method</p></p>14. Below is the Glsurfaceview attribute (abc) (multiple Selection)<p><p>a, to manage a surface, this surface is a special piece of memory that can be directly formatted on the Android views view.</p></p><p><p>B. Manage an EGL display that allows OpenGL to render content onto the surface Above.</p></p><p><p>C, let the renderer work in a separate thread, separate from the UI Thread.</p></p><p><p>D, can be directly from memory or DMA and other hardware interface to obtain image data</p></p>15. Register the Broadcastreceiver method correctly in the Androidmanifest.xml file below (a)<p><p>A, <receiver android:name= "android.provider.action.newbroad/></p></p><p><p>B, android:name= "android.provider.action.NewBroad"/></p></p><p><p>C, android:name= "android.provider.action.NewBroad"/></p></p><p><p>D, android:name= "android.provider.action.NewBroad"/></p></p>16. The right thing to say about the contenvalues category is (a)<p><p>A, He and Hashtable more similar, is also responsible for storing some name value pairs, but he stored the name of the value pair is a string type, and the value is the basic type</p></p><p><p>B, He and Hashtable more similar, is also responsible for storing some name value pairs, but he stored the name of the value pair is any type, and the value is the basic type</p></p><p><p>C, He and Hashtable more similar, but also responsible for storing some name value pairs, but he stored the name of the value pair, can be empty, and the value is a string type</p></p><p><p>D, He and Hashtable more similar, but also responsible for storing some name value pairs, but he stored the name of the value pair is a string type, and the value is a string type</p></p>17. We all know that Hanlder is a bridge between thread and activity communication, and if the thread is improperly handled, the slower your machine becomes, the way the thread is destroyed is (d)<p><p>A, OnDestroy () B, onclear () C, onfinish () D, onStop ()</p></p>18. The following method of exiting the activity error is (c)<p><p>A, Finish () B, throw exception forced exit C, system.exit () D, onStop ()</p></p>19. There are (ab) (multiple) of the following animation categories that belong to Android<p><p>A, Tween B, Frame C, Draw D, Animation</p></p>20. The process of the following about Android DVM and Linux processes, the application process is said to be correct (d)<p><p>a, a DVM refers to a dalivk virtual Machine. each Android application runs in its own process and does not necessarily have a separate Dalvik virtual machine instance. Each DVM is a process in linux, so it can be thought of as the same concept.</p></p><p><p>B, DVM refers to DALIVK virtual Machines. each Android application runs in its own process and does not necessarily have a separate Dalvik virtual machine instance. Each DVM is not necessarily a process in linux, so it is not a concept.</p></p><p><p>C, DVM refers to DALIVK virtual Machines. each Android application runs in its own process and has a separate instance of the Dalvik virtual Machine. each DVM is not necessarily a process in linux, so it is not a concept.</p></p><p><p>D, DVM refers to DALIVK virtual Machines. each Android application runs in its own process and has a separate instance of the Dalvik virtual Machine. each DVM is a process in linux, so it can be thought of as the same concept.</p></p>21.Android Project Engineering What is the role of the assets directory below (b)<p><p>A. Place the image resource that you applied to. B, the main placement of multimedia data file C, placing strings, colors, arrays and other constant data D, put some layout files corresponding to the ui, are XML files</p></p>22. about the Res/raw catalogue the right thing to say is (a)<p><p>a, here the file is intact stored on the device will not be converted to binary format</p></p><p><p>B, here the file is intact stored on the device will be converted to binary format</p></p><p><p>C, The files Here are eventually stored in a binary format in the specified package</p></p><p><p>D, the files here will not eventually be stored in a binary format in the specified package</p></p>23. The following understanding of the Android NDK is correct (abcd)<p><p>a, the NDK is a collection of a series of tools</p></p><p><p>B, The NDK provides a stable, functionally limited API header file Declaration.</p></p><p><p>C, so that "java+c" the development of the way finally become a positive, officially supported the development of the way</p></p><p><p>D, NDK will be the beginning of Android platform support C development</p></p>The four layouts commonly used in 24.android are<span style="text-decoration: underline;"><span style="text-decoration: underline;">Framlayout,linenarlayout,relativelayout</span></span>And<span style="text-decoration: underline;"><span style="text-decoration: underline;">Tablelayout</span></span>。 The four components of 25.android are<span style="text-decoration: underline;"><span style="text-decoration: underline;">Activiey,service,broadcast</span></span>And<span style="text-decoration: underline;"><span style="text-decoration: underline;">Contentprovide</span></span>。 In the java.io package.<span style="text-decoration: underline;"><span style="text-decoration: underline;">ObjectInputStream</span></span>And<span style="text-decoration: underline;"><span style="text-decoration: underline;">ObjectOutputStream</span></span>Classes are primarily used to read and write to Objects (object) in 27.android for service implementation by:<span style="text-decoration: underline;"><span style="text-decoration: underline;">StartService</span></span>And<span style="text-decoration: underline;"><span style="text-decoration: underline;">Bindservice</span></span>。 28.activity typically overloads 7 methods to maintain their life cycle, in addition to<span style="text-decoration: underline;"><span style="text-decoration: underline;">onCreate (), onStart (), ondestory (</span> )</span>And there are<span style="text-decoration: underline;"><span style="text-decoration: underline;">Onrestart,onresume,onpause,onstop</span></span>。 How Android data is stored<span style="text-decoration: underline;"><span style="text-decoration: underline;">sharedpreference</span></span>File<span style="text-decoration: underline;"><span style="text-decoration: underline;">Sqlite,contentprovider</span></span>Internet. 30. When an activity is started and a new activity is performed, the callback function that needs to be returned to the activity that initiated it is<span style="text-decoration: underline;"><span style="text-decoration: underline;">Startactivityresult ()</span></span>。 31. Use the command line to create a myavd,sdk version of the 2.2,SD card is the root of the D drive, the name is scard.img, and the screen size is specified Hvga._____mksdcard 128M d:// Sdcard.imgandroid Create Avd-n avdname-t 1-c "d://sdcard" 32. The storage path of local sharedpreference in Android Data/data/package Name/shared_ prefs/<p><p></p></p><p><p>Android Face test basis (turn)</p></p></span>
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