Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

Choose the wrong statement about the properties used in C#.NET?

(a) Each property consists of accessor as get and set

(b) A property cannot be either read or write only

(c) Properties can be used to store and retrieve values to and from the data members of a class

(d) Properties are like actual methods which work like data members

I had been asked this question in a job interview.

I would like to ask this question from Introduction of Properties in chapter Indexers and Exception Handling of C#

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

Which among the following are the advantages of using indexers?

(a) To use collection of items at a large scale we make use of indexers as they utilize objects of class that represent the collection as an array

(b) Indexers are also convenient as they can also make use of different types of indexers like int, string etc

(c) An indexer allows an object to be indexed such as an array

(d) All of the mentioned

I had been asked this question in homework.

My enquiry is from Introduction of Indexers in portion Indexers and Exception Handling of C#

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

Choose the correct statement among the followings?

(a) Indexers are location indicators

(b) Indexers are used to access class objects

(c) Indexer is a form of property and works in the same way as a property

(d) All of the mentioned

I have been asked this question during an online interview.

This interesting question is from Introduction of Indexers topic in division Indexers and Exception Handling of C#

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

Can we use linq to query against a DataTable?

(a) Yes

(b) No

(c) Either Yes or No

(d) None of the mentioned

I got this question during an interview.

My query is from Fundamental of LINQ in portion Delegates, Generics and LINQ of C#

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

Choose the namespace in which the interface IEnumerable is declared?

(a) System.Collections

(b) System.Collections.Generic

(c) Both System.Collections & System.Collections.Generic

(d) None of the mentioned

The question was asked in a job interview.

My question is from Fundamental of LINQ topic in chapter Delegates, Generics and LINQ of C#

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

Choose the wrong statement about the LINQ?

(a) The main concept behind the linq is query

(b) linq makes use of foreach loop to execute the query

(c) It is not required that linq should make use of IEnumerable interface

(d) None of the mentioned

This question was posed to me in homework.

This interesting question is from Fundamental of LINQ topic in chapter Delegates, Generics and LINQ of C#

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

Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product name?

(a) var sortedProds = _db.Products.Orderby(c => c.Category)

(b) var sortedProds = _db.Products.Orderby(c => c.Category) + ThenBy(n => n.Name)

(c) var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name)

(d) all of the mentioned

This question was posed to me by my school principal while I was bunking the class.

Question is taken from Fundamental of LINQ in division Delegates, Generics and LINQ of C#

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

Which of the given statements are valid about generics in .NET Framework?

(a) generics are useful in collection classes in .NET framework

(b) generics delegates are not allowed in C#.NET

(c) generics is a not language feature

(d) all of the mentioned

The question was posed to me during an internship interview.

This question is from Generic Methods topic in section Delegates, Generics and LINQ of C#

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

Choose the advantages of using generics?

(a) Generics facilitate type safety

(b) Generics facilitate improved performance and reduced code

(c) Generics promote the usage of parameterized types

(d) All of the mentioned

The question was posed to me in an online quiz.

Question is from Fundamental of Generics topic in portion Delegates, Generics and LINQ of C#

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

Are generics in C# are same as the generics in java and templates in C++?

(a) Yes

(b) No

(c) May be

(d) None of the mentioned

The question was posed to me by my school principal while I was bunking the class.

Origin of the question is Fundamental of Generics topic in division Delegates, Generics and LINQ of C#

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

Viewing 15 topics - 226 through 240 (of 257 total)

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