Engineering/Engineering Computer Science 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. Civil Engineering MCQS -Building Materials Section 1
  2. Civil Engineering MCQS -Building Materials Section 2
  3. Civil Engineering MCQS -Building Materials Section 3
  4. Civil Engineering MCQS -Building Materials Section 4
  5. Mechanical Engineering Engineering MCQS -Mechanics Section-1
  6. Mechanical Engineering Engineering MCQS -Mechanics Section-2
  7. Civil Engineering MCQS -Building Materials Section 5
  8. Civil Engineering MCQS -Building Materials Section 6
  9. Civil Engineering MCQS -Building Materials Section 7
  10. Civil Engineering MCQS -Building Materials Section 8
  11. Civil Engineering MCQS-Surveying Section 1
  12. Civil Engineering MCQS-Surveying Section 2
  13. Civil Engineering MCQS-Surveying Section 3
  14. Civil Engineering MCQS-Surveying Section 4
  15. Civil Engineering MCQS-Surveying Section 5
  16. Civil Engineering MCQS-Surveying Section 6
  17. Civil Engineering MCQS-Surveying Section 7
  18. Civil Engineering MCQS-Surveying Section 8
  19. Civil Engineering (MCQS) Soil Mechanics and Foundation Engineering SET 1
  20. Civil Engineering (MCQS) Soil Mechanics and Foundation Engineering SET 2
  21. Civil Engineering (MCQS) Soil Mechanics and Foundation Engineering SET 3
  22. Civil Engineering (MCQS) Soil Mechanics and Foundation Engineering SET 4
  23. Civil Engineering (MCQS) Soil Mechanics and Foundation Engineering SET 5
  24. Civil Engineering (MCQS) Soil Mechanics and Foundation Engineering SET 6
  25. Civil Engineering [MCQS] Applied Mechanics Section -1
  26. Civil Engineering [MCQS] Applied Mechanics Section -2
  27. Civil Engineering [MCQS] Applied Mechanics Section -3
  28. Civil Engineering [MCQS] Applied Mechanics Section -4
  29. Civil Engineering [MCQS] Applied Mechanics Section -5
  30. Civil Engineering -MCQS-Hydraulics Section 1
  31. Civil Engineering -MCQS-Hydraulics Section 2
  32. Civil Engineering -MCQS-Hydraulics Section 3
  33. Civil Engineering -MCQS-Hydraulics Section 4
  34. Civil Engineering -MCQS-Hydraulics Section 5
  35. Civil Engineering -MCQS-Hydraulics Section 6
  36. Civil Engineering -MCQS-Waste Water Engineering - Section 1
  37. Civil Engineering -MCQS-Waste Water Engineering - Section 2
  38. Civil Engineering -MCQS-Waste Water Engineering - Section 3
  39. Civil -MCQ RCC Structures Design - Section 1
  40. Civil -MCQ RCC Structures Design - Section 2
  41. Civil -MCQ RCC Structures Design - Section 3
  42. Engineering Electrical Engineering Dc Motors part1
  43. Engineering Electrical Engineering Dc Motors part 2
  44. Engineering Electrical Engineering Dc Motors part3
  45. Electric Drives MCQ Questions and Answers
  46. Automobile Engineering MCQ Set 01
  47. Automobile Engineering MCQ Set 02
  48. Automobile Engineering MCQ Set 03
  49. Compressors, Gas Turbines and Jet Engines MCQ Practice Test - Set 01
  50. Compressors, Gas Turbines and Jet Engines MCQ Practice Test - Set 02
  51. Compressors, Gas Turbines and Jet Engines MCQ Practice Test - Set 03
  52. Compressors, Gas Turbines and Jet Engines MCQ Practice Test - Set 04
  53. Machine Design Mcq set 01
  54. Machine Design Mcq set 02
  55. Machine Design Mcq set 3
  56. Mechanical Engineering Design MCQ SET 03
  57. Mechanical Engineering Design MCQ SET 04
  58. Advanced Surveying mcq set 1
  59. Automobile Engineering MCQ
  60. Basic Civil Engineering Mcq
  61. Microwave Engineering Mcq Set 1
  62. Microwave Engineering Mcq Set 2
  63. Microwave Engineering Mcq Set 3
  64. Mechanical Engineering Basic Mcq Questions Set 1
  65. Mechanical Engineering Basic Mcq Questions Set 2
  66. Basic Chemical Engineering MCQ
  67. Chemical Engineering MCQ Question Set 1
  68. Chemical Engineering Mcq Question Set 2
  69. Chemical Engineering Mcq Question Set 3
  70. Chemical Engineering Mcq Question Set 4
  71. Chemical Engineering Mcq Question Set 5
  72. Chemical Engineering Mcq Question Set 6
  73. Chemical Engineering Mcq Question Set 7
  74. Chemical Engineering Mcq Question Set 8
  75. Civil Engineering Basic Set 1
  76. Chemical Engineering Mcq Question Set 9
  77. Chemical Engineering Mcq Question Set 10
  78. Civil Engineering Basic Set 2
  79. Chemical Engineering Mcq Question Set 11
  80. Chemical Engineering Mcq Question Set 12
  81. Engineering Electrical Engineering
  82. Chemical Engineering Mcq Question Set 14
  83. Chemical Engineering Mcq Question Set 15
  84. Chemical Engineering Mcq Question Set 16
  85. Chemical Engineering Mcq Question Set 17
  86. Engineering Electronics & Communication Engineering
  87. Engineering Computer Science & Engineering
  88. Computer Science & Engineering Computer Networks Mcq
  89. Environmental Engineering MCQ
  90. Microwave Engineering ECE Mcq
  91. Electrical Engineering Mcq
  92. Engineering Branch Wise MCQs
  93. Software Engineering Multiple Choice Questions
  94. Traffic Engineering MCQ
  95. Highway Engineering MCQs
  96. Engineering Thermodynamics MCQs
  97. Materials and Processes -Notch Toughness
  98. Software Engineering Multiple Choice Question Set 1
  99. Software Engineering Multiple Choice Question Set 2
  100. Software Engineering Multiple Choice Question Set 3
  101. Software Engineering Multiple Choice Question Set 4
  102. Hydraulic Machines MCQs Set-1
  103. Hydraulic Machines MCQs Set-2
  104. Hydraulic Machines MCQs Set-3
  105. Hydraulic Machines MCQs Set-4
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!