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

24001. Which of the following statements are correct about a HashTable collection? It is a keyed collection. It is a ordered collection. It is an indexed collection. It implements a IDictionaryEnumerator interface in its inner class. The key - value pairs present in a HashTable can be accessed using the Keys and Values properties of the inner class that implements the IDictionaryEnumerator interface.






24002. Which of the following is the correct way to access all elements of the Stack collection created using the C#.NET code snippet given below? Stack st = new Stack(); st.Push(11); st.Push(22); st.Push(-53); st.Push(33); st.Push(66);





24003. Which of the following statements are correct about the Collection Classes available in Framework Class Library?






24004. Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? The ArrayList class contains an inner class that implements the IEnumerator interface. An ArrayList Collection cannot be accessed simultaneously by different threads. The inner class of ArrayList can access ArrayList class's members. To access members of ArrayList from the inner class, it is necessary to pass ArrayList class's reference to it. Enumerator's of ArrayList Collection can manipulate the array.






24005. How many enumerators will exist if four threads are simultaneously working on an ArrayList object?






24006. In which of the following collections is the Input/Output index-based? Stack Queue BitArray ArrayList HashTable






24007. In which of the following collections is the Input/Output based on a key? Map Stack BitArray HashTable SortedList






24008. In a HashTable Key cannot be null, but Value can be.



24009. ‘Immediate’ means:





24010. A brood of birds ................ seen always near the river.





24011. In the last few years the country has ----- several crises.





24012. I prefer doing things to................. television





24013. The members of the committees of Parliament are





24014. 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);






24015. In which of the following should the methods of a class differ if they are to be treated as overloaded methods? Type of arguments Return type of methods Number of arguments Names of methods Order of arguments





24016. Can static procedures access instance data?



24017. Which of the following statements are correct about constructors in C#.NET? Constructors cannot be overloaded. Constructors always have the name same as the name of the class. Constructors are never called explicitly. Constructors never return any value. Constructors allocate space for the object in memory.






24018. How many times can a constructor be called during lifetime of the object?






24019. Is it possible to invoke Garbage Collector explicitly?



24020. Which of the following statements are correct about the C#.NET code snippet given below? class Sample { static int i; int j; public void proc1() { i = 11; j = 22; } public static void proc2() { i = 1; j = 2; } static Sample() { i = 0; j = 0; } }






24021. Just as I ............... on my rain coat the rain stopped





24022. Is it possible for you to prevent an object from being created by using zero argument constructor?



24023. Which of the following statements are correct about static functions?





24024. What will be the output of the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class Sample { static Sample() { Console.Write("Sample class "); } public static void Bix1() { Console.Write("Bix1 method "); } } class MyProgram { static void Main(string[ ] args) { Sample.Bix1(); } } }






24025. Which of the following statements is correct about constructors in C#.NET?






24026. What will be the output of the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class Sample { public static void fun1() { Console.WriteLine("Bix1 method"); } public void fun2() { fun1(); Console.WriteLine("Bix2 method"); } public void fun2(int i) { Console.WriteLine(i); fun2(); } } class MyProgram { static void Main(string[ ] args) { Sample s = new Sample(); Sample.fun1(); s.fun2(123); } } }






24027. Children’s clothes ----- for sale ?





24028. Which of the following statements is correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class Sample { public int func() { return 1; } public Single func() { return 2.4f ; } } class Program { static void Main(string[ ] args) { Sample s1 = new Sample(); int i; i = s1.func(); Single j; j = s1.func(); } } }






24029. Which of the following ways to create an object of the Sample class given below will work correctly? class Sample { int i; Single j; double k; public Sample (int ii, Single jj, double kk) { i = ii; j = jj; k = kk; } }






24030. Which of the following statements are correct about static functions? Static functions can access only static data. Static functions cannot call instance functions. It is necessary to initialize static data. Instance functions can call static functions and access static data. this reference is passed to static functions.






24031. Which of the following statements is correct about constructors?





24032. They have finished the work,.........?





24033. The office of the president can fall vacant due to





24034. Twelve inches make .................





