ASP.Net MCQ Quiz Hub

ASP.Net Mcq Question Set 4

Choose a topic to test your knowledge and improve your ASP.Net skills

Which property will you set for each RadioButton Control in the group?





✅ Correct Answer: 4

Which file contains settings for all .NET application types, such as Windows, Console, ClassLibrary, and Web applications?





✅ Correct Answer: 2

Which object data is included in bookmarks and e-mailed URLs?





✅ Correct Answer: 3

If you want to validate the email addresses, Social Security numbers, phone numbers, and dates types of data, which validation control will be used?





✅ Correct Answer: 3

When should you use the OleDbConnection object?





✅ Correct Answer: 3

In a SQL Statement while working with SqlCommand it returns a single value, at that time which method of Command Object will be used?





✅ Correct Answer: 3

According to the given below statements, choose the correct option. Statement 1: Application caching is the process of storing data (and not pages) in a cache object. Statement 2: Page output caching stores a rendered page, portion of a page, or version of a page in memory. Statement 3: Caching reduces the time required to render cached page in future requests.





✅ Correct Answer: 4

Choose the correct one. int[] numbers = { 9, 10, 0, 11 }; var nums = from n in numbers select n + 1; foreach (var i in nums) { Console. Write (i+”,”); }





✅ Correct Answer: 1

Choose the correct one. int[] numbers = { 9, 4, 1, 3, 8, 6, 7, 2,1 }; var nums = numbers.Take(3); foreach (var n in nums) { Console.WriteLine(n); }





✅ Correct Answer: 2

Choose the correct one. int[] numbers = { 5, 4, 11, 3, 9, 8, 6, 7, 2, 0 }; var nums = numbers.Skip(4); foreach (var n in nums) { Console.Write(n+” “); }





✅ Correct Answer: 1

Choose the correct one. int[] A = { 0, 2, 4, 5, 6, 8 }; int[] B = { 1, 3, 5, 7, 8 }; var nums = A.Union(B); foreach (var n in nums) { Console.Write(n+” “); }





✅ Correct Answer: 2

Choose the correct one. int[] A = { 0, 2, 4, 5, 6, 8, 9 }; int[] B = { 1, 3, 5, 7, 8 }; IEnumerable nums = A.Except(B); foreach (var n in nums) { Console.Write(n +” “); }





✅ Correct Answer: 3

Which LINQ statement defines the range variable in a LINQ query?





✅ Correct Answer: 1

Which query expression is used to limit the number of results?





✅ Correct Answer: 2

Which interface defines the basic extension methods for LINQ?





✅ Correct Answer: 3

What LINQ expressions are used to shape results in a query? 1. where 2. select 3. join 4. group





✅ Correct Answer: 1

What types of shapes can LINQ query results be shaped into? 1. Collections of primitive types 2. Collections of complex types 3. Single types 4. Collections of anonymous types





✅ Correct Answer: 1

Which LINQ statement is used to merge two data sources to perform queries?





✅ Correct Answer: 3

Which LINQ keyword is used to categorize results in a query?





✅ Correct Answer: 4

Which of the following statements is true?





✅ Correct Answer: 2

LINQ query can work with?





✅ Correct Answer: 4

How you can merge the results from two separate LINQ queries into a single result set.





✅ Correct Answer: 4

Which of the following objects represents a LINQ to SQL O / R map?





✅ Correct Answer: 4

What is lamda expression? 1. Anonymous function 2. Can be used to create delegates 3. Named function 4. None





✅ Correct Answer: 1

Choose the correct one





✅ Correct Answer: 1

Choose the correct one.





✅ Correct Answer: 2

Choose the correct one





✅ Correct Answer: 1

Choose the correct option.





✅ Correct Answer: 2

Which of the following statement is correct?





✅ Correct Answer: 1

What types of Objects can you query using LINQ?





✅ Correct Answer: 4

When do LINQ queries actually run?





✅ Correct Answer: 4

Which of the following statement / s is / are true?





✅ Correct Answer: 2

An interface can contain declaration of?





✅ Correct Answer: 1

Which of the following are correct? 1. An interface can be instantiated directly. 2. Interfaces can contain constructor. 3. Interfaces contain no implementation of methods. 4. Classes and structs can implement more than one interface. 5. An interface itself can inherit from multiple interfaces.





✅ Correct Answer: 1

Which of the following are correct? 1. Delegates are like C++ function pointers. 2. Delegates allow methods to be passed as parameters. 3. Delegates can be used to define callback methods. 4. Delegates are not type safe.





✅ Correct Answer: 2

Properties in .NET can be declare as 1. Static, Protected internal, Virtual 2. Public, internal, Protected internal 3. Only public 4. None





✅ Correct Answer: 1

Which of the following statements are correct? 1. Indexers enable objects to be indexed in a similar manner to arrays. 2. The this keyword is used to define the indexers. 3. Indexers can be overloaded. 4. Indexer cannot be used in interface





✅ Correct Answer: 3

The best way for handling exception when dealing with a database connection?





✅ Correct Answer: 3

For building new types at runtime which class can be used?





✅ Correct Answer: 4

Reflection can be used when?





✅ Correct Answer: 1

You need to select a class that is optimized for key - based item retrieval from both small and large collections. Which class should you choose?





✅ Correct Answer: 2

You need to identify a type that meets the following criteria: • Is always a number. • Is not greater than 65,535. Which type should you choose?





✅ Correct Answer: 1

Which of the following is dictionary object?





✅ Correct Answer: 4

You want to configure the application to use the following authorization rules in web.config file. • Anonymous users must not be allowed to access the application. • All employees except ABC must be allowed to access the application.





✅ Correct Answer: 2

An assembly must have an permission to connect with web server is?





✅ Correct Answer: 3

Thread class has the following property. A. ManagedThreadID B. IsBackground C. IsBackgroundColor D. Abort





✅ Correct Answer: 1

Which delegate is required to start a thread with one parameter?





✅ Correct Answer: 2

For locking the data with synchronization which class will be used?





✅ Correct Answer: 3

How many readers can simultaneously read data with ReaderWriterLock if there is no writer locks apply?





✅ Correct Answer: 4

Which of the following are value types?





✅ Correct Answer: 4