<<= Back Next =>>
You Are On Multi Choice Question Bank SET 196

9801. Which of the following should be used to implement a 'Has a' relationship between two entities?






9802. Which of the following is correct about the C#.NET snippet given below? namespace IndiabixConsoleApplication { class Baseclass { public void fun() { Console.WriteLine("Hi" + " "); } public void fun(int i) { Console.Write("Hello" + " "); } } class Derived: Baseclass { public void fun() { Console.Write("Bye" + " "); } } class MyProgram { static void Main(string[ ] args) { Derived d; d = new Derived(); d.fun(); d.fun(77); } } }





9803. In an inheritance chain which of the following members of base class are accessible to the derived class members? static protected private shared public





9804. Which of the following are reuse mechanisms available in C#.NET? Inheritance Encapsulation Templates Containership Polymorphism





9805. Which of the following should be used to implement a 'Like a' or a 'Kind of' relationship between two entities?






9806. How can you prevent inheritance from a class in C#.NET ?






9807. Which of the following statements are correct about Inheritance in C#.NET? A derived class object contains all the base class data. Inheritance cannot suppress the base class functionality. A derived class may not be able to access all the base class data. Inheritance cannot extend the base class functionality. In inheritance chain construction of object happens from base towards derived.





9808. Assume class B is inherited from class A. Which of the following statements is correct about construction of an object of class B?






9809. Which of the following statements is correct about the C#.NET program given below? namespace IndiabixConsoleApplication { class Baseclass { int i; public Baseclass(int ii) { i = ii; Console.Write("Base "); } } class Derived : Baseclass { public Derived(int ii) : base(ii) { Console.Write("Derived "); } } class MyProgram { static void Main(string[ ] args) { Derived d = new Derived(10); } } }






9810. Multiple inheritance is different from multiple levels of inheritance.



9811. An object of a derived class cannot access private members of base class.



9812. The way a derived class member function can access base class public members, the base class member functions can access public member functions of derived class.



9813. There is no private or protected inheritance in C#.NET.



9814. യു.എന്നിന് ആസ്ഥാനമന്ദിരം പണിയാൻ 18 ഏക്കർ ഭൂമി സൗജന്യമായി നല്കിയ അമേരിക്കൻ കോടീശ്വരൻ? [Yu. Enninu aasthaanamandiram paniyaan 18 ekkar bhoomi saujanyamaayi nalkiya amerikkan kodeeshvaran?]





9815. We can derive a class from a base class even if the base class's source code is not available.



9816. If a base class contains a member function func(), and a derived class does not contain a function with this name, an object of the derived class cannot access func().



9817. If a base class and a derived class each include a member function with the same name, the member function of the derived class will be called by an object of the derived class



9818. The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class.



9819. Private members of base class cannot be accessed by derived class member functions or objects of derived class.



9820. A class D can be derived from a class C, which is derived from a class B, which is derived from a class A.



9821. There is no multiple inheritance in C#.NET. That is, a class cannot be derived from multiple base classes.



9822. Creating a derived class from a base class requires fundamental changes to the base class.



9823. It is illegal to make objects of one class as members of another class.



9824. Which of the following can be facilitated by the Inheritance mechanism? Use the existing functionality of base class. Overrride the existing functionality of base class. Implement new functionality in the derived class. Implement polymorphic behaviour. Implement containership.





9825. Which of the following statements should be added to the subroutine fun( ) if the C#.NET code snippet given below is to output 9 13? class BaseClass { protected int i = 13; } class Derived: BaseClass { int i = 9; public void fun() { // [ Add statement here ] } }






9826. Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class index { protected int count; public index() { count = 0; } } class index1: index { public void increment() { count = count +1; } } class MyProgram { static void Main(string[] args) { index1 i = new index1(); i.increment(); } } } count should be declared as public if it is to become available in the inheritance chain. count should be declared as protected if it is to become available in the inheritance chain. While constructing an object referred to by i firstly constructor of index class will be called followed by constructor of index1 class. Constructor of index class does not get inherited in index1 class. count should be declared as Friend if it is to become available in the inheritance chain.






9827. What will be the size of the object created by the following C#.NET code snippet? namespace IndiabixConsoleApplication { class Baseclass { private int i; protected int j; public int k; } class Derived: Baseclass { private int x; protected int y; public int z; } class MyProgram { static void Main (string[ ] args) { Derived d = new Derived(); } } }






9828. Which statement will you add in the function fun() of class B, if it is to produce the output "Welcome to IndiaBIX.com!"? namespace IndiabixConsoleApplication { class A { public void fun() { Console.Write("Welcome"); } } class B: A { public void fun() { // [ Add statement here ] Console.WriteLine(" to IndiaBIX.com!"); } } class MyProgram { static void Main (string[ ] args) { B b = new B(); b.fun(); } } }






9829. Q.Flagellated male gametes are present in all the three of which one of the following sets?





9830. Q.In gymnosperms, the pollen chamber represents:





9831. Q.Spore dissemination in some liverworts is aided by:





9832. Q.Which pair of the following belongs to Basidiomycetes?





9833. The antonym of payment is





9834. Which of the following statements is correct about an interface used in C#.NET?






9835. Which of the following statements is correct about an interface?





9836. Which of the following statements are correct about an interface in C#.NET? A class can implement multiple interfaces. Structures cannot inherit a class but can implement an interface. In C#.NET, : is used to signify that a class member implements a specific interface. An interface can implement multiple classes. The static attribute can be used with a method that implements an interface declaration.





9837. Which of the following is the correct implementation of the interface given below? interface IMyInterface { double MyFun(Single i); }





9838. No matter...............you must keep trying





9839. Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods and events. The keyword must implement forces implementation of an interface. Interfaces can be overloaded. Interfaces can be implemented by a class or a struct. Enhanced implementations of an interface can be developed without breaking existing code.





9840. Which of the following can implement an interface? Data Class Enum Structure Namespace





9841. Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); void fun2(); } class MyClass: IMyInterface { private int i; void IMyInterface.fun1() { // Some code } }






9842. Which of the following statements is correct about the C#.NET code snippet given below? interface IPerson { String FirstName { get; set; } String LastName { get; set; } void Print(); void Stock(); int Fun(); }






9843. Which of the following is the correct way to implement the interface given below? interface IPerson { String FirstName { get; set; } }





9844. Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); int fun2(); } class MyClass: IMyInterface { void fun1() { } int IMyInterface.fun2() { } }






9845. Which of the following can be declared in an interface? Properties Methods Enumerations Events Structures





9846. A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?






9847. Q.ICBN stands for:





9848. Which of the following statements is correct about Interfaces used in C#.NET?






9849. Ergot of rye is caused by a species of:





9850. When two species of different genealogy come to resemble each other as a result of adaptation, the phenomenon is termed:





<<= Back Next =>>
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