Object Oriented Programming PQ1 PQ2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Question 1

Correct
Mark 1.00 out of 1.00

Flag question

Question text
Feature of java that means, organizing our software as a combination of different types of
objects that incorporates both data and behavior.

Select one:
a.
Simple
b.
Object-Oriented
c.
Portable
d.
Platform Independent

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The JDK 1.0 was released on

Select one:
a.
January 1996
b.
February 1996
c.
February 1997
d.
January 1997

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Java is a write once, runObject Oriented Programming anywhere language.

Select one:
a.
Simple
b.
Portable
c.
Object-Oriented
d.
Platform Independent

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It facilitates you to carry the Java bytecode to any platform.

Select one:
a.
Simple
b.
Portable
c.
Object-Oriented
d.
Platform Independent

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It checks the code fragments for illegal code that can violate access right to objects.

Select one:
a.
Bytecode Verifier
b.
Classloader
c.
JVM
d.
Security Manager

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The J2SE 1.2 was released on

Select one:
a.
December 1998
b.
May 2000
c.
December 2000
d.
May 1998

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It determines what resources a class can access such as reading and writing to the local disk.

Select one:
a.
Classloader
b.
Security Manager
c.
JVM
d.
Bytecode Verifier

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Part of the Java Runtime Environment(JRE) which is used to load Java classes into the Java
Virtual Machine dynamically.

Select one:
a.
Security Manager
b.
JVM
c.
Bytecode Verifier
d.
Classloader

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The name Java originates from a sort of ____________

Select one:
a.
Expresso Bean
b.
Mocha Bean
c.
Latte Bean
d.
Cappuccino Bean

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Java is an Object-Oriented programming language developed by ______________ in the early
1990s

Select one:
a.
Bjarne Stroustrup
b.
Dennis Ritchie
c.
Guido Van Rossum
d.
James Gosling

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Feature of java that is very easy to learn, and its syntax is simple, clean and easy to
understand.

Select one:
a.
Simple
b.
Portable
c.
Object-Oriented
d.
Platform Independent

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It is a Java platform component that executes programs.

Select one:
a.
JVM
b.
JDK
c.
JRE
d.
J2SE

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text
A popular general-purpose programming language and computing platform. It is fast,
reliable, and secure.

Select one:
a.
Php
b.
C++
c.
C#
d.
Java

Question 14
Correct
Mark 1.00 out of 1.00
Flag question

Question text
It is the on-disk part of Java that creates the JVM.

Select one:
a.
JDK
b.
J2SE
c.
JRE
d.
JVM

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The JAVA SE 12 was released on

Select one:
a.
September 2018
b.
March 2018
c.
March 2019
d.
September 2019

Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Allows developers to create Java programs that can be executed and run by the JVM and
JRE.

Select one:
a.
JDK
b.
JVM
c.
JRE
d.
J2SE

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The J2SE 5.0 was released on

Select one:
a.
September 2004
b.
February 2000
c.
February 2002
d.
September 2002
Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The J2SE 1.4 was released on

Select one:
a.
February 2002
b.
September 2004
c.
September 2002
d.
February 2000

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The J2SE 1.3 was released on

Select one:
a.
May 1998
b.
May 2000
c.
December 1998
d.
December 2000

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The JDK 1.1 was released on

Select one:
a.
February 1997
b.
January 1996
c.
February 1996
d.
January 1997

Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Select one:
a.
Private
b.
Protected
c.
No Modifier
d.
Public

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text
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.

Select one:
a.
Private
b.
Protected
c.
No Modifier
d.
Public

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The same method in child class which is already present in the parent class.

Select one:
a.
Method Overloading
b.
Object Overriding
c.
Object Overloading
d.
Method Overriding

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The class whose properties and functionalities are use (inherited) by another class is known
as _______________?

Select one:
a.
B and C
b.
Sub Class
c.
Child Class
d.
Parent Class

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text
These variables are inside a class however outside any method. They come into existence
when the class instantiates.

Select one:
a.
Variable Types
b.
Local variables
c.
Class variables
d.
Instance variables

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This is the most restrictive and most commonly used access modifier. If you use the this
modifier with an attribute or method, it can only be accessed within the same class.

Select one:
a.
Private
b.
No Modifier
c.
Protected
d.
Public

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The class that extends the features of another class is known as _____________?
Select one:
a.
B and C
b.
Parent Class
c.
Child Class
d.
Sub Class

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The superclass constructor can be called explicitly using the ____________________ ?

Select one:
a.
Inheritance
b.
Super Class
c.
Constructor
d.
Super Keyword

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This is the least restrictive access modifier. Methods and attributes that use the public
modifier can be accessed within your current class and by all other classes.

Select one:
a.
Private
b.
Public
c.
No Modifier
d.
Protected

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The process by which one class acquires the properties (data members) and
functionalities(methods) of another class.

Select one:
a.
Inheritance
b.
Polymorphism
c.
Abstraction
d.
Encapsulation

Question 11
Correct
Mark 1.00 out of 1.00
Flag question

Question text
These are variables which have declarations inside methods, constructors or blocks.

Select one:
a.
Variable Types
b.
Instance variables
c.
Class variables
d.
Local variables

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The following are the advantages of Inheritance except.

Select one:
a.
Avoids duplicity and data redundancy
b.
One superclass can be used for the number of subclasses in a hierarchy
c.
Allows you to define one interface
d.
Reusability of code

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It has the static keyword as a prefix in its declaration. Its definition occurs only inside a class
and outside any function.

Select one:
a.
Variable Types
b.
Local variables
c.
Instance variables
d.
Class variables

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It is the most fundamental entity in Java or any other Object Oriented Language.

Select one:
a.
Object
b.
Class
c.
Method
d.
Behavior
Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The capability of a method to do different things based on the object that it is acting upon.
In other words, it allows you define one interface and have multiple implementations.

Select one:
a.
Encapsulation
b.
Polymorphism
c.
Abstraction
d.
Inheritance

Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Use to define the visibility of classes, methods, and attributes.

Select one:
a.
Access Modifier
b.
Public
c.
Private
d.
Protected

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It is a blueprint for objects to follow a specific schema defined in the class.

Select one:
a.
Object
b.
Method
c.
Behavior
d.
Class

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Sub class is invoked when we create the object of subclass, it by default invokes the default
constructor of super class.

Select one:
a.
Super Class
b.
Constructor
c.
Inheritance
d.
Super Keyword

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text
The super keyword refers to the ______________, immediately above of the calling class in the
hierarchy.

Select one:
a.
Super Keyword
b.
Inheritance
c.
Super Class
d.
Constructor

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text
One of the OOPs feature that allows us to perform a single action in different ways.

Select one:
a.
Polymorphism
b.
Encapsulation
c.
Inheritance
d.
Abstraction

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy