Android Face test-Choose fill in the blanks (a)

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

First, the choice question:

1. which of the following statements is correct about memory recycling? (b)

A, the programmer must create a thread to free up memory
B, Memory Recovery program is responsible for releasing useless memory
C, Memory recycle program allows the programmer to free memory directly
D, Memory recycle program can free memory objects at specified time

2, The following exception is belong to the runtime Exception (ABCD) (multi-Select)

A, ArithmeticException
B, IllegalArgumentException
C, NullPointerException
D, Bufferunderflowexception

3,Math.Round (11.5) equals how much (). Math.Round (-11.5) equals how much (c)

A, 11,-11 B, 11,-12 C, 12,-11 D, 12, 12

4, The following program segment output is: (b)
void Complicatedexpression_r () {
int x=20, y=30;
Boolean B;
b=x<50&&y<60| | X<50&&y<-60

X-y= "" >60| | X<-50

Y-br= "" style= "Font-size:14px;font-style:normal;font-weight:700;font-family:tahoma,;" microsoft= "" yahei= "" simsuncolor= ""/> System.out.println (b);
}
A, True B, False C, 1 D, 011.activity5.

5, the operation of some resources and state preservation, it is best to save in the life cycle of which function to do (d)

A, OnPause () B, OnCreate () C, Onresume () D, OnStart ()

6,Intent when passing data, the following data types which can be passed (ABCD) (multi-Select)

A, Serializable B, Charsequence C, parcelable D, Bundle

7. the following functions of intent in Android are (c)

A. Implement data sharing between applications
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
C, can achieve the interface between the switch, can contain action and action data, connecting the four components of the link
D. Work with an application integrity

8. The following advantages of the SAX parsing xml file are (b)

A, the entire document tree in memory, easy to operate, to support the deletion, modification, rearrangement and many other functions
B, do not need to transfer the entire document in advance, occupy less resources
C, the entire document into memory, wasting time and space
D, not long-term resident in memory, data is not persistent, after the event, if the data is not saved, the data will disappear

9 . The method that may need to be rewritten when using menu in Android is (AC). (multiple selection)

A, Oncreateoptionsmenu ()
B, Oncreatemenu ()
C, onoptionsitemselected ()
D, onitemselected ()

10 . Run the following T-SQL statement in SQL Server Management Studio with the output value (c). SELECT @ @IDENTITY
A, may be 0.1
B, may be 3
C, impossible for-100
D, must be 0

11.run the following T-SQL statement in SQL Server 2005, assuming that there is more than one row of data in the sales table, and the result after executing the query is (d). BEGIN TRANSACTION A
Update SALES Set qty=30 WHERE qty<30 br= "" Style= "font-size:14px;font-style:normal;font-weight:400;font-family: Tahoma,; " microsoft= "" yahei= "" simsuncolor= ""/> BEGIN TRANSACTION B
Update SALES Set qty=40 whereqty<40 br= "" Style= "font-size:14px;font-style:normal;font-weight:400;font-family: Tahoma,; " microsoft= "" yahei= "" simsuncolor= ""/> Update SALES Set qty=50whereqty<50 br= "" style= "FONT-SIZE:14PX; Font-style:normal;font-weight:400;font-family:tahoma,; " microsoft= "" yahei= "" simsuncolor= ""/> Update SALES Set qty=60whereqty<60 br= "" style= "FONT-SIZE:14PX; Font-style:normal;font-weight:400;font-family:tahoma,; " microsoft= "" yahei= "" simsuncolor= ""/> COMMIT transactionb
COMMIT TRANSACTION A
A, the Qty column minimum value is greater than or equal to 30 in the sales table
B, the Qty column in the Sales table has a minimum value greater than or equal to 40
The data in the Qty column in the Sales table is all 50
D, the Qty column in the Sales table has a minimum value greater than or equal to 60

12. when using Sqliteopenhelper as an auxiliary class in Android, you can generate a database, and you can manage the database version (AB)

A, Getwriteabledatabase ()
B, Getreadabledatabase ()
C, Getdatabase ()
D, Getabledatabase ()

13,Android about the service life cycle of OnCreate () and OnStart () is correct (AD) (Multi-choice)

A. Call the OnCreate () and OnStart () methods when you first start
B, the OnCreate () method is only called when the first boot
C, if the service has been started, will call the OnCreate () and the OnStart () method successively
D. If the service is started, only the OnStart () method is executed, not the OnCreate () method

