Your browser does not support JavaScript!

Object Oriented Programming

Showing 1-75 of 155 answers

A class can be made static only if it is _______________?
  • Nested class Correct
  • Static class
  • Nested methods
  • Static methods
A class can have multiple Static blocks, which will execute in the same sequence in which they have been written into the program.
  • True Correct
  • False
A class derived from the abstract class must implement all those methods that are declared as abstract in the parent class.
  • True Correct
  • False
A class that is declared using abstract keyword.
  • Child class
  • Abstract class Correct
  • Parent class
  • Concrete class
A class which is not abstract is referred as.
  • Child class
  • Parent class
  • Abstract class
  • Concrete class Correct
A constructor can be declared as final.
  • False Correct
  • True
A final class can be inherited.
  • True
  • False Correct
A final method cannot be overridden.
  • False
  • True Correct
A final variable that is not initialized at the time of declaration is known as _______________.
  • Global variable
  • Local variable
  • Final variable
  • Blank final variable Correct
A Hash can represent either a directory or a file which is the core of the Java.nio package.
  • True
  • False Correct
A popular general-purpose programming language and computing platform. It is fast, reliable, and secure.
  • Protected
  • No Modifier Correct
  • Public
  • Private
Abstract method has no body.
  • True Correct
  • False
ALGOL 68 programming language was released in 1968.
  • True Correct
  • False
All programming languages ends each of your statements with a semicolon (;).
  • True
  • False Correct
All variables declared in an interface are by default final.
  • True Correct
  • False
Allows developers to create Java programs that can be executed and run by the JVM and JRE.
  • J2SE
  • JRE
  • JVM
  • JDK Correct
An abstract class can be instantiated.
  • False Correct
  • True
An abstract class has no use until unless it is extended by some other class.
  • False
  • True Correct
An abstract class must be extended and in a same way abstract method must be overridden.
  • True Correct
  • False
An interface can implement another interface
  • False Correct
  • True
ArrayList and HashMap are classes that allows you to manage ordered and unordered sets of data.
  • True Correct
  • False
Attributes and methods with the access modifier protected can be accessed within your class, by all classes within the same package, and by all subclasses within the same or other packages.
  • Private
  • No Modifier
  • Public
  • Protected Correct
Class that implements any interface must implement all the methods of that interface, else the class should be declared abstract.
  • False Correct
  • True
Compiling is the process of a compiler going through the source code and creating a separate file that contains the machine code or the executable file.
  • True Correct
  • False
Constants are simply container of information.
  • True
  • False Correct
CRC stands for:
  • Class Responsibility Collaboration Correct
  • Computer Recycling Center
  • Connected Row-Convex
  • Computer Resource Center
CRCW stands for:
  • Conjuction Read Conjunction Write
  • Complete Read Complete Write
  • Concurrent Read Complete Write
  • Concurrent Read Concurrent Write Correct
Extending an interface can implement another interface.
  • False
  • True Correct
Feature of java that is very easy to learn, and its syntax is simple, clean and easy to understand.
  • Platform Independent
  • Simple Correct
  • Object-Oriented
  • Portable
Feature of java that means, organizing our software as a combination of different types of objects that incorporates both data and behavior.
  • Portable
  • Platform Independent
  • Object-Oriented Correct
  • Simple
finalize is used in exception handling.
  • True
  • False Correct
Finally is a method that is called by JVM during garbage collection.
  • False Correct
  • True
HashSet implements everything the TreeSet does, but it also keeps everything in an order that you can control by implementing an interface called comparable in the class that you're storing.
  • True
  • False Correct
Have methods and variables just like the class but the methods declared in it are by default abstract.
  • Abstract method
  • Override
  • Interface Correct
  • Abstract class
IDE stands for:
  • Integrated Development Environment Correct
  • Integrated Digital Environment
  • Integrated Drive Electronic
  • Integrated Device Electronics
If a child does not implement all the abstract methods of abstract parent class, then the child class must need to be declared abstract as well.
  • True Correct
  • False
If method parameters are declared final then the value of these parameters cannot be changed.
  • True Correct
  • False
If you declare an abstract method in a class then you don't need to declare the class abstract as well.
  • True
  • False Correct
Implements the remote interface of the component on the server.
  • None of the Choices
  • Components
  • Object/Remote Interface Correct
  • Container
Interface provides full abstraction as none of its methods have body.
  • False
  • True Correct
Interface which is declared inside another interface or class.
  • Nested interface Correct
  • Multiple interface
  • Implementation interface
  • Hierarchical interface
It belong to the class instead of a specific instance, this means you can access it without object.
  • Static Keyword
  • Static Block
  • Static variable
  • Static members Correct
It can access class variables(static variables) without using object(instance) of the class.
  • Class variables
  • Class methods
  • Static block
  • Static methods Correct
It checks the code fragments for illegal code that can violate access right to objects.
  • Classloader
  • JVM
  • Security Manager
  • Bytecode Verifier Correct
It determines what resources a class can access such as reading and writing to the local disk.
  • Bytecode Verifier
  • JVM
  • Security Manager Correct
  • Classloader
