Toggle navigation
Home
KPSC Previous Question Papers
Article Category
kerala psc
upsc
General
Popular Pages
Question Answer in malayalam-kerala-psc-questions
Multiple Choice Question in malayalam-kerala-psc-questions
Question Answer in kerala-psc-questions-in-malayalam
Multiple Choice Question in kerala-psc-questions-in-malayalam
Question Answer in India-general-knowledge-in-malayalam
Multiple Choice Question in mechanical-engineering-machine-design
Question Answer in kerala-general-knowledge-in-malayalam
Multiple Choice Question in java-programming-inner-classes
Multiple Choice Question in aptitude-surds-and-indices
Multiple Choice Question in current-affairs-2017-01-04
Multiple Choice Question in electronics-capacitors
Multiple Choice Question in electrical-engineering-series-parallel-circuits
Question Answer Bank
Multiple Choice Question Bank
Question Answer Category
Multiple Choice Question Category
Home
->
Multiple Choice Questions
Question Set
1. Which of the following is the correct way to create an object of the class Sample? Sample s = new Sample(); Sample s; Sample s; s = new Sample(); s = new Sample();
(A): 1, 2, 3
(B): 1, 3
(C): 1, 4
(D): 2, 4
(E): None of these
Previous Question
Show Answer
Next Question
Add Tags
Report Error
Show Marks
Ask Your Doubts Here
Type in
(Press Ctrl+g to toggle between English and the chosen language)
Post reply
Comments
Show Similar Question And Answers
QA->A pendulum clock is set to give correct time at the sea level. This clock is moved to a hill station at an altitude of 2500m above the sea level. In order to keep correct time on the hill station, the length of the pendulum?....
QA->When an object travels around another object it is known as?....
QA->When an object is heated, the molecules of that object?....
QA->All of the following statements are correct except?....
QA->Which day in March has been declared to be observed as Jan Ausadhi Diwas to create awareness about use of generic medicines?....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? sample c; c = new sample(); It will create an object called sample. It will create a nameless object of the type sample. It will create an object of the type sample on the stack. It will create a reference c on the stack and an object of the type sample on the heap. It will create an object of the type sample either on the heap or on the stack depending on the size of the object.....
MCQ->Which of the following statements are correct about objects of a user-defined class called Sample? All objects of Sample class will always have exactly same data. Objects of Sample class may have same or different data. Whether objects of Sample class will have same or different data depends upon a Project Setting made in Visual Studio.NET. Conceptually, each object of Sample class will have instance data and instance member functions of the Sample class. All objects of Sample class will share one copy of member functions.....
MCQ->Which of the following is the correct way to create an object of the class Sample? Sample s = new Sample(); Sample s; Sample s; s = new Sample(); s = new Sample();....
MCQ->If Sample class has a Length property with get and set accessors then which of the following statements will work correctly? Sample.Length = 20; Sample m = new Sample(); m.Length = 10; Console.WriteLine(Sample.Length); Sample m = new Sample(); int len; len = m.Length; Sample m = new Sample(); m.Length = m.Length + 20;....
MCQ->Which of the following is the correct way to define the constructor(s) of the Sample class if we are to create objects as per the C#.NET code snippet given below? Sample s1 = new Sample(); Sample s2 = new Sample(9, 5.6f);....
×
×
Type The Issue
×
Your Marks
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...
Privacy
|
Terms And Conditions
Question ANSWER With Solution