Professional Documents
Culture Documents
Question 1 WRONG
If we derive an abstract class and do not implement all the abstract methods, then
the derived class should also be marked as abstract using 'abstract' keyword
Question 2 WRONG
1, 2 and 4
C 2, 3 and 4
D 1, 2, 3 and 4
Question 3 WRONG
a = 10
B a = 20
Compilation error
Question 3 Explanation:
Final method can’t be overridden. Thus, an abstract function can’t be final.
Question 4 WRONG
which translates JDBC function calls into API not native to DBMS
Data Structures
Question 4Algorithms Interview Preparation
Explanation: Topic-wise Practice C++ Java Programming Pyt
JDBC type 4 driver,works directly by connecting to the database server through
socket connections and converts JDBC calls to vendor-specific database
protocols.These drivers don't require any intermediate layer. So, option (C) is
correct.
We use cookies to ensure you have the best browsing experience on our website. By using our site,
Got It !
you acknowledge that you have read and understood our Cookie
▲ Policy & Privacy Policy
Question 5 CORRECT
Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE ? I.
An abstract class is one that is not used to create objects. II. An abstract class is designed
only to act as a base class to be inherited by other classes.
A Only I
B Only II
C Neither I nor II
Both I and II
Java Abstract Class and Interface UGC NET CS 2017 Jan - III
Discuss it
Question 5 Explanation:
Abstract data class is not used to create objects in Java and it is designed only to
act as a base class to be inherited by other classes. Both Statement are correct. For
more information Refer:Abstract Classes in Java Option (D) is correct.
Question 6 WRONG
Java Abstract Class and Interface UGC NET CS 2015 Dec – III
Discuss it
We use cookies to ensure you have the best browsing experience on our website. By using our site,
Got It !
you acknowledge that you have read and understood our Cookie
▲ Policy & Privacy Policy
Question 6 Explanation:
Making atleast one member function as pure virtual function is the method to make
abstract class. For more information on Abstract Class Refer:Pure Virtual Functions
and Abstract Classes in C++ Option (A) is correct.
Question 7 CORRECT
Question 7 Explanation:
An abstract class is a class that is designed to be specifically used as a base class.
An abstract class contains at least one pure virtual function. A pure virtual function
can be declared by using a pure specifier ( = 0 ) in the declaration of a virtual mem-
ber function in the class declaration. Option (C) is correct.
Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.
14 Comments GeeksforGeeks 🔒
1 Login
We use cookies to ensure you have the best browsing experience on ourby
website. By using our site,
Recommend 3 t Tweet f Share Sort Newest Got It !
you acknowledge that you have read and understood our Cookie
▲ Policy & Privacy Policy