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

9701. Which of the following jobs are done by Common Language Runtime? It provides core services such as memory management, thread management, and remoting. It enforces strict type safety. It provides Code Access Security. It provides Garbage Collection Services.






9702. Which of the following statements are correct about a .NET Assembly? It is the smallest deployable unit. Each assembly has only one entry point - Main(), WinMain() or DLLMain(). An assembly can be a Shared assembly or a Private assembly. An assembly can contain only code and data. An assembly is always in the form of an EXE file.





9703. Which of the following statements are correct about JIT? JIT compiler compiles instructions into machine code at run time. The code compiler by the JIT compiler runs under CLR. The instructions compiled by JIT compilers are written in native code. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code. The method is JIT compiled even if it is not called





9704. Which of the following are parts of the .NET Framework? The Common Language Runtime (CLR) The Framework Class Libraries (FCL) Microsoft Published Web Services Applications deployed on IIS Mobile Applications






9705. Which of the following statements are TRUE about the .NET CLR? It provides a language-neutral development & execution environment. It ensures that an application would not be able to access memory that it is not authorized to access. It provides services to run "managed" applications. The resources are garbage collected. It provides services to run "unmanaged" applications.






9706. Which of the following are valid .NET CLR JIT performance counters? Total memory used for JIT compilation Average memory used for JIT compilation Number of methods that failed to compile with the standard JIT Percentage of processor time spent performing JIT compilation Percentage of memory currently dedicated for JIT compilation





9707. Which of the following statements is correct about Managed Code?






9708. Which of the following utilities can be used to compile managed assemblies into processor-specific native code?






9709. Which of the following are NOT true about .NET Framework? It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. It provides a code-execution environment that minimizes software deployment and versioning conflicts. It provides a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party. It provides different programming models for Windows-based applications and Web-based applications. It provides an event driven programming model for building Windows Device Drivers.





9710. She knows --------- in a pool.





9711. Which one of the following is not a constituent of cell membrane?





9712. As clear as -------





9713. Select the wrong statement from the following:





9714. Flour is made ------- wheat.





9715. Which of the following will be the correct output for the C#.NET code snippet given below? enum color : int { red = -3, green, blue } Console.Write( (int) color.red + ", "); Console.Write( (int) color.green + ", "); Console.Write( (int) color.blue );






9716. An enum that is declared inside a class, struct, namespace or interface is treated as public.



9717. Which of the following statements is correct about the C#.NET code snippet given below? enum per { married, unmarried, divorced, spinster } per.married = 10; Console.WriteLine(per.unmarried);






9718. Which of the following is the correct output for the C#.NET code snippet given below? enum color: int { red, green, blue = 5, cyan, magenta = 10, yellow } Console.Write( (int) color.green + ", " ); Console.Write( (int) color.yellow );






9719. An enum can be declared inside a class, struct, namespace or interface.



9720. Which of the following CANNOT be used as an underlying datatype for an enum in C#.NET?





9721. Which of the following statements are correct about enum used in C#.NET? Every enum is derived from an Object class. Every enum is a value type. There does not exist a way to print an element of an enum as a string. Every enum is a reference type. The default underlying datatype of an enum is int.





9722. Which of the following statements is correct about the C#.NET code snippet given below? enum color : byte { red = 500, green = 1000, blue = 1500 }






9723. Which of the following is the correct output for the C#.NET code snippet given below? enum color { red, green, blue } color c = color.red; Type t; t = c.GetType(); string[ ]str; str = Enum.GetNames(t); Console.WriteLine(str[ 0 ]);






