Skip to content

Module 6 quiz on Object Oriented Programing concepts :Java for Android (Android App Development Specialization) Answers 2025

1. Question 1 – An object is

  • ✔️ The grouping together of data and behavior to create a single entity

  • ❌ The blue print for creating classes

  • ❌ A way to hide implementation details from the user

  • ❌ A sequence of characters


2. Question 2 – A typical object-oriented program

  • ✔️ uses objects to perform most of its useful behavior.

  • ❌ uses objects to model ints, chars, booleans

  • ❌ must consist of at least four classes

  • ❌ uses methods and primitive data types to perform most behavior


3. Question 3 – Example of abstraction

  • ✔️ supplying a Quick Start guide with a digital camera.

  • ❌ only selling to experienced users

  • ❌ supplying technical drawings

  • ❌ supplying batteries


4. Question 4 – Instance of the City class

  • ✔️ the city of Philadelphia.

  • ❌ the plans for a city

  • ❌ the methods

  • ❌ the variables


5. Question 5 – A class file is (select all that apply)

  • ❌ a file containing a single program or module

  • ✔️ a template or blueprint for an object

  • ❌ a collection of objects

  • ❌ a collection of keywords


6. Question 6 – A String object is (select all that apply)

  • ❌ a primitive data type

  • ✔️ a reference to a memory location where data is stored

  • ✔️ a sequence of characters

  • ✔️ similar to primitive data types in some respects


7. Question 7 – Statements that compile

  • out.println(str1.concat(18.9)); (double not allowed in concat)

  • out.println("Hello kids" - "kids");

  • ✔️ out.println("Hello" + " programmers!");

  • ✔️ out.println(str1 == str2); (compiles, even if logic is wrong)

  • ✔️ out.println(str1.equals(str2));


8. Question 8 – Create the string “herald”

Correct option:

  • ✔️ str2 = str1.substring(0,2); str2 = str2 + "ra"; str2 = str2.concat(str1.substring(2,4));

Other options do not produce “herald” correctly.


MCQ Answer Summary Table

Q.No Correct Option(s) Answer Text
1 ✔️ Option 1 The grouping together of data & behavior
2 ✔️ Option 2 Uses objects to perform most useful behavior
3 ✔️ Option 3 Supplying a Quick Start guide
4 ✔️ Option 2 The city of Philadelphia
5 ✔️ Option 2 A class file is a blueprint/template
6 ✔️ Options 2, 3, 4 Reference to memory, sequence of characters, similar to primitive types
7 ✔️ Options 3, 4, 5 "Hello" + " programmers!", str1 == str2, str1.equals(str2)
8 ✔️ Option 3 Correct way to construct “herald”