24035. My views are in accordance with_________of yours.





24036. What will be the output of the C#.NET code snippet given below? int val; for (val = -5; val <= 5; val++) { switch (val) { case 0: Console.Write ("India"); break; } if (val > 0) Console.Write ("B"); else if (val < 0) Console.Write ("X"); }






24037. What will be the output of the C#.NET code snippet given below? char ch = Convert.ToChar ('a' | 'b' | 'c'); switch (ch) { case 'A': case 'a': Console.WriteLine ("case A | case a"); break; case 'B': case 'b': Console.WriteLine ("case B | case b"); break; case 'C': case 'c': case 'D': case 'd': Console.WriteLine ("case D | case d"); break; }






24038. Which of the following is the incorrect form of Decision Control instruction?






24039. Which of the following code snippets are the correct way to determine whether a is Odd or Even? int a; String res; if (a % 2 == 0) res = "Even"; else res = "Odd"; int a; String res; if (a Mod 2 == 0) res = "Even"; else res = "Odd"; int a; Console.WriteLine(a Mod 2 == 0 ? "Even": "Odd"); int a; String res; a % 2 == 0 ? res = "Even" : res = "Odd"; Console.WriteLine(res);






24040. Which of the following can be used to terminate a while loop and transfer control outside the loop? exit while continue exit statement break goto






24041. The C#.NET code snippet given below generates ____ numbers series as output? int i = 1, j = 1, val; while (i < 25) { Console.Write(j + " "); val = i + j; j = i; i = val; }






24042. Which of the following statements are correct about the C#.NET code snippet given below? if (age > 18 && no < 11) a = 25; The condition no < 11 will be evaluated only if age > 18 evaluates to True. The statement a = 25 will get executed if any one condition is True. The condition no < 11 will be evaluated only if age > 18 evaluates to False. The statement a = 25 will get executed if both the conditions are True. && is known as a short circuiting logical operator.






24043. Which of the following statements are correct? A switch statement can act on numerical as well as Boolean types. A switch statement can act on characters, strings and enumerations types. We cannot declare variables within a case statement if it is not enclosed by { }. The foreach statement is used to iterate through the collection to get the desired information and should be used to change the contents of the collection to avoid unpredictable side effects. All of the expressions of the for statement are not optional.






24044. What will be the output of the C#.NET code snippet given below? int i = 2, j = i; if (Convert.ToBoolean((i | j & 5) & (j - 25 1))) Console.WriteLine(1); else Console.WriteLine(0);





24045. Which of the following statements is correct about the C#.NET code snippet given below? switch (id) { case 6: grp = "Grp B"; break; case 13: grp = "Grp D"; break; case 1: grp = "Grp A"; break; case ls > 20: grp = "Grp E"; break ; case Else: grp = "Grp F"; break; }






24046. Which of the following is another way to rewrite the code snippet given below? int a = 1, b = 2, c = 0; if (a < b) c = a;






24047. Which of the following statements are correct? The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body. The goto statement passes control to the next iteration of the enclosing iteration statement in which it appears. Branching is performed using jump statements which cause an immediate transfer of the program control. A common use of continue is to transfer control to a specific switch-case label or the default label in a switch statement. The do statement executes a statement or a block of statements enclosed in {} repeatedly until a specified expression evaluates to false.






24048. Which of the following statements are correct about the C#.NET code snippet given below? if (age > 18 || no < 11) a = 25; The condition no < 11 will get evaluated only if age > 18 evaluates to False. The condition no < 11 will get evaluated if age > 18 evaluates to True. The statement a = 25 will get evaluated if any one one of the two conditions is True. || is known as a short circuiting logical operator. The statement a = 25 will get evaluated only if both the conditions are True.






24049. What will be the output of the code snippet given below? int i; for(i = 0; i<=10; i++) { if(i == 4) { Console.Write(i + " "); continue; } else if (i != 4) Console.Write(i + " "); else break; }






24050. Which of the following loop correctly prints the elements of the array? char[ ] arr = new char[ ] {'k', 'i','C', 'i','t'} ;






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