9724. Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication ( class Sample { private enum color : int { red, green, blue } public void fun() { Console.WriteLine(color.red); } } class Program { static void Main(string[ ] args) { // Use enum color here } } } To define a variable of type enum color in Main(), we should use the statement, color c; . enum color being private it cannot be used in Main(). We must declare enum color as public to be able to use it outside the class Sample. To define a variable of type enum color in Main(), we should use the statement, Sample.color c; . We must declare private enum color outside the class to be able to use it in Main().





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






9726. Which of the following statements are correct about an enum used in C#.NET? An enum can be declared inside a class. An enum can take Single, Double or Decimal values. An enum can be declared outside a class. An enum can be declared inside/outside a namespace. An object can be assigned to an enum variable.





9727. Which of the following statements are correct about an enum used inC#.NET? By default the first enumerator has the value equal to the number of elements present in the list. The value of each successive enumerator is decreased by 1. An enumerator contains white space in its name. A variable cannot be assigned to an enum element. Values of enum elements cannot be populated from a database.





9728. Which of the following statements is correct about the C#.NET code snippet given below? int a = 10; int b = 20; int c = 30; enum color: byte { red = a, green = b, blue = c }






9729. Which of the following statements is true about an enum used in C#.NET?






9730. Which of the following is the correct output for the C#.NET code snippet given below? enum color { red, green, blue } color c; c = color.red; Console.WriteLine(c);






9731. Which of the following statements are correct about an enum used inC#.NET? To use the keyword enum, we should either use [enum] or System.Enum. enum is a keyword. Enum is class declared in System.Type namespace. Enum is a class declared in the current project's root namespace. Enum is a class declared in System namespace.





9732. The lady asked..............





9733. One of the animals in the zoo........... dead





9734. Heat the soup............





9735. The overall goal of glycolysis, Krebs cycle and the electron transport system is the formation of:





9736. The antonym of ‘antecedent’ is ......................





9737. Which of the following statements are correct about exception handling in C#.NET? If our program does not catch an exception then the .NET CLR catches it. It is possible to create user-defined exceptions. All types of exceptions can be caught using the Exception class. CLRExceptions is the base class for all exception classes. For every try block there must be a corresponding finally block.






9738. Which of the following statements are correct about the exception reported below? Unhandled Exception: System.lndexOutOfRangeException: Index was outside the bounds of the array: at IndiabixConsoleApplication.MyProgram.SetVal(Int32 index, Int32 val) in D:\Sample\IndiabixConsoleApplication\MyProgram.cs:line 26 at IndiabixConsoleApplication.MyProgram.Main(String[] args) in D:\Sample\IndiabixConsoleApplication\MyProgram.cs:line 20 The CLR failed to handle the exception. The class MyProgram belongs to the namespace MyProgram. The function SetVal() was called from Main() in line number 20. The exception occurred in line number 26 in the function SetVal() The runtime exception occurred in the project IndiabixConsoleApplication.






9739. Which of the following is the Object Oriented way of handling run-time errors?






9740. Which of the following statements is correct about the C#.NET program given below if a value "6" is input to it? using System; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { int index; int val = 44; int[] a = new int[5]; try { Console.Write("Enter a number:"); index = Convert.Tolnt32(Console.ReadLine()); a[index] = val; } catch(FormatException e) { Console.Write("Bad Format"); } catch(IndexOutOfRangeException e) { Console.Write("Index out of bounds"); } Console.Write("Remaining program"); } } }






9741. Which of the following statements are correct about the exception reported below? Unhandled Exception: System.lndexOutOfRangeException: Index was outside the bounds of the array. at IndiabixConsoleApplication.Program.Main(String[] args) in D:\ConsoleApplication\Program.cs:line 14 The program did not handle an exception called IndexOutOfRangeException. The program execution continued after the exception occurred. The exception occurred in line number 14. In line number 14, the program attempted to access an array element which was beyond the bounds of the array. The CLR could not handle the exception.






9742. Which of the following statements are correct about exception handling in C#.NET? try blocks cannot be nested. In one function, there can be only one try block. An exception must be caught in the same function in which it is thrown. All values set up in the exception object are available in the catch block. While throwing a user-defined exception multiple values can be set in the exception, object.






9743. Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor.



9744. Which of the following statements is correct about the C#.NET program given below if a value "6" is input to it? using System; namespace IndiabixConsoleApplication { class MyProgram { static void Main (string[] args) { int index; int val = 66; int[] a = new int[5]; try { Consote.Write("Enter a number: "); index = Convert.ToInt32(Console.ReadLine()); a[index] = val; } catch(Exception e) { Console.Write("Exception occurred "); } Console.Write("Remaining program "); } } }






9745. Which of the following statements is correct about the C#.NET program given below if a value "ABCD" is input to it? using System; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { int index; int val = 55; int[] a = new int[5]; try { Console.Write("Enter a number: "); index = Convert.ToInt32(Console.ReadLine()); a[index] = val; } catch(FormatException e) { Console.Write("Bad Format "); } catch(IndexOutOfRangeException e) { Console.Write("Index out of bounds "); } Console.Write("Remaining program "); } } }






9746. All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not.



9747. Which of the following is NOT an Exception?






9748. ‘Emanicipate means:





9749. It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class.



9750. Which of the following is NOT a .NET Exception class?






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