R.M.D Engineering College Department of Computer Science and Engineering Cs8383 Object Oriented Programming Laboratory Multiple Choice Questions
R.M.D Engineering College Department of Computer Science and Engineering Cs8383 Object Oriented Programming Laboratory Multiple Choice Questions
D ENGINEERING COLLEGE
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
CS8383 OBJECT ORIENTED PROGRAMMING LABORATORY
MULTIPLE CHOICE QUESTIONS
6.Which of these is a mechanism for naming and visibility control of a class and its content?
a) Object
b) Packages
c) Interfaces
d) None of the Mentioned
Answer: b
12.A class member declared protected becomes a member of subclass of which type?
a) public member
b) private member
c) protected member
d) static member
Answer: b
b. Hello
c. Runtime Error
d. Compilation Error
Answer: b
22. What is the name of the thread in the following Java Program?
classmultithreaded_programing
{
publicstaticvoid main(Stringargs[])
{
Thread t =Thread.currentThread();
System.out.println(t);
}
}
a) main
b) Thread
c) System
d) None of the mentioned
Answer: a
25.What will happen if two thread of the same priority are called to be processed
simultaneously?
a) Anyone will be executed first lexographically
b) Both of them will be executed simultaneously
c) None of them will be executed
d) It is dependent on the operating system
Answer: d