Home / My courses /
UGRD-CS6203-2113T /
Week 5: Prelim Examination /
Prelim Exam
Started on Friday, 1 October 2021, 12:59 PM
State Finished
Completed on Friday, 1 October 2021, 1:53 PM
Time taken 54 mins 16 secs
Marks 40.00/40.00
Grade 100.00 out of 100.00
Question 1
Correct
Mark 1.00 out of 1.00
A popular general-purpose programming language and computing platform. It is fast, reliable, and secure.
Select one:
a. C#
b. Php
c. Java
d. C++
Question 2
Correct
Mark 1.00 out of 1.00
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. Parent Class
d. Child Class
Question 3
Correct
Mark 1.00 out of 1.00
Allows developers to create Java programs that can be executed and run by the JVM and JRE.
Select one:
a. JVM
b. JRE
c. J2SE
d. JDK
Question 4
Correct
Mark 1.00 out of 1.00
The JDK 1.0 was released on
Select one:
a. January 1996
b. February 1997
c. February 1996
d. January 1997
Question 5
Correct
Mark 1.00 out of 1.00
It is a blueprint for objects to follow a specific schema defined in the class.
Select one:
a. Method
b. Class
c. Object
d. Behavior
Question 6
Correct
Mark 1.00 out of 1.00
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. Protected
b. Private
c. Public
d. No Modifier
Question 7
Correct
Mark 1.00 out of 1.00
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. Local variables
b. Variable Types
c. Instance variables
d. Class variables
Question 8
Correct
Mark 1.00 out of 1.00
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. No Modifier
b. Private
c. Protected
d. Public
Question 9
Correct
Mark 1.00 out of 1.00
The J2SE 5.0 was released on
Select one:
a. September 2004
b. February 2002
c. September 2002
d. February 2000
Question 10
Correct
Mark 1.00 out of 1.00
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. Portable
c. Object-Oriented
d. Platform Independent
Question 11
Correct
Mark 1.00 out of 1.00
These are variables which have declarations inside methods, constructors or blocks.
Select one:
a. Instance variables
b. Variable Types
c. Class variables
d. Local variables
Question 12
Correct
Mark 1.00 out of 1.00
It facilitates you to carry the Java bytecode to any platform.
Select one:
a. Portable
b. Simple
c. Platform Independent
d. Object-Oriented
Question 13
Correct
Mark 1.00 out of 1.00
It is the most fundamental entity in Java or any other Object Oriented Language.
Select one:
a. Method
b. Behavior
c. Object
d. Class
Question 14
Correct
Mark 1.00 out of 1.00
It is the on-disk part of Java that creates the JVM.
Select one:
a. JDK
b. J2SE
c. JVM
d. JRE
Question 15
Correct
Mark 1.00 out of 1.00
It checks the code fragments for illegal code that can violate access right to objects.
Select one:
a. Classloader
b. Bytecode Verifier
c. JVM
d. Security Manager
Question 16
Correct
Mark 1.00 out of 1.00
The J2SE 1.2 was released on
Select one:
a. December 1998
b. May 1998
c. December 2000
d. May 2000
Question 17
Correct
Mark 1.00 out of 1.00
It determines what resources a class can access such as reading and writing to the local disk.
Select one:
a. Security Manager
b. Bytecode Verifier
c. JVM
d. Classloader
Question 18
Correct
Mark 1.00 out of 1.00
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. Public
c. Protected
d. No Modifier
Question 19
Correct
Mark 1.00 out of 1.00
The super keyword refers to the ______________, immediately above of the calling class in the hierarchy.
Select one:
a. Inheritance
b. Constructor
c. Super Keyword
d. Super Class
Question 20
Correct
Mark 1.00 out of 1.00
The superclass constructor can be called explicitly using the ____________________ ?
Select one:
a. Super Keyword
b. Inheritance
c. Super Class
d. Constructor
Question 21
Correct
Mark 1.00 out of 1.00
The process by which one class acquires the properties (data members) and functionalities(methods) of another class.
Select one:
a. Polymorphism
b. Encapsulation
c. Abstraction
d. Inheritance
Question 22
Correct
Mark 1.00 out of 1.00
These variables are inside a class however outside any method. They come into existence when the class instantiates.
Select one:
a. Local variables
b. Variable Types
c. Instance variables
d. Class variables
Question 23
Correct
Mark 1.00 out of 1.00
Select one:
a. Protected
b. Private
c. No Modifier
d. Public
Question 24
Correct
Mark 1.00 out of 1.00
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. Abstraction
b. Polymorphism
c. Inheritance
d. Encapsulation
Question 25
Correct
Mark 1.00 out of 1.00
The class that extends the features of another class is known as _____________?
Select one:
a. Sub Class
b. B and C
c. Parent Class
d. Child Class
Question 26
Correct
Mark 1.00 out of 1.00
Java is an Object-Oriented programming language developed by ______________ in the early 1990s
Select one:
a. Guido Van Rossum
b. Bjarne Stroustrup
c. Dennis Ritchie
d. James Gosling
Question 27
Correct
Mark 1.00 out of 1.00
Use to define the visibility of classes, methods, and attributes.
Select one:
a. Protected
b. Access Modifier
c. Public
d. Private
Question 28
Correct
Mark 1.00 out of 1.00
One of the OOPs feature that allows us to perform a single action in different ways.
Select one:
a. Encapsulation
b. Abstraction
c. Inheritance
d. Polymorphism
Question 29
Correct
Mark 1.00 out of 1.00
The same method in child class which is already present in the parent class.
Select one:
a. Object Overloading
b. Method Overriding
c. Method Overloading
d. Object Overriding
Question 30
Correct
Mark 1.00 out of 1.00
The J2SE 1.4 was released on
Select one:
a. September 2004
b. February 2000
c. February 2002
d. September 2002
Question 31
Correct
Mark 1.00 out of 1.00
Sub class is invoked when we create the object of subclass, it by default invokes the default constructor of super class.
Select one:
a. Inheritance
b. Super Keyword
c. Constructor
d. Super Class
Question 32
Correct
Mark 1.00 out of 1.00
The name Java originates from a sort of ____________
Select one:
a. Expresso Bean
b. Latte Bean
c. Mocha Bean
d. Cappuccino Bean
Question 33
Correct
Mark 1.00 out of 1.00
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 34
Correct
Mark 1.00 out of 1.00
It is a Java platform component that executes programs.
Select one:
a. JDK
b. JRE
c. J2SE
d. JVM
Question 35
Correct
Mark 1.00 out of 1.00
Java is a write once, runObject Oriented Programming anywhere language.
Select one:
a. Simple
b. Portable
c. Object-Oriented
d. Platform Independent
Question 36
Correct
Mark 1.00 out of 1.00
The J2SE 1.3 was released on
Select one:
a. May 1998
b. May 2000
c. December 2000
d. December 1998
Question 37
Correct
Mark 1.00 out of 1.00
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. Classloader
d. Bytecode Verifier
Question 38
Correct
Mark 1.00 out of 1.00
The following are the advantages of Inheritance except.
Select one:
a. Reusability of code
b. Avoids duplicity and data redundancy
c. One superclass can be used for the number of subclasses in a hierarchy
d. Allows you to define one interface
Question 39
Correct
Mark 1.00 out of 1.00
The JAVA SE 12 was released on
Select one:
a. September 2018
b. September 2019
c. March 2018
d. March 2019
Question 40
Correct
Mark 1.00 out of 1.00
The JDK 1.1 was released on
Select one:
a. January 1996
b. February 1996
c. January 1997
d. February 1997
◄ Prelim Quiz 2
Jump to...
Week 6: Static Members ►