Docsity

MCQ OF ANDROID APPS DEVELOPMENT, Study notes of Computer Science

Toggle sidebar
bg1
Android MCQ suggestions
Question 1: OOPP paradigm based on the concept of
Option 1: a) functions
Option 2: b) objects
Option 3: c) statements
Option 4: d) all
Correct : b) objects
Question 2: Class often known as
Option 1: a) signature
Option 2: b) methods
Option 3: c) all
Option 4: d) none
Correct : a) signature
Question 3: Functions often known as
Option 1: signature
Option 2: methods
Option 3: model
Option 4: none
Correct : methods
Question 4: objects have a notion of
Option 1: this
Option 2: self
Option 3: both
Option 4: none
Correct : both
Question 5: Objects can _____ with one another
Option 1: define
Option 2: interact
Option 3: initialize
Option 4: none
Correct : interact
Question 6: OOP first languages
Option 1: smalltalk
Option 2: c++
Option 3: simula
Option 4: java
Correct : simula
Question 7: Android uses
Option 1: java
Option 2: xml
Option 3: both
Option 4: none
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download MCQ OF ANDROID APPS DEVELOPMENT and more Study notes Computer Science in PDF only on Docsity!

Android MCQ suggestions

Question 1: OOPP paradigm based on the concept of Option 1: a) functions Option 2: b) objectsOption 3: c) statements Correct : b) objectsOption 4: d) all Question 2: Class often known asOption 1: a) signature Option 2: b) methods Option 3: c) allOption 4: d) none

Question 3: Functions often known asCorrect : a) signature Option 1: signatureOption 2: methods Option 3: modelOption 4: none

Question 4: objects have a notion ofCorrect : methods Option 1: this Option 2: selfOption 3: both Option 4: noneCorrect : both Question 5: Objects can _____ with one anotherOption 1: define Option 2: interactOption 3: initialize Option 4: noneCorrect : interact Question 6: OOP first languages Option 1: smalltalkOption 2: c++ Option 3: simulaOption 4: java

Question 7: Android usesCorrect : simula Option 1: javaOption 2: xml Option 3: bothOption 4: none

Question 8: Defining web pages and handling the HTTPrequests usingCorrect : both Option 1: view technologies Option 2: frameworksOption 3: both Option 4: noneCorrect : both Question 9: As a subcategory of web frameworks, view-layer frameworks often ____ with webframework Option 1: overlapOption 2: extend Option 3: inherit Option 4: noneCorrect : overlap Question 10: Java web applications areOption 1: Java Servlets. Option 2: Core JavaOption 3: JavaServer Pages Option 4: allCorrect : all Question 11: Web-based software libraries providesOption 1: user interface Option 2: view-layerOption 3: all Option 4: none Question 12: OOP Concepts areCorrect : all Option 1: InheritanceOption 2: Association Option 3: AggregationOption 4: all

Question 13: Abstraction is the concept ofCorrect : all Option 1: hiding the internal detailsOption 2: describing things in simple Option 3: both Option 4: none Correct : both Question 14: Java are Option 1: platform dependentOption 2: platform independent

Option 2: methodsOption 3: both Option 4: none Correct : both Question 20: Access modifier ____ are used for encapsulation in object oriented programming Option 1: keywords Option 2: symbolsOption 3: notations Option 4: mechanisms Correct : keywords Question 21: Access modifier Option 1: private Option 2: protectedOption 3: public Option 4: all Correct : all Question 22: Polymorphism is the concept where an object behaves _____ in different situations Option 1: identically Option 2: differentlyOption 3: intelligently Option 4: all Correct : differently Question 23: There are ___ types of polymorphism Option 1: 1 Option 2: 2Option 3: 3 Option 4: 4 Correct : 2 Question 24: Polymorphism occur in

Option 1: compile timeOption 2: runtime Option 3: both Option 4: none Correct : both Question 25: Compile time polymorphism is achieved by Option 1: operator overloadingOption 2: method overloading Option 3: both Option 4: none Correct : method overloading Question 26: Runtime polymorphism is implemented when we have __ relationship between objects Option 1: IS-AOption 2: IS-B Option 3: IS-COption 4: IS-E Correct : IS-A Question 27: Runtime polymorphism occur in Option 1: InheritanceOption 2: method overloading Option 3: bothOption 4: none Correct : Inheritance Question 28: ___ has to override the superclass method for runtime polymorphism Option 1: subclassOption 2: baseclass Option 3: bothOption 4: none Correct : subclass Question 29: Subclass has to override the ___ method for runtime polymorphism

Question 34: Inheritance is the object oriented programming concept where an object is based on another Option 1: objectOption 2: method Option 3: bothOption 4: none Correct : object Question 35: The object that is getting inherited is called Option 1: subclassOption 2: superclass Option 3: derived classOption 4: all Correct : superclass Question 36: Inheritance is the mechanism of code Option 1: recycle Option 2: reuseOption 3: optimization Option 4: none Correct : reuse Question 37: Superclass is Option 1: derived class Option 2: main classOption 3: base class Option 4: all Correct : base class Question 38: The object that inherits the superclass is called Option 1: base class Option 2: superclassOption 3: subclass Option 4: all

Correct : subclass Question 39: We use ___ keyword in java to implement inheritance Option 1: implements Option 2: extendsOption 3: both Option 4: none Correct : extends Question 40: How many class can be extends for a class Option 1: 1 Option 2: 2Option 3: multiple Option 4: all Correct : 1 Question 41: How many class can be implements for a class Option 1: 1Option 2: 2 Option 3: multiple Option 4: all Correct : all Question 42: Association is the OOPS concept to define the ____ between objects Option 1: accessOption 2: relationship Option 3: bothOption 4: none

Correct : relationship Question 43: Association defines the ____ between objects Option 1: simplicityOption 2: multiplicity Option 3: accessOption 4: all

Option 3: specialOption 4: all

Correct : more restrictive Question 49: Data type specifies Option 1: sizeOption 2: type Option 3: bothOption 4: none

Correct : both Question 50: Java language is ____ in its data types Option 1: mediumOption 2: same as C++ Option 3: richOption 4: poor Correct : rich Question 51: Data types in Java are classified into ___ types Option 1: 2Option 2: 3 Option 3: 4Option 4: 8 Correct : 2 Question 52: Primitive type— which include Option 1: Integer Option 2: Character Option 3: BooleanOption 4: all Correct : all Question 53: Array is a ___ type Option 1: Primitive

Option 2: Non-primitiveOption 3: Basic Option 4: none Correct : Non-primitive Question 54: Non-primitive, which is not included Option 1: Classes Option 2: InterfacesOption 3: Arrays Option 4: none Correct : none Question 55: An integer Option 1: 0 Option 2: -2048Option 3: 10 Option 4: all Correct : all Question 56: String is basically an _____ that represents sequence of char value Option 1: variable Option 2: objectsOption 3: both Option 4: none Correct : object Question 57: ______ type is a double-precision 64-bit IEEE 754 floating point Option 1: float data Option 2: double dataOption 3: long float data Option 4: none Correct : double data Question 58: Data type should never be used for ____ such as currency

Option 1: break Option 2: control statement Option 3: continueOption 4: none Correct : control statement Question 64: “if” statement in Java works _____ like in most programming languages. Option 1: little bit same Option 2: exactly Option 3: differentlyOption 4: none Correct : exactly Question 65: Using “if” you can choose to execute a specific block of code when a predefined condition is ____ Option 1: 1Option 2: met Option 3: TRUEOption 4: all

Correct : all Question 66: Java provides _____ repetition statements/loop statements Option 1: 2Option 2: 3 Option 3: 4Option 4: 5 Correct : 3 Question 67: Repetitively performing a set of statements as long as the continuation condition remainstrue, using

Option 1: for Option 2: do .. whileOption 3: both Option 4: none

