Question Set

1. Which of the following statements are correct? C# allows a function to have arguments with default values. C# allows a function to have variable number of arguments. Omitting the return value type in method definition results into an exception. Redefining a method parameter in the method's body causes an exception. params is used to specify the syntax for a function with variable number of arguments.






Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Show Similar Question And Answers
QA->Two statements are given followed by two conclusions I and II. You have to consider the two statements to be true even if they seem to be at variance from commonly known facts. You have to decide which one of the given conclusions is definitely drawn from the given statements. Statement : All virtuous persons are happy. No unhappy person is virtuous. Conclusions : I. Happiness is related to virtue II. Unhappy person is not virtuous.....
QA->Which of the statements is a perfect definition of Recto ?....
QA->Which​ ​of​ ​the​ ​following​ ​statements​ ​is​ ​correct?....
QA->Which one of the following statements with regard to the "Make in India" initiative of the Government of India is not correct?....
QA->A intentionally causes Z’s death partly by illegally omitting to give Z food and partly by beatring Z .The offence committed by A is:....
MCQ->Which of the following statements are correct? C# allows a function to have arguments with default values. C# allows a function to have variable number of arguments. Omitting the return value type in method definition results into an exception. Redefining a method parameter in the method's body causes an exception. params is used to specify the syntax for a function with variable number of arguments.....
MCQ->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.....
MCQ->Which of the following statements are correct? We can assign values of any type to variables of type object. When a variable of a value type is converted to object, it is said to be unboxed. When a variable of type object is converted to a value type, it is said to be boxed. Boolean variable cannot have a value of null. When a value type is boxed, an entirely new object must be allocated and constructed.....
MCQ->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.....
MCQ->Which of the following statements are correct? An argument passed to a ref parameter need not be initialized first. Variables passed as out arguments need to be initialized prior to being passed. Argument that uses params keyword must be the last argument of variable argument list of a method. Pass by reference eliminates the overhead of copying large data items. To use a ref parameter only the calling method must explicitly use the ref keyword.....
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