Engineering/ Sample Test,Sample questions

Question:
 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

Posted Date:-2022-03-19 04:53:22


Question:
 Android is based on Linux for the following reason.

1.Security

2.Portability

3.Networking

4.All of the above

Posted Date:-2022-03-19 03:18:45


Question:
 DVM is developed by

1. Linus Torvald

2.Dennis Ritchie

3. Dan Bornstein

4.None of These

Posted Date:-2022-03-19 04:54:14


Question:
 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

Posted Date:-2022-03-19 01:37:38


Question:
 JUnit test files are written in files with which file extension?

1.junit

2.test

3.java

4.unit

Posted Date:-2022-03-19 01:25:19


Question:
 The requests from Content Provider class is handled by method

1.onCreate

2.onSelect

3. onClick

4.ContentResolver

Posted Date:-2022-03-19 03:09:41


Question:
 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)

Posted Date:-2022-03-19 03:16:53


Question:
 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

Posted Date:-2022-03-19 02:06:05


Question:
 What will be the output of the following?

"Eric".irreverse

1.Eric

2.cir

3.undefined method

4.None of the mentioned

Posted Date:-2022-03-19 02:09:38


Question:
 Which among these are NOT a part of Android's native libraries?

1.Webkit

2.Dalvik

3.OpenGL

4. SQLite

Posted Date:-2022-03-19 02:13:03


Question:
 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

Posted Date:-2022-03-19 01:58:37


Question:
 Which command is used on Mysql command line tool to return to window command shell?

1.exit

2.exit;

3.exit()

4.exit();

Posted Date:-2022-03-19 01:57:53


Question:
 Which company developed android?

1.Apple

2.Google

3.Android Inc

4.Nokia

Posted Date:-2022-03-19 03:20:15


Question:
 Which one is NOT related to fragment class?

1. DialogFragment

2.ListFragment

3. PreferenceFragment

4.CursorFragment

Posted Date:-2022-03-19 02:11:33


Question:
 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

Posted Date:-2022-03-19 02:03:06


Question:
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

Posted Date:-2022-03-19 02:12:18


Question:
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

Posted Date:-2022-03-19 03:13:29


Question:
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

Posted Date:-2022-03-19 03:17:58


Question:
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

Posted Date:-2022-03-19 03:24:54


Question:
During an Activity life-cycle, what is the first callback method invoked by the system?

1.onStop()

2.onStart()

3. onCreate()

4.onRestore()

Posted Date:-2022-03-19 02:16:45


Question:
DVM is developed by

1.Linus Torvald

2.Dennis Ritchie

3.Dan Bornstein

4.None of these

Posted Date:-2022-03-19 03:36:22


Question:
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

Posted Date:-2022-03-19 01:54:48


Question:
INSERT is same as "UPDATE ?

1.NO

2.YES

3.May

4.None of the mentioned

Posted Date:-2022-03-19 01:56:19


Question:
Is "Datetime and "Timestamp are same data type?

1.Yes

2.No

3.Depends

4.None of the mentioned

Posted Date:-2022-03-19 01:35:12


Question:
JUnit Suites are independent of the capability of the ______ system.

1.Run

2.Class

3.Test

4.Build

Posted Date:-2022-03-19 01:21:21


Question:
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

Posted Date:-2022-03-19 03:15:12


Question:
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

Posted Date:-2022-03-19 01:20:14


Question:
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

Posted Date:-2022-03-19 01:27:07


Question:
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)

Posted Date:-2022-03-19 03:08:49


Question:
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

Posted Date:-2022-03-19 01:23:01


Question:
What are the indirect Direct subclasses of Services?

1. RecognitionService

2.RemoteViewsService

3.SpellCheckerService

4. InputMethodService

Posted Date:-2022-03-19 03:14:19


Question:
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

Posted Date:-2022-03-19 01:31:31


Question:
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

Posted Date:-2022-03-19 03:12:32


Question:
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

Posted Date:-2022-03-19 02:02:04


Question:
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

Posted Date:-2022-03-19 02:07:54


Question:
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

Posted Date:-2022-03-19 01:24:38


Question:
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

Posted Date:-2022-03-19 01:26:14


Question:
What was the first phone released that ran the Android OS?

1.Google gPhone

2.T-Mobile G1

3.Motorola Droid

4.HTC Hero

Posted Date:-2022-03-19 02:10:51


Question:
What year was the Open Handset Alliance announced?

1.2005

2.2006

3.2007

4. 2008

Posted Date:-2022-03-19 03:10:14


Question:
When contentProvider would be activated

1.Using Intent

2.Using SQLite

3.Using ContentResolver

4.None of these

Posted Date:-2022-03-19 03:23:39


Question:
When contentProvider would be activated

1.Using Intent

2.Using SQLite

3.Using ContentResolver

4.None of these

Posted Date:-2022-03-19 04:19:47


Question:
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

Posted Date:-2022-03-19 03:25:45


Question:
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

Posted Date:-2022-03-19 01:30:15


Question:
Which among the following are part of "Application" layer of Android Architecture

1.Contacts

2.Browser

3.Phone

4.All of these

Posted Date:-2022-03-19 03:19:33


Question:
Which among these are NOT a part of Android's native libraries?

1.Webkit

2.Dalvik

3.OpenGL

4. SQLite

Posted Date:-2022-03-19 03:11:03


Question:
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

Posted Date:-2022-03-19 01:38:32


Question:
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

Posted Date:-2022-03-19 01:57:07


Question:
Which data type is more suitable for storing "documents in Mysql?

1.Varchar

2.Longtext

3.Mediumtext

4.Either a or b

Posted Date:-2022-03-19 01:34:21


Question:
Which of the following are valid floating point literal?

1.5

2.2

3.0.5

4.All of the mentioned

Posted Date:-2022-03-19 02:00:22


Question:
Which one is not a nickname of a version of Andriod?

1.cupcake

2.Gingerbread

3.Honeycomb

4.Muffin

Posted Date:-2022-03-19 03:15:49


Question:
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

Posted Date:-2022-03-19 02:04:28


More MCQS

  1. help4info.com
  2. help4info.com
  3. help4info.com
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!