Correct : for Question 68: looping statements are Option 1: for Option 2: whileOption 3: do...while Option 4: none Correct : none Question 69: for statements perform the repetition Option 1: zero Option 2: oneOption 3: infinite Option 4: all Correct : all Question 70: while’ statements perform the repetition Option 1: zeroOption 2: always one Option 3: always mone than one Option 4: all Correct : zero Question 71: ‘do...while’ loop is ____ Option 1: slightly differentOption 2: same as while Option 3: same as forOption 4: none

Correct : slightly different Question 72: A ___ statement allows a variable to be tested for equality against a list of values Option 1: forOption 2: while Option 3: ifOption 4: switch

Option 4: none Correct : jump to the next iteration Question 78: Method is a collection of ______ that are grouped together to perform an operation. Option 1: variables Option 2: classOption 3: models Option 4: all Correct : statements Question 79: Constructed data types you define yourself using Option 1: structs Option 2: unionsOption 3: both Option 4: none Correct : both Question 80: A typedef can be used to assign a ____ to a specific type Option 1: variable Option 2: nameOption 3: constant Option 4: all Correct : name Question 81: What are the functionalities in asyncTask in android? Option 1: a. onPreExecution()Option 2: b.doInBackground() Option 3: c.onProgressUpdate() Option 4: d.onPostExecution() Correct : d Question 82: What type of language java is? Option 1: a.weaklyOption 2: b.strongly

Option 3: c.modarateOption 4: d.none

Correct : b Question 83: How many primtive datatype in android? Option 1: a.6Option 2: b. Option 3: c.8Option 4: d.

Correct : c Question 84: In java short, long , int all are called……….? Option 1: a.signedOption 2: b.unsigned Option 3: c.bothOption 4: d.none Correct : a Question 85: What us the size of int in android? Option 1: a.16 bitsOption 2: b.32 bits Option 3: c.64 bitsOption 4: d.depends on situation Correct : b Question 86: What is the smallest int type? Option 1: a.short Option 2: b.byte Option 3: c.bitOption 4: d.none Correct : b Question 87: Which type autometic conversion will possible? Option 1: a.short to int

Option 1: a.int [ ] a = new int [3]Option 2: b.int a [ ] [ ] = new int [3] [ Option 3: c.int [ ] [ ] a = new int [3] [ ] Option 4: d.int [ ] [ ] a = new int [ ] [3] Correct : d Question 93:  Size of an integer can be……? Option 1: a.-2^31 to 2^31-1Option 2: b. 0 to -2^ Option 3: c.-2^8 to 2^8- Option 4: d. -2^15 to 2^15- Correct : a Question 94: For which of the following data types the ValueOf() method is NOT overloaded in the stringclass?

Option 1: a.Float Option 2: b.BooleanOption 3: c.Object Option 4: d.none Correct : d Question 95: Which method is handled Requests from Content Provider class? Option 1: a.on View Option 2: b.onSelectOption 3: c.onClick Option 4: d.ContentResolve Correct : d Question 96: What Android component that manages appearance and format on screen? Option 1: a.fragment Option 2: b.intentOption 3: c.view Option 4: d.view Correct : d

Question 97: Android library that provides access to UI pre-built elements such as buttons, lists, viewsetc. is

Option 1: a.android.textOption 2: b.android.os Option 3: c.android.viewOption 4: d.android.webkit Correct : d Question 98: A type of service provided by android that shows messages and alerts to user is….? Option 1: a.Content ProvidersOption 2: b.View System Option 3: c.Notifications ManagerOption 4: d.Activity Manager Correct : c Question 99: Android is licensed under which open source licensing license? Option 1: a.Gnu’s GPL Option 2: b.Apache/MITOption 3: c.OSS Option 4: d.Sourceforge Correct : b Question 100: Although most people’s first thought when they think of Android isGoogle, Android is not actually owned by Google. Who owns the Android platform? Option 1: a.Oracle TechnologyOption 2: b.Dalvik Option 3: c.Open Handset AllianceOption 4: d.none

Correct : c