Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

Which feature enables to obtain information about the use and capabilities of types at runtime?

(a) Runtime type ID

(b) Reflection

(c) Attributes

(d) None of the mentioned

This question was addressed to me in an interview for internship.

Origin of the question is Introduction of Reflections in portion Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • September 9, 2023 at 5:06 am

Which of these is not a correct statement?

(a) A recursive method must have a base case

(b) Recursion always uses stack

(c) Recursion is always managed by C# Runtime environment

(d) Recursive methods are faster that programmer written loop to call the function repeatedly using a stack

I got this question during an interview for a job.

My query is from Recursion topic in portion Object Oriented Concepts of C#

  • C#
  • October 25, 2023 at 5:06 am

Which of these will happen if the recursive method does not have a base case?

(a) Infinite loop condition occurrence

(b) System gets hanged

(c) After 10000 executions program will be automatically stopped

(d) None of the mentioned

This question was addressed to me in an internship interview.

This interesting question is from Recursion topic in chapter Object Oriented Concepts of C#

  • C#
  • November 3, 2023 at 5:06 am

What is Recursion in CSharp defined as?

(a) Recursion is another form of class

(b) Recursion is another process of defining a method that calls other methods repeatedly

(c) Recursion is a process of defining a method that calls itself repeatedly

(d) Recursion is a process of defining a method that calls other methods which in turn calls this method

This question was posed to me in an online interview.

My question is from Recursion topic in division Object Oriented Concepts of C#

  • C#
  • October 2, 2023 at 5:06 am

Choose the wrong statement from the given set of statements?

(a) All operators in C#.NET cannot be overloaded

(b) We can use the new modifier to modify a nested type if the nested type is hiding another type

(c) Operator overloading permits the use of symbols to represent computations for a type

(d) In case of operator overloading all parameters must be of different type than the class or struct that declares the operators

I got this question in an online interview.

I’d like to ask this question from Introduction of Overloaded Operators topic in division Object Oriented Concepts of C#

  • C#
  • September 7, 2023 at 5:06 am

What is the vector in operator overloading?

(a) class

(b) method()

(c) data type

(d) none of the mentioned

I have been asked this question in an interview for job.

I would like to ask this question from Introduction of Overloaded Operators in portion Object Oriented Concepts of C#

  • C#
  • September 5, 2023 at 5:06 am

Choose the correct statement among the below mentioned statements.

(a) Forgetting to declare an operator method as public

(b) Forgetting to declare an operator method as static

(c) Forgetting to return a bool type value while overloading a relational operator

(d) All of the mentioned

I had been asked this question during an online interview.

My query is from Introduction of Overloaded Operators topic in portion Object Oriented Concepts of C#

  • C#
  • September 11, 2023 at 5:06 am

Correct method to define + operator is?

(a) public sample operator +(int a, int b)

(b) public abstract operator +(int a, int b)

(c) public static sample operator+(int a, int b)

(d) public abstract sample operator +(int a, int b)

This question was addressed to me in an online quiz.

Query is from Introduction of Overloaded Operators topic in division Object Oriented Concepts of C#

  • C#
  • August 22, 2023 at 5:06 am

Which of the following statements are correct in nature?

(a) The conditional logical operators cannot be overloaded

(b) The array indexing operator can be overloaded

(c) A public or nested public preference type does not overload the equality operator

(d) None of the mentioned

I have been asked this question in an interview for job.

Asked question is from Introduction of Overloaded Operators in division Object Oriented Concepts of C#

  • C#
  • September 16, 2023 at 5:06 am

Which of the following keyword is used to overload user defined types by defining static member functions?

(a) op

(b) opoverload

(c) operator

(d) operatoroverload

I had been asked this question during a job interview.

This is a very interesting question from Introduction of Overloaded Operators in division Object Oriented Concepts of C#

  • C#
  • September 4, 2023 at 5:06 am

Viewing 15 topics - 46 through 60 (of 257 total)

1 2 3 4 5 16 17 18
  • You must be logged in to create new topics.