Professional Documents
Culture Documents
Answer: b
Answer: c
class Base {
private static void display() {
System.out.println("Static or class method from Base");
}
}
class Derived extends Base {
private static void display() {
System.out.println("Static or class method from Derived");
}
}
Answer: b
4. What is Abstraction in OOP Language?
a) binding member functions and data members within the object
b) acquiring data members and member functions from Parent class
c) Controlling the accessibility of data members within the class
d) Controlling the accessibility of data members as well as member functions
within the class
Answer: d
a) Right
b) ABCD
c) Compile Time Error
d) Nothing will be Printed
Answer: d
class Car {
public void run()
{
System.out.println("Car is running");
}
}
a) Audi is running
b) Car is running
c) Car is running Audi is running
d) Nothing will be printed
Answer: a
a) Exception class
b) Thread class
c) HashMap class
d) Object class
Answer: d
Answer: c
}
}
Answer: c
a) Collection handling
b) Threading
c) Exception Handling
d) Type Safety
Answer: d
Answer: b
a) 0123456789
b) 02468
c) Nothing will be printed
d) 13579
Answer: b
Answer: c
Answer: b
Answer: a
}
}
a) True True
b) True False
c) False True
d) False False
Answer: c
a) Parallelism
b) Serialization
c) Complex Task Execution
d) None of the above
Answer: a
a) Char
b) Integer
c) Double
d) String
e) Float
Answer: d
Answer: b
20. What are linear data structures & non-linear data structures?
a) Linear – Trees, Queues, Stacks, Arrays & Non-Linear – Linked Lists, Graphs
b) Linear – Arrays, Queues, Stacks, Linked Lists & Non-Linear – Trees, Graphs
c) Linear – Arrays, Stacks, Linked Lists & Non-Linear – Queues, Trees, Graphs
d) Linear – Arrays, Queues, Linked Lists & Non-Linear – Stacks, Trees, Graphs
Answer: b