It facilitates you to carry the Java bytecode to any platform.
  • Platform Independent
  • Portable Correct
  • Simple
  • Object-Oriented
It has the static keyword as a prefix in its declaration. Its definition occurs only inside a class and outside any function.
  • Class variables Correct
  • Variable Types
  • Instance variables
  • Local variables
It is a blueprint for objects to follow a specific schema defined in the class.
  • Class Correct
  • Method
  • Object
  • Behavior
It is a data type that accepts only true or false value.
  • Rational
  • Boolean Correct
  • Characters
  • Integer
It is a good practice to name final variable in all CAPS.
  • True Correct
  • False
It is a Java platform component that executes programs.
  • JDK
  • J2SE
  • JVM Correct
  • JRE
It is a type of pattern defines as one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
  • None of the Choices
  • Observer Pattern Correct
  • Singleton Pattern
  • Decorator Pattern
It is a type of pattern that allow an object to alter its behavior or when its internal state changes and the object will appear to change its class.
  • None of the Choices
  • State Pattern Correct
  • Iterator Pattern
  • Style Pattern
It is a type of pattern that attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to sub-classing for extending functionality.
  • Singleton Pattern
  • None of the Choices
  • Decorator Pattern Correct
  • Observer Pattern
It is a type of pattern that ensures a class has only one instance and provide a global access point to it.
  • Observer Pattern
  • Singleton Pattern Correct
  • None of the Choices
  • Decorator Pattern
It is a type of pattern that provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
  • Iterator Pattern Correct
  • State Pattern
  • Style Pattern
  • None of the Choices
It is a type of programming wherein it generates dynamic pages, takes user input, access and modify temporary local storage and lastly, sends and receive request with server.
  • None of the Choices
  • Server Side
  • P2P
  • Client Side Correct
It is an interface with blocks of data that deals with moving of complex data.
  • None of the Choices
  • Entity Object
  • Coarse-grained Java Object Correct
  • Session Object
It is an object created within a specific client session, that is usually in conversational state and doesn't use memory outside the client session.
  • None of the Choices
  • Entity Object
  • Object Oriented
  • Session Object Correct
It is an object designed to be persistent and has unique primary key identifier, that stores data across client sessions.
  • None of the Choices
  • Entity Object Correct
  • Object Oriented
  • Session Object
It is common to all the instances (or objects) of the class because it is a class level variable.
  • Static members
  • Static variable Correct
  • Static Keyword
  • Static Block
It is define as a family of algorithms, encapsulates each one and makes them interchangeable. This lets the algorithm vary independently from clients that use it.
  • Stragey Pattern Correct
  • None of the Choices
  • Decorator Pattern
  • Observer Pattern
It is not a specific object or program but instead it is a set of programming standards that all properties are private, has getter and setter methods, has public constructors that takes no arguments and can implement serializable API.
  • NetBeans
  • None of the Choices
  • JavaScript
  • Enterprise JavaBeans Correct
It is one of the 5 steps of Object Oriented Design Process wherein it is the simple narrative about the application. Typically in use case or user stories.
  • Describe the Interaction
  • Gather the Requirements
  • Describe the Application Correct
  • Identify the Main Object
It is one of the Extension features of JavaBeans wherein you focused on making your applications personalized for different regions or different clients.
  • Internationalization
  • None of the Choices
  • Scalability
  • Localization Correct
It is one of the several components of Javabeans that receives JMS message asynchronously.
  • None of the Choices
  • Message Bean Correct
  • Java Bean
  • Session Bean
It is one way to handle conflicts by allowing only one processor to access a memory location at a given time and the other processor of the server will be locked out. This is considered the safest but slowest solution.
  • EREW Correct
  • None of the Choices
  • CREW
  • CRCW
It is referred to as the communication speed that is limited by the speed of light and can be reduced through careful workflow balancing.
  • Session
  • None of the Choices
  • Latency Correct
  • Concurrent Access
It is the ability of the server to allow multiple clients sending a message into a single bean and the data stored in the server can be accessed by multiple client simultaneously.
  • Concurrent Access Correct
  • Session
  • None of the Choices
  • Latency
It is the framework that helps the server to interface with the JavaBeans components.
  • None of the Choices
  • Components
  • Object/Remote Interface
  • Container Correct
It is the most fundamental entity in Java or any other Object Oriented Language.
  • Behavior
  • Object Correct
  • Class
  • Method
It is the on-disk part of Java that creates the JVM.
  • J2SE
  • JRE Correct
  • JVM
  • JDK
It is the process wherein you capitalized the first letter of every word.
  • UpperCase
  • None of the Choices
  • CamelCase Correct
  • LowerCase
It is the solutions to common software design problems that occur over and over in software development.
  • Object Oriented
  • Design Pattern Correct
  • None of the Choices
  • System Analysis
It is the Standard Java Program or the Program itself.
  • Object/Remote Interface
  • Container
  • Components Correct
  • None of the Choices
This course is taught by the mentor:
Professor Josephine Casin

Josephine Casin

Doctor in Information Technology.

All courses