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

23951. Which of the following statements are correct about Attributes used in C#.NET?






23952. Which of the following forms of applying an attribute is correct?






23953. Which of the following statements are correct about Attributes in C#.NET? On compiling a C#.NET program the attibutes applied are recorded in the metadata of the assembly. On compilation all the attribute's tags are deleted from the program. It is not possible to create custom attributes.. The attributes applied can be read from an assembly using Reflection class. An attribute can have parameters.






23954. Which of the following correctly describes the contents of the filename AssemblyInfo.cs?






23955. It possible to create a custom attribute that can be applied only to specific programming element(s) like ____ .





23956. Which of the following CANNOT be a target for a custom attribute?






23957. Once applied which of the following CANNOT inspect the applied attribute?






23958. Which of the following is the correct way to apply an attribute to an Assembly?






23959. Which of the following is the correct way of applying the custom attribute called Tested which receives two-arguments - name of the tester and the testgrade? Custom attribute cannot be applied to an assembly. [assembly: Tested("Sachin", testgrade.Good)] [Tested("Virat", testgrade.Excellent)] class customer { / .... / } Custom attribute cannot be applied to a method. Custom attribute cannot be applied to a class.






23960. Attributes can be applied to Method Class Assembly Namespace Enum






23961. The [Serializable()] attribute gets inspected at






23962. Which of the following are correct ways to specify the targets for a custom attribute?



23963. Which of the following are correct ways to pass a parameter to an attribute? By value By reference By address By position By name





23964. Which of the following statements are correct about inspecting an attribute in C#.NET? An attribute can be inspected at link-time. An attribute can be inspected at compile-time. An attribute can be inspected at run-time. An attribute can be inspected at design-time.






23965. Which of the following is correct ways of applying an attribute?





23966. There –––– plenty of opportunities for the talened people.





23967. The members of the panchayat are





23968. If I had a typewriter I ............ it myself.





23969. Everybody cannot come in first,..............?





23970. The antonym of convict is:





23971. Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication { class Sample { int i; Single j; public void SetData(int i, Single j) { i = i; j = j; } public void Display() { Console.WriteLine(i + " " + j); } } class MyProgram { static void Main(string[ ] args) { Sample s1 = new Sample(); s1.SetData(10, 5.4f); s1.Display(); } } }






23972. The this reference gets created when a member function (non-shared) of a class is called.



23973. Which of the following statements are correct? Data members ofa class are by default public. Data members of a class are by default private. Member functions of a class are by default public. A private function of a class can access a public function within the same class. Member function of a class are by default private.






23974. Which of the following statements is correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class Sample { public int index; public int[] arr = new int[10]; public void fun(int i, int val) { arr[i] = val; } } class MyProgram { static void Main(string[] args) { Sample s = new Sample(); s.index = 20; Sample.fun(1, 5); s.fun(1, 5); } } }






23975. 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.






23976. Which of the following statements is correct about the C#.NET code snippet given below? int i; int j = new int(); i = 10; j = 20; String str; str = i.ToString(); str = j.ToString();






23977. Which of the following statements are correct about the this reference? this reference can be modified in the instance member function of a class. Static functions of a class never receive the this reference. Instance member functions of a class always receive a this reference. this reference continues to exist even after control returns from an instance member function. While calling an instance member function we are not required to pass the this reference explicitly.






23978. Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication { class Sample { int i; Single j; public void SetData(int i, Single j) { this.i = i; this.j = j; } public void Display() { Console.WriteLine(i + " " + j); } } class MyProgram { static void Main(string[ ] args) { Sample s1 = new Sample(); s1.SetData(36, 5.4f); s1.Display(); } } }






23979. 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.






23980. Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class Sample { int i, j; public void SetData(int ii, int jj) { this.i = ii; this.j = jj } } class MyProgram { static void Main(string[ ] args) { Sample s1 = new Sample(); s1.SetData(10, 2); Sample s2 = new Sample(); s2.SetData(5, 10); } } }






23981. Which of the following statements is correct about classes and objects in C#.NET?






23982. Which of the following statements is correct about the C#.NET code snippet given below? class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student(); s2 = new Student();






23983. Which of the following statements is correct about the C#.NET code snippet given below? class Sample { private int i; public Single j; private void DisplayData() { Console.WriteLine(i + " " + j); } public void ShowData() { Console.WriteLine(i + " " + j); } }






23984. Which of the following statements are correct? Instance members of a class can be accessed only through an object of that class. A class can contain only instance data and instance member function. All objects created from a class will occupy equal number of bytes in memory. A class can contain Friend functions. A class is a blueprint or a template according to which objects are created.






23985. Which of the following statements is correct?






23986. 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();






23987. A literary work published after its author’s death:





23988. The oath of office is administered to the Governor by the





23989. "Afflucent" means





23990. The members of Parliament can express themselves in the House in





23991. Which of the following statements are correct about the C#.NET code snippet given below? Stack st = new Stack(); st.Push("hello"); st.Push(8.2); st.Push(5); st.Push('b'); st.Push(true);





23992. Which of the following statements are correct about the Stack collection? It can be used for evaluation of expressions. All elements in the Stack collection can be accessed using an enumerator. It is used to maintain a FIFO list. All elements stored in a Stack collection must be of similar type. Top-most element of the Stack collection can be accessed using the Peek() method.






23993. A HashTable t maintains a collection of names of states and capital city of each state. Which of the following is the correct way to find out whether "Kerala" state is present in this collection or not?






23994. Which of the following is the correct way to access all elements of the Queue collection created using the C#.NET code snippet given below? Queue q = new Queue(); q.Enqueue("Sachin"); q.Enqueue('A'); q.Enqueue(false); q.Enqueue(38); q.Enqueue(5.4);





23995. Which of the following is NOT an interface declared in System.Collections namespace?






23996. Suppose value of the Capacity property of ArrayList Collection is set to 4. What will be the capacity of the Collection on adding fifth element to it?





23997. Which of the following is an ordered collection class? Map Stack Queue BitArray HashTable






23998. Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?






<<= 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
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions