An activity can be thought of as corresponding to what?
1.A Java project
2.A Java class
3.A method call
4.An object field
Android is based on Linux for the following reason.
1.Security
2.Portability
3.Networking
4.All of the above
DVM is developed by
1. Linus Torvald
2.Dennis Ritchie
3. Dan Bornstein
4.None of These
In the following query, what does "person_id stands for? CREATE TABLE person (person_ id SMALLINT UNSIGNED, fname VARCHAR(20), lname VARCHAR(20) , CONSTRAINT pk_person PRIMARY KEY (person_id));
1.Normal attribute of the table
2.Super key
3.Composite key
4.Primary key
JUnit test files are written in files with which file extension?
1.junit
2.test
3.java
4.unit
The requests from Content Provider class is handled by method
1.onCreate
2.onSelect
3. onClick
4.ContentResolver
What is the name of the program that converts Java byte code into Dalvik byte code?
1.Android Interpretive Compiler (AIC)
2.Dalvik Converter
3.Dex compiler
4.Mobile Interpretive Compiler (MIC)
What is the output of the given code? boolean_1 = 77 less than 78 puts(boolean_1)
1.Nill
2.true
3.False
4.Error
What will be the output of the following? "Eric".irreverse
1.Eric
2.cir
3.undefined method
4.None of the mentioned
Which among these are NOT a part of Android's native libraries?
1.Webkit
2.Dalvik
3.OpenGL
4. SQLite
Which command is used for taking "server side help in Mysql command line tool
1./hB
2./c
3. /e
4.None of the mentioned
Which command is used on Mysql command line tool to return to window command shell?
1.exit
2.exit;
3.exit()
4.exit();
Which company developed android?
1.Apple
2.Google
3.Android Inc
4.Nokia
Which one is NOT related to fragment class?
1. DialogFragment
2.ListFragment
3. PreferenceFragment
4.CursorFragment
Why do we use =begin and =end?
1.To mark the start and end of multiline comment
2.To comment multiple lines
3.To avoid the use of # again and again
4.All of the mentioned
A ___________ makes a specific set of the application data available to other applications
1.Content provider
2.Broadcast receivers
3.Intent
4.None of these
Android releases since 1.5 have been given nicknames derived from how?
1.Adjective and strange animal
2.food
3.Something that starts w/ 'A' -> Something that starts w/ 'B'"¦
4.American states
Definition of Loader?
1. loaders make it easy to asynchronously load data in an activity or fragment
2.loaders make it easy to synchronously load data in an activity or fragment
3.loaders does not make it easy to asynchronously load data in an activity or fragment
4.None of the above
Difference between android api and google api?
1.The Google API includes Google Maps and other Google-specific libraries. The Android one only includes core Android libraries
2.The google API one only includes core android libraries. The Android includes Google Maps and other Google-specific libraries
3.None of the above
4.All of the above
During an Activity life-cycle, what is the first callback method invoked by the system?
1.onStop()
2.onStart()
3. onCreate()
4.onRestore()
DVM is developed by
1.Linus Torvald
2.Dennis Ritchie
3.Dan Bornstein
4.None of these
In the following query "person_id can be SELECT person_id, fname,l name, Birth_data FROM person WHERE person_id=1;
1.Only Primary Key
2.Primary Key or any other Attribute
3.Only Attribute but not a primary Key
4.None of the mentioned
INSERTÂ is same as "UPDATEÂ ?
1.NO
2.YES
3.May
4.None of the mentioned
Is "Datetime and "Timestamp are same data type?
1.Yes
2.No
3.Depends
4.None of the mentioned
JUnit Suites are independent of the capability of the ______ system.
1.Run
2.Class
3.Test
4.Build
The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is
1.android.text
2.android.os
3.android.view
4.android.webkit
The Suite object is a _____ that executes all of the @Test annotated methods in the test class.
1.Result
2.Folder ConfigurationTest
3.File ConfigurationTest
4.Runner
To run the file TestClass.class from the command line, we have to type what?
1.java TestClass
2.javac TestClass
3. java org.junit.runner.JUnitCore TestClass
4.org.junit.runner.JUnitCore TestClass
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
1. findViewByReference(int id);
2.findViewById(int id)
3.retrieveResourceById(int id)
4.findViewById(String id)
What are fixtures in JUnit?
1.Objects that specify when to run a test
2.Fixed state of a set of objects used as a baseline for running tests
3.Bundle of few test cases run together
4.Date objects
What are the indirect Direct subclasses of Services?
1. RecognitionService
2.RemoteViewsService
3.SpellCheckerService
4. InputMethodService
What does the fail() method do in JUnit?
1.Throws an assertion error unconditionally
2.Calls the default constructor
3.Outputs the message Fail"Â to the console
4.Pauses the test for 1 second
What does the src folder contain?
1. Image and icon files
2.XML resource files
3.The application manifest file
4.Java source code files
What is the output of the given code? "RubyÂ.length #to find the length of given string
1.4 to find the length of given string
2.4
3. To find the length of given string
4.Ruby
What is the output of the given code? print "Hey" puts "Everyone!" print "We are learning Ruby"
1.Error
2.Hey everyone we are learning Ruby.
3.Hey everyone
4.Hey Everyone
What is the purpose of assertArrayEquals("messageÂ, A, B)?
1.Checks that message"Â is in both A and B
2.Checks that message"Â is in A but not B
3.Checks that message"Â is in B but not A
4.Asserts the equality of the A and B arrays
What type of object is returned on completion of a test?
1.org.junit.runner.Result
2.org.junit.runner.Complete
3.org.junit.runner.Outcome
4.org.junit.runner.Object
What was the first phone released that ran the Android OS?
1.Google gPhone
2.T-Mobile G1
3.Motorola Droid
4.HTC Hero
What year was the Open Handset Alliance announced?
1.2005
2.2006
3.2007
4. 2008
When contentProvider would be activated
1.Using Intent
2.Using SQLite
3.Using ContentResolver
4.None of these
When contentProvider would be activated
1.Using Intent
2.Using SQLite
3.Using ContentResolver
4.None of these
When developing for the Android OS, Java bytecode is compiled into what?
1.Java source code
2.Dalvik application code
3. Dalvik byte code
4.C source code
When is the tearDown() method called in JUnit?
1.After all the tests have run
2.At the beginning of every test case
3.After each test case has run
4.At the beginning of the first test case
Which among the following are part of "Application" layer of Android Architecture
1.Contacts
2.Browser
3.Phone
4.All of these
Which among these are NOT a part of Android's native libraries?
1.Webkit
2.Dalvik
3.OpenGL
4. SQLite
Which Clause is used to select a particular row from the set of row in an existing table?
1.WHERE
2.FROM
3.ALTER
4.None of the mentioned
Which command is used for the table definition in Mysql?
1.DESC table_name;
2.DESC table_name
3.DESC
4.None of the mentioned
Which data type is more suitable for storing "documents in Mysql?
1.Varchar
2.Longtext
3.Mediumtext
4.Either a or b
Which of the following are valid floating point literal?
1.5
2.2
3.0.5
4.All of the mentioned
Which one is not a nickname of a version of Andriod?
1.cupcake
2.Gingerbread
3.Honeycomb
4.Muffin
Why can not we use quotation marks (' or ") with boolean?
1.It indicates that we are talking about a string
2.It indicates that we are assining a value
3.It indicates that that we are replacing boolean data type with string data type
4.None of the mentioned