14, the following is the Glsurfaceview attribute is (ABC) (Multi-Select)

A, manage a surface, this surface is a special memory, can be directly formatted to the Android view
The view.
B. Manage an EGL display that allows OpenGL to render content onto the surface above.
C, let the renderer work in a separate thread, separate from the UI thread.
D, can be directly from memory or DMA and other hardware interface to obtain image data

15, the following in the Androidmanifest.xml file registration Broadcastreceiver Way correct (a) A, android:name= " Android.provider.action.NewBroad "/<
B, android:name= "Android.provider.action.NewBroad"/<
C, android:name= "Android.provider.action.NewBroad"/<
D, android:name= "Android.provider.action.NewBroad"/<

16, about the Contenvalues class is correct is (a)

A, he and Hashtable more similar, is also responsible for storing some name value pairs, but he stored the name value of the
The name is of type string, and the value is the base type
B, he and Hashtable more similar, is also responsible for storing some name value pairs, but he stored the name value of the
The name is any type, and the value is the base type
C, he and Hashtable more similar, is also responsible for storing some name value pairs, but he stored the name value of the
Name, which can be null, and the value is a string type
D, he and Hashtable more similar, but also responsible for storing some name value pairs, but he stored the name value of the pair
is of type string, and the value is string type

17, We all know that Hanlder is a thread and activity communication Bridge, if the thread is improperly handled, your machine will become slower, then the method of thread destruction is (a)

A, OnDestroy ()
B, OnClear ()
C, OnFinish ()
D, OnStop ()

18. The following method of exiting the activity error is (c)

A, Finish ()
B, throw exception forced exit
C, System.exit ()
D, OnStop ()

19. The following categories of animation belong to Android (AB) (multiple)

A, Tween B, Frame C, Draw D, Animation

20, about the process of Android DVM and the process of Linux, the application process is said to be correct (d)

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

21.What is the role of the assets directory below the Android Project project (b)

A. Place the image resource that you applied to.
B, the main placement of multimedia and other data files
C, place string, color, array and other constant data
D, put some layout files corresponding to the UI, all XML files

22, about the Res/raw catalogue is correct is (a)

A, here the file is intact stored on the device will not be converted to binary format
B, here the file is intact stored on the device will be converted to binary format

C, the files here are eventually stored in a binary format in the specified package
D, the files here will not eventually be stored in a binary format in the specified package

23. The following understanding of the Android NDK is correct (ABCD)

A, the NDK is a collection of a series of tools
B, the NDK provides a stable, functionally limited API header file declaration.
C, so that "java+c" the development of the way finally become a positive, officially supported the development of the way
D, NDK will be the beginning of Android platform support C development

24.

25.

26.

27.

28.

29.

30.

31.

32.

33.

34.

Second, the choice question:

1. The four layouts commonly used in Android are Framlayout,linenarlayout,relativelayout and Tablelayout.

2, android of the four components are activiey,service,broadcast and contentprovide.

3. The objectinputstream and objectoutputstream classes in the Java.io package are primarily used to read and write objects.

4,the implementation of the service in Android is : StartService and Bindservice.

5,activity is generally overloaded 7 methods to maintain its life cycle, in addition to onCreate (), OnStart (), Ondestory and Onrestart,onresume,onpause, OnStop

6, theway of data storage of Android sharedpreference, file,Sqlite,contentprovider, network.

7 . 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 Startactivityresult ().

8, Use the command line to create a name MYAVD,SDK version of the 2.2,SD card is the root of the D drive, the name is Scard.img, and specify the screen size HVGA. _ android Create Avd-tandroid-8-n myavd-c d:/avd/scard.img--skin 480*320.

The ID of the SDK version is available through the Android list targets to see the corresponding IDs for each version

9, The result of the program operation is: _____good and GBC__________.

public class example{
String Str=new string ("good");
Char[]ch={' A ', ' B ', ' C '};
public static void Main (String args[]) {
Example ex=new Example ();
Ex.change (ex.str,ex.ch);
System.out.print (ex.str+ "and");
Sytem.out.print (ex.ch);
}
public void Change (String Str,char ch[]) {
str= "Test OK";
Ch[0]= ' G ';
}
}

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

Android Face test-Choose fill in the blanks (a)

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.