This quiz focuses on Object Oriented Programming using Java, assessing knowledge on GUI packages, access specifiers, interface implementation, and debugging. It's designed for BCA students to enhance their Java programming skills and understanding of key OOP concepts.
Public
Protected
private
All of the mentioned
Rate this question:
import
Import
implements
Implements
Rate this question:
virtual debugging
remote debugging
machine debugging
compiling debugging
Rate this question:
changed value pop on the screen
variable changes are printed in logs
dump of variable changes are printed on the screen on end of execution
variable tab shows variables highlighted when values change
Rate this question:
java.io.date
java.sql.date
java.util.date
java.util.dateTime
Rate this question:
import pkg.
Import pkg.
import pkg.*
Import pkg.*
Rate this question:
Package defines a namespace in which classes are stored
A package can contain other package within it
Java uses file system directories to store packages
A package can be renamed without renaming the directory in which the classes are stored
Rate this question:
init
init-method
initialization
initialization-method
Rate this question:
destroy
destroy-method
destruction
destruction-method
Rate this question:
Integer instance
Generic class instance
Generic type instance
Collection instances
Rate this question:
Array
List
Map
Set
Rate this question:
Generic methods are the methods defined in a generic class
Generic methods are the methods that extend generic class methods
Generic methods are methods that introduce their own type parameters
Generic methods are methods that take void parameters
Rate this question:
catch
throw
throws
all of the mentioned
Rate this question:
Overloaded Methods
Generic methods
Class methods
Overriding methods
Rate this question:
Null
Empty collection
Singleton collection
Empty String
Rate this question:
Array
Array list
Vector
Set
Rate this question:
Try
Finally
Exit
Catch
Rate this question:
Release database connection when querying is complete
Use Finally block as much as possible
Release instances stored in static tables
Not using Finally block often
Rate this question:
System.currentTimeMillis()
System.nanoTime()
System.getCurrentTime()
System.getProcessingTime()
Rate this question:
The class name should start with lowercase
The class should have thousands of lines of code
The class should only contain those attribute and functionality which it should; hence keeping it short
The class attributes and methods should be public
Rate this question:
variable names should be short
variable names should be such that they avoid ambiguity
test case method names should be created as english sentences without spaces
class constants should be used when we want to share data between class methods
Rate this question:
for(int i=0; i
for(int i=99; i>=0; i--)
for(int i=100; i
for(int i=99; i>0; i++)
Rate this question:
Stream API
Serialization
Spliterator
Lambda Expression
Rate this question:
It reads all the files at the path specified as a String
It reads all the lines from a file as a Stream
It reads the filenames at the path specified
It counts the number of lines for files at the path specified
Quiz Review Timeline (Updated): Aug 24, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.