0% found this document useful (0 votes)
6 views

DOT NET MCQ IACSD

Uploaded by

Saumya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

DOT NET MCQ IACSD

Uploaded by

Saumya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

freelance_Project available to buy contact on 8007592194

SR.NOProject NAME Technology


1 Online E-Learning Platform Hub React+Springboot+MySql

2 PG Mates / RoomSharing / Flat Mates React+Springboot+MySql

3 Tour and Travel management System React+Springboot+MySql

4 Election commition of India (online Voting System) React+Springboot+MySql

in
5 HomeRental Booking System React+Springboot+MySql

s.
6 Event Management System React+Springboot+MySql

y
ra
7 Hotel Management System React+Springboot+MySql

ar
8 Agriculture web Project React+Springboot+MySql
9 AirLine Reservation System / Flight booking System

ith
React+Springboot+MySql
10 E-commerce web Project React+Springboot+MySql

w
11 Hospital Management System React+Springboot+MySql

de
12 E-RTO Driving licence portal o React+Springboot+MySql
13 Transpotation Services portal React+Springboot+MySql
.c
14 Courier Services Portal / Courier Management System React+Springboot+MySql
w

15 Online Food Delivery Portal React+Springboot+MySql


w

16 Muncipal Corporation Management React+Springboot+MySql


w

17 Gym Management System React+Springboot+MySql


18 Bike/Car ental System Portal React+Springboot+MySql
19 CharityDonation web project React+Springboot+MySql
20 Movie Booking System React+Springboot+MySql
freelance_Project available to buy contact on 8007592194
21 Job Portal web project React+Springboot+MySql
22 LIC Insurance Portal React+Springboot+MySql
23 Employee Management System React+Springboot+MySql
24 Payroll Management System React+Springboot+MySql
25 RealEstate Property Project React+Springboot+MySql
26 Marriage Hall Booking Project React+Springboot+MySql
27 Online Student Management portal React+Springboot+MySql

in
28 Resturant management System React+Springboot+MySql

s.
29 Solar Management Project React+Springboot+MySql
30 OneStepService LinkLabourContractor

y
React+Springboot+MySql
31 Vehical Service Center Portal

ra
React+Springboot+MySql
32 E-wallet Banking Project React+Springboot+MySql

ar
33 Blogg Application Project React+Springboot+MySql
34 Car Parking booking Project React+Springboot+MySql

ith
35 OLA Cab Booking Portal React+Springboot+MySql
36 Society management Portal React+Springboot+MySql

w
37 E-College Portal React+Springboot+MySql

de
38 FoodWaste Management Donate System React+Springboot+MySql
39 Sports Ground Booking o React+Springboot+MySql
40 BloodBank mangement System React+Springboot+MySql
.c
41 Bus Tickit Booking Project React+Springboot+MySql
Fruite Delivery Project
w

42 React+Springboot+MySql
43 Woodworks Bed Shop React+Springboot+MySql
w

44 Online Dairy Product sell Project React+Springboot+MySql


w

45 Online E-Pharma medicine sell Project React+Springboot+MySql


46 FarmerMarketplace Web Project React+Springboot+MySql
47 Online Cloth Store Project React+Springboot+MySql
48 React+Springboot+MySql
49 React+Springboot+MySql
50 React+Springboot+MySql
1. Which of the following are valid .NET CLR JIT performance counters?
1.Total memory used for JIT compilation
2.Average memory used for JIT compilation
3.Number of methods that failed to compile with the standard JIT
4.Percentage of processor time spent performing JIT compilation
5.Percentage of memory currently dedicated for JIT compilation
Answers
1. A. 1, 5
2. B. 3, 4
3. C. 1, 2
4. D. 4, 5

2. Which of the following .NET components can be used to remove unused references from the
managed heap?
Answers

.in
1. Common Language Infrastructure

ys
2. CLR
3. Garbage Collector
4. Class Loader ra
5. CTS
ar
ith

3. There are the following Jobs given below, which of them are done by Common Language
Runtime?
1. CLR provides garbage collection.
ew

2. CLR enforces type safety strictly.


od

3. CLR provides memory and thread management.


.c

4. CLR provides Code Access Security.


Answers
w

1. A. A, B
w

2. B. C, D
w

3. C. All (A, B, C, D)
4. D. None of these

4. There are the following assemblies given below, which of them can be stored in GAC
(Global Assembly Cache)?
Answers
1. A. Public Assembly
2. B. Private Assembly
3. C. Protected Assembly
4. D. Shared Assembly
5. E. Friend Assembly
5. Which of the following statements is correct about Managed Code?
Answers
1. A. Managed code is the code that is compiled by the JIT compilers
2. B. Managed code is the code where resources are Garbage Collected.
3. C. Managed code is the code that runs on top of Windows.
4. D. Managed code is the code that is written to target the services of the CLR.

6. Which of the following statements is correct?


Answers
1. A constructor can be used to set default values and limit instantiation.
2. Destructors are used with classes as well as structures.
3. A class can have more than one destructor.
4. All of the above.

7. How many times can a constructor be called during lifetime of the object?
Answers

.in
1. As many times as we call it.
2. Only once.

ys
3. Depends upon a Project Setting made in Visual Studio.NET.
4. Any number of times before the object gets garbage collected.
ra
8. The variables in _____access means they are accessible only from within their
ar
declaration context, including any nested procedures.
Answers
ith

1. A. Protected
ew

2. B. Friend
3. C. Protected Friend
4. D. Private
od
.c

9. Boxing converts a value type on the stack to an ______ on the heap.


Answers
w

1. A. Bool type
w

2. B. Instance type
w

3. C. Class type
4. D. Object type

10. C# has _______ operator, useful for making two way decisions.
Answers
1. A. Looping
2. B. Functional
3. C. Exponential
4. D. Conditional
11. We use _________ to fully abstract a class from its implimentation.
Answers
1. A. Interfaces
2. B. Objects
3. C. Packages
4. D. Function Definitions
12. What is the full form of LINQ?
Answers
1. A. Local Integration Query
2. B. Language Integrated Query
3. C. Language Included Query
4. D. None of the above

13. The default scope for the members of an interface is _____.


Answers
1. A. private
2. B. public
3. C. protected
4. D. internal

14. Which among the given classes is present in System.Collection.Generic namespace?


Answers

.in
1. A. Stack
2. B. Tree

ys
3. C. Sorted Array
4. D. All of the mentioned
ra
15. ......represents the ordered collection of an object that can be indexed individually.
ar
Answers
ith

1. A. ArrayList
2. B. BitArray
ew

3. C. Stack
4. D. SortedList
od

16. The … method removes the element with the specified key from the Hashtable.
.c

Answers
w

1. A. public virtual void Remove();


2. B. public virtual void Remove(object key);
w

3. C. public virtual void Clear(object key);


w

4. D. public virtual void Delete(object key);

17. To generate a simple notification for an object in runtime, the programming construct
to be used for implementing this idea?
Answers
1. A. namespace
2. B .interface
3. C. delegate
4. D. attribute

18. What is the value returned by function compareTo( ) if the invoking string is less
than the string compared?
Answers
1. A. Zero
2. B. A value of less than zero
3. C. A value greater than zero
4. D. None of the mentioned

19. Choose the incorrect statement about delegates?


Answers
1. A. delegates are not type safe
2. B. delegates can be used to implement callback notification
3. C. delegate is a user defined type
4. D. delegates permits execution of a method in an asynchronous manner

20. Which of the following is NOT an Arithmetic operator in C#.NET?


Answers
1. A. **
2. B. /
3. C. +
4. D. %

.in
21. The exception classes in C# are mainly directly or indirectly derived from the ___?

ys
Answers
1.
2.
A.
B.
System.Exception class
Exception class
ra
3. C. System.ApplicationException class
ar
4. D. ApplicationException class
ith

22. Which of the following should never be thrown from code?


ew

Answers
1. A. Predefined Exception
od

2. B. ApplicationException
3. C. Custom Exception
.c

4. D. All of the above


w
w

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

Answers
1. A. var sortedProds = _db.Products.Orderby(c => c.Category)
2. B. var sortedProds = _db.Products.Orderby(c => c.Category) + ThenBy(n => n.Name)
3. C. var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name)
4. D. all of the mentioned

24. Choose the wrong statement about the LINQ?


Answers
1. A. The main concept behind the linq is query
2. B. linq makes use of foreach loop to execute the query
3. C. It is not required that linq should make use of IEnumerable interface
4. D. None of the mentioned
25. Which feature enables to obtain information about the use and capabilities of types at
runtime?
Answers
1. A. Runtime type ID
2. B. Reflection
3. C. Attributes
4. D. None of the mentioned

26. What does the following property signify?

MemberTypes MemberType
Answers
1. A. Helps in distinguishing kinds of members
2. B. Property helps in determining if member is a field, method, property or event
3. C. Both a & b
4. D. None of the mentioned

.in
28. What are the methods used in thread class?
Answers

ys
1. A. Join
2. B. Resume ra
3. C. sleep
4. D. SpinWait
ar
5. E. ALL OF THE ABOVE
ith

29. Which Namespaces are required to Data Annotation using MVC?


ew

Answers
1. A. System.ComponentModel.DataAnnotations
od

2. B. System.ComponentModel
3. C. Both A and B
4. D. None of these
.c
w

30. Choose the return types of a controller action method?


w

Answers
w

1. A. ViewResult
2. B. JavaScriptResult
3. C. RedirectResult
4. D. All of the above

31. Can we do validation in MVC using data annotations?


Answers
1. A. Yes
2. B. No
32. What is true about viewbag in mvc?
Answers
1. A. It is used to transfer temporary data from the controller to the view.
2. B. ViewBag only transfers data from controller to view
3. C. ViewBag values will be null if redirection occurs.
4. D. All of the above

33. What is RouteConfig.cs in ASP.Net MVC?


Answers
1. A. RouteConfig.cs is used to register MVC config statements, route config.
2. B. RouteConfig.css is used to register global MVC bundles.
3. C. None
4. D. ALL OF THE ABOVE

34. What is FilterConfig.cs in ASP.Net MVC ?


Answers

.in
1. A. FilterConfig.cs is used to register global MVC filters, HandleErrorAttribute is
registered by default filter. We can also register other filters.

ys
2. B. FilterConfig.cs is used to register global MVC bundles.
3. C. None
4. D. All ra
ar
35. Which attribute is used to define a service class in WCF?
Answers
ith

1. A. Service
ew

2. B. WCFService
3. C. ServiceContract
4. D. None of the above
od
.c

36. WCF is a part of .Net Framework


Answers
w

1. A. 1.0
w

2. B. 2.0
w

3. C. 2.5
4. D. 3.0 and above

37. WCF protocol used to support platform independent communication


Answers
1. A. REST
2. B. HTTP
3. C. SOAP
4. D. None of the Above

38. Entity Framework is an open-source Object-Relational Mapper (ORM)


Answers
1. A. TRUE
2. B. FALSE
39. Which object contains the Position property of the current record in a dataset?

Answers
1. A. BindingContext
2. B. BindingData
3. C. DataBinding
4. D. DataBound

40. What are the Command Object Methods?


Answers
1. A. ExecuteNonQuery
2. B. ExecuteReader
3. C. ExecuteScalar
4. D. All of the above.

.in
ys
ra
ar
ith
ew
od
.c
w
w
w
MS.Net Technologies PG-DAC IACSD,Akurdi

1. When does Garbage collector run?

Every one minute

When application is running low of memory

It runs randomly

2. Which of the following is not JIT compiler type?

Pre-JIT

ECONO-JIT

Normal-JIT

.in
Abnormal-JIT

4. Which of the following is not a .NET compatible language?

ys
C#

J#
ra
ar
VB.NET
ith

Java
ew

5. Limitation of XML serialization


od

It doesn’t serialize type information

It can't serialize DataSet objects


.c

It can’t serialize XMLNode object


w

All of the above


w
w

6. Which of the following statment is not correct?

CLR is an execution engine of .NET

Assembly is a logical unit of deployment

CLR executes manage code

.Net provides cross language interoperability using code access security

1
MS.Net Technologies PG-DAC IACSD,Akurdi

7. Which of the CLR component allows .net application exchange data with COM application?

Base class library

COM marshaller

Class loader

Thread support

8. Content of assembly can be viewed using

ILDASM.exe

ILDASM.dll

.in
ILDASM.inc

ILDASM.aspx

ys
9. JIT compiler is a part of the runtime execution environment

Yes
ra
ar
No
ith

10. What is CTS in .NET?


ew

Defines rules concerning data types


od

Defines a set of rules for all compilers to generate manage code for .NET

Describes a set of features that different languages have in common


.c

None of the above


w
w

11. Which Types are supported by CTS?


w

Value type

Refernce types

Both

12. Which of the following does the actual .Net code execute?

CLS

CTS

CLR

2
MS.Net Technologies PG-DAC IACSD,Akurdi

13. Features of automatic memory management in .Net

Allocating memory

Releasing memory

Implementing finalizers

All of the above

14. Which of the following is not the content of the assembly manifest?

Version number

Strong name

.in
Culture

Assembly name

ys
Assembly source code

ra
15. Which of the following is not true for garbage collection?
ar
It manages the reclamation of unused memory
ith

It deals with circular references


ew

You can be certain when an object will be reclaimed by garbage collector

It disposes unreferenced objects


od

16. Which of the following is not true about .Net structure?


.c

structures are value types


w

structures use new keyword upon instantiation


w
w

structures can have events as member

structures are reference types

17. What is strong name?

It is similar to GUID in COM

It is required when we need to deploy assembly in GAC

It helps GAC to differentiate between tow versions

All of the above

3
MS.Net Technologies PG-DAC IACSD,Akurdi

18. __________ contains information about the assembly and the resources that it
depends on
MSIL

Assembly manifest

GAC

Type metadata

19. Common language specification(CLS)

is an execution engine for all .net application

.in
is similar to JVM as in Java

ys
defines standard rules for defining .Net compliant languages

ra
ar
is a compiler
ith
20. using or Imports statement
allows references to members of a namespace without using the fully qualified name
ew

use to reference an external library


od

both a and b
.c

21. Which of the following is not true for .NET exception?


w

All exceptions in .NET are derived from Exception base class


w
w

Exceptions can’t be generated programmatically

We have system exceptions and application exceptions in .NET

22. Can we control when a destructor is called?


Yes

No

4
MS.Net Technologies PG-DAC IACSD,Akurdi

23. What is strong name?


It is similar to GUID in COM

It is required when we need to deploy assembly in GAC

It helps GAC to differentiate between tow versions

All of the above

24. What is MSIL?


Multi Socket Interface Library

.in
Microsoft Intermediate Language

ys
Microsoft Interface Language

ra
Microsoft Integer Long ar
25. Which method do you invoke on the SQLDataAdapter object to load your dataset with data?
Update
ith

Fill
ew

Gather
od

Load
.c
w

26. A class that cannot be inherited is what type of class?


w

Sealed
w

Static

Gather

Constru

5
MS.Net Technologies PG-DAC IACSD,Akurdi

27. Managed methods will be marked as ------------ in MSIL code


cil

dgclr

mscorjit

none
28. Which of following is correct:

enum Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}

.in
Day enum{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}

ys
Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}

ra
enumeration Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
ar
29. An assembly is
ith

A collection of files that appear to the programmer to be a single DLL or EXE.


ew

properties of c#
od

events Of c#
.c

declarative syntax of Java


w
w

30. What is boxing?


w

Encapsulating an object in a value type.

Encapsulating a copy of an object in a value type.

Encapsulating a value type in an object.

Encapsulating a copy of a value type in an object.

6
MS.Net Technologies PG-DAC IACSD,Akurdi

31. Which object can help you maintain data across users?

Session object

Application Object

Server Object

Response Object
32. Choose the correct one

XML serialization serializes the public fields and properties of an object

.in
XML serialization serializes the private fields and properties of an object

ys
XML serialization serializes only the public methods.

ra
None ar
33. Which SqlCommand execution returns the number of effected records in the table?
ith

ExecuteNonQuery
ew

ExecuteReader
od

ExecuteXmlReader
.c

ExecuteScalar
w
w

34. Which of the following is true ?


w

DataTable object contain DataRow and DataColoumn objects

DataSet and DataTable can be binary serialized

DataSet and DataTable can be XML serialized

All of the above

7
MS.Net Technologies PG-DAC IACSD,Akurdi

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


ThreadStart

ParameterizedThreadStart

ThreadStartWithOneParameter

None
36. Why should you write the cleanup code in Finally block?

Compiler throws an error if you close the connection in try block.

Resource cannot be destroyed in catch block.

.in
Finally blocks run

ys
37. Can you inherit multiple interfaces?
Yes
ra
ar
No
ith

38. Two methods with the same name but with different parameters.
ew

Overloading
od

Loading
.c

Multiplexing
w
w

Duplexing
w

39. Sealed Classes cannot be a base class.


True

False

8
MS.Net Technologies PG-DAC IACSD,Akurdi

40. If you want to add an array in ArrayList then which method of ArrayList will be used?
AddRange

Add

AddArray

None of the above

41. int keyword targets to which .Net type?


System.Int8

System.Int16

.in
System.Int32

ys
System.Int64

ra
42. How many web.config files that can be there an ASP.NET application?
ar
only one
ith

only two
ew

upto 10
od

one or more

43. What is accessibility modifier "protected internal"?


.c

It is available to classes that are within the same assembly or derived from the specified base class.
w
w

It is available within the class definition


w

It is the most permissive access level

It is the least permissive access level

9
MS.Net Technologies PG-DAC IACSD,Akurdi

44. What does a strong name contain?

assembly name

assembly version

public key

All the above

None of these

45. In C# Thread.Sleep(time) measures time in:

.in
seconds

ys
milliseconds

ra
nanoseconds ar
all of the above
ith

46. While updating, which method of the SqlCommand is best to use?


ew

ExecuteQuery
od

ExecuteUpdate

ExecuteNonQuery
.c
w

ExecuteCommand
w

47. DataSet supports which type of Architecture?


w

connection - oriented Architecture

connection – less Architecture

10
MS.Net Technologies PG-DAC IACSD,Akurdi

both

none

48. Which is the first event of ASP.NET page, when user requests a web page?

A) PreLoad
B) Load
C) Preinit
D) Init

49. If a user wants to create controls at runtime which event should be used to write code?

.in
A) PreLoad
B) Load

ys
C) Init

ra
D) PreInit
ar
50. What is the fully qualified name of the base class of all server controls?
A) System.Web.UI.Control
ith

B) System.Web.UI
ew

C) System.Control
D) All of the above.
od

51. When should you use HTML server control rather than web server controls?
A) You are migrating existing, classic ASP pages over to ASP.NET pages.
.c

B) The control needs to have custom client-side JavaScript attached to the control’s events.
w

C) The Web page has lots of client-side JavaScript that is referencing the control.
w

D) All of the above.


w

52. Which attribute is necessary for HTML control to work as a HTML server control?
A) runat=”server”
B) runat=”web-server”
C) ID=”server”

11
MS.Net Technologies PG-DAC IACSD,Akurdi

53. Some control, by default, does not cause an automatic PostBack, i.e TextChanged event of
TextBox. Which property will you set for automatic postback of these types of controls?
A) isPostBack=”false”
B) isPostBack=”true”
C) PostBack=”true”
D) AutoPostBack=”true”
54. What happens in the Init event of a page?
A) ViewState is loaded on the page.
B) Each child control of the page is initialized to its design time values.
C) HTML is rendered.
D) None of the above.

55. To group multiple RadioButton controls together, which property will you set for each

.in
RadioButton control in the group?
A) Specify the same GroupName for each RadioButton.

ys
B) Specify the different GroupName for each RadioButton.

ra
C) Specify the same GroupID for each RadioButton.
D) Specify the same ID for each RadioButton.
ar
56. The ________________ property affects how the .Net Framework handles dates, currencies,
ith

sorting and formatting issues.


ew

CurrentUICulture
CurrentCulture
od

57. Where do we include the user lists for windows authentication?


.c

< Credential>
w

< authorization>
w

< identity>
< authentiation>
w

58. Which of the following authentication is best suited for a corporate network?
Windows
Form
User

12
MS.Net Technologies PG-DAC IACSD,Akurdi

59. _____________is a property common in every validation control.

ValidationExpression
InitialValue
ValueToCompare
ControlToCompare
ControlToValidate
60. What namespace does the Web page belong in the .NET Framework class hierarchy?
System.Web.Control
System.Web.RootBuilder
System.Web.UserControl
System.Web.UI.Page

.in
61. Name the ASP.NET object that is used to get information about the web servers.
The Application object

ys
The Server object

ra
The Response object
The Request object
ar
62. Which one of the following is used to validate an e-mail address pattern?
ith

Extended expressions
ew

Irregular expressions
Regular expressions
None
od

63. For separating server-side code from client-side code on a ASP.NET page, what programming
.c

model should you use?


w

Separation model
w

Code-Behind model
In-Line model
w

ClientServer model

64. What ASP.NET object encapsulates the state of the client and the browser?
Application Object
Session Object

13
MS.Net Technologies PG-DAC IACSD,Akurdi

Response Object
Request Object

65. You need to store state data that is accessible to any user who connects to your Web
application. Which object should you use?
Session
Application
Response.Cookies
Response.ViewState

66. Which of the following is a requirement when merging modified data into a DataSet?
A primary key must be defined on the DataTable objects
The DataSet schemas must match in order to merge

.in
The destination DataSet must be empty prior to merging
A DataSet must be merged into the same DataSet that created it.

ys
ra
67. Which Kind Of data we can store in viewstate
Viewstate can store only serilizable object
ar
Viewstate can store anything
Viewstate can store onlys string
ith

None
ew

68. Which of these data source controls do not implement Caching?


LinqDataSource
od

ObjectDataSource
SqlDataSource
.c

XmlDataSource
w
w

69. ___________ allows executing ASP.NET application level events and setting application-level
variables.
w

Application object
Global.asax file
Impersonation
Web.config file

14
MS.Net Technologies PG-DAC IACSD,Akurdi

70. _________________ file apply settings to all ASP.NET applications


web.config
machine.config
global.asax file
application object

71. In case of _______________, there is a round trip and hence puts a load on server.
response.redirect
server.transfer

72. Which type of caching is good if the website is fairly static?


Page Fragment caching
Page output caching

.in
73. From which class global.asax file derived?
HTTP Application class

ys
HTTP SessionState class

ra
74. In which mode of storing ASP.NET session, session state is serialized and stored in a
ar
separate process.
ith

InProc
ew

StateServer
SQL Server
od

75. Display validation errors in a central location or display a general validation error description.
CompareValidator
.c

RangeValidator
w

CustomValidator
w

ValidationSummary
w

76. Which namespace provides classes for debugging and tracing application execution?

System.Security
System.Net
System.Diagnostics

15
MS.Net Technologies PG-DAC IACSD,Akurdi

System.web.configuration

77. When user request a web page by entering Uniform Resource Locator (URL) then which
method /verb/command is used in ASP.NET?
A) POST
B) SET
C) GET
D) All of the above

78. Match the following


a. Web Form --------------i. .ascx
b. Web User Control-------ii. .asmx
c. Web Service -----------iii. .aspx

.in
(A) a-iii, b-i, c-ii

ys
(B) a-ii , b-i, c-iii

ra
(C) a-i, b-ii, c-iii
79. You want to make a configuration setting change that will affect only the current Web
ar
application. Which file will you change?
A) Global.asax
ith

B) Web.config in the root of the Web application


ew

C) Machine.config
D) All of the above
od

80. In ASP.NET application DLL files are stored in which folder?


A) App_Code
.c

B) App_Data
w

C) Bin
w

D) App_LocalResources
w

81. Which of the following is not an ASP.NET page event?

A) Init
B) Load
C) Import

16
MS.Net Technologies PG-DAC IACSD,Akurdi

D) None of the above.

82. ___________is an extension of ASP.net page file

A. .WebForm1
B. .asp
C. .asax
D. .aspx

83. To Enter secured text ,the ________property of a text box can be set to password

A. TextBox1.type

.in
B. TextBox1.style

ys
C. TextBox1.TextMode

ra
D. TextBox1.Mode
ar
ith

84. __________ is the configuration file for your web application


ew

A. machine.config
B. web.config
od

C. assemblyinfo.cs
.c

D. webapplication.vsdisco
w

85. In comparevalidator ,the operator are taken from the _________


w
w

A. validation datatype
B. validationcompareoperator
C. validationoperators
D. none

17
MS.Net Technologies PG-DAC IACSD,Akurdi

86. All web controls are derived from ___________ class

A. web control
B. page
C. controls
D. none of the above

87. The Following are the minimum requirement to run Asp.net pages

A. Java Virtual Machine

.in
B. Common Language Runtime
C. Windows explorer

ys
D. None

88. Postback occurs in which of the following forms


ra
ar
A. Winforms
ith

B. HTMLForms
ew

C. DOTNETForms D. Webforms
od

89. How do you register a user control?

A. Add Tag prefix, Tag name


.c

B. Add Source, Tag prefix


w

C. Add Src, Tagprefix, Tagname


w

D. None
w

18
MS.Net Technologies PG-DAC IACSD,Akurdi

90. Why is Global.asax is used

A. Implement application and session level events


B. Declare Global variables
C. No use
D. Dont know

91. What is the difference between user control and custom control

A. Both can use as drag and drop tool

.in
B. Both are same
C. Both can use different application

ys
D. One Custom Control can be use in different project but not the same with User control

ra
ar
92. Where is the default Session data is stored in ASP.Net
ith

A. InProcess
ew

B. StateServer
C. SQL Server
od

D. All of the above


.c
w

93. Who can access Session state variables


w
w

A. All Users of an application


B. A Single session
C. All users within a single tunnel

19
MS.Net Technologies PG-DAC IACSD,Akurdi

D. None

94. What does Response.End will do?

A. It will stop the server process


B. It will stop the client process
C. None of the above
D. None

95. Which control supports paging

.in
A. Repeater

ys
B. Datagrid
C. Both
D. None
ra
ar
96. Which of the following is not a member of Response Object?
ith

A. Clear
ew

B. Write
C. Execute
od

D. Flush
.c

97. Which of the following is not a member of ADODBCommand object


w
w

A. ExecuteReader
w

B. ExecuteScalar
C. ExecuteStream
D. CommandText

20
MS.Net Technologies PG-DAC IACSD,Akurdi

98. How to open more than one datareader at a time

A. Use different datareader variable


B. Use different datareader and connection variable
C. Use Different Connection
D. Can not be done

99. Which objects is used to create foreign key between tables?

A. DataRelation
B. DataRelationship
C. DataConstraint

.in
D. Datakey

ys
ra
100. Which one of the following namespaces contains the definition for IdbConnection
ar
A. System.Data.Interfaces
ith

B. System.Data.Common
ew

C. System.Data
D. System.Data.Connection
od
.c

101. What is a strong name?


w

A. Public Key
w
w

B. Private Key
C. Combination Of Public, Private key and digital signature
D. None

21
MS.Net Technologies PG-DAC IACSD,Akurdi

102. What is the purpose of Reflection?

A. For Reading metadata at runtime


B. For knowing version of assembly
C. For finding path of an assembly
D. None

103. Which of the following are not a member of Server Object

A. Execute

.in
B. Transfer
C. Open

ys
D. HTMLDecode

ra
ar
104. What is the Server.MachineName does
ith

A. Gets the Server`s Machine Name


ew

B. Gets the Referred Web site name on the server


C. Gets the Client Machine Name
od

D. None
.c
w

105. How do you add ASP.Net 3rd party component


w
w

A. By add/Remove items in the project menu


B. Add reference of dll file and place the code where ever required
C. Cannot add third party component to asp.net

22
MS.Net Technologies PG-DAC IACSD,Akurdi

D. None

106. UDDI stands for _________

A. Universal Description Discovery and Integration


B. Unique Description Discovery and Integration
C. Universal Data Discovery and Integration
D. Universal Discovery Data Information

.in
107. we can create a proxy file for the web service by using ___________ tool

ys
A. webservice.exe

ra
B. webserviceutil.exe
C. WSDL.exe
ar
D. ILDASM.exe
ith
ew

108. The custom control page should contain___________ directives


od

A. @page
.c

B. @Register
C. @Control
w

D. @WebService
w
w

109. The class control is present in ___________ namespace

A. System

23
MS.Net Technologies PG-DAC IACSD,Akurdi

B. System.Web
C. System.Web.UI
D. System.Web.UI.Controls

110. The authentication type that uses cookies is known as ___________ authentication

A. windows
B. forms
C. passport
D. none

.in
ys
111. The process of location errors in code is known as ___________

A. Tracing
ra
ar
B. Compiling
ith

C. Caching
ew

D. Debuging
od

112. ___________ is technique used to increase performance by keeping frequently


.c

accessed data in memory


w

A. Tracing
w

B. Caching
w

C. Debuging
D. All of the above

24
MS.Net Technologies PG-DAC IACSD,Akurdi

113. The_______ method of the ____object is used to retrieve the data in the form fields
submitted by the user

A. form,server
B. form,response
C. form,request
D. form,application

.in
114. The Property of the radio button controls restricts the user to select one option from
the given set of options

ys
A. Group name
B. Group id
ra
ar
C. id
ith
D. text
ew

115. Setting the text box to ____allow the user to enter many lines of data
od

A. many lines
.c

B. more lines
w

C. multi lines
w

D. password
w

25
MS.Net Technologies PG-DAC IACSD,Akurdi

116. Applcation_OnBeginrequest fires when

A. fired every time a page request begins


B. fired when the first asp.net page in the current application directory is called
C. fired every time when newsession begins
D. fired when session ends

117. The ASP.NET HTML controls exists in the __________ namespace

A. system.web

.in
B. System.web.UI
C. System.web.UI.HTMLcontrols

ys
D. System.web.UI.Webcontrols

ra
ar
118. The __________ method of the server object is used by server and acts as an
ith

interface between the virtual/relatives directories on the web server & the physical
ew

directories on the server

A. Server.URLEncode()
od

B. Server.MapPath()
.c

C. Server.HTMLEncode
w

D. Server.Transfer()
w
w

119. Which is the executable unit, which gets created when we build an ASP.Net
application?

A. .EXE

26
MS.Net Technologies PG-DAC IACSD,Akurdi

B. .DLL
C. .COM
D. .ASPX

120. To add a custom control to a Web form we have to register with

A. TagPrefix
B. Name space of the dll that is referenced
C. Assemblyname
D. All of the above

.in
ys
121. A web application running on multiple servers is called as

A. WebForm
ra
ar
B. Webfarm
ith

C. Website
ew

D. webgarden
od

122. What is the extension of a web user control file?


.c

A. .asmx
w

B. .ascx
w
w

C. .aspx
D. .ashx

27
MS.Net Technologies PG-DAC IACSD,Akurdi

123. What is the default session out time

A. 20 Sec
B. 20 Min
C. 1 hr
D. Never

124. Which of the following is true ?

A. IsPostBack is a method of System.UI.Web.Page class

.in
B. IsPostBack is a method of System.Web.UI.Page class
C. sPostBack is a readonly property of System.Web.UI.Page class

ys
125. What is the default authentication mode for IIS
ra
ar
A. Windows
ith

B. Anonymous
ew

C. Basic Authentication
D. None
od

126. Which of the following is not a valid state management tool?


.c

A. Application State
w

B. Hidden Form Field


w

C. Querystate
w

D. Cookies

28
MS.Net Technologies PG-DAC IACSD,Akurdi

127. How do you explicitly kill a user`s session?

A. Session.Close
B. Session.Discard
C. Session.Abandon
D. Session.End

128. What is the purpose of code behind?

A. To separate different sections of a page in to different files


B. To merge HTML layout and code in to One file
C. To separate HTML Layout and code to different file

.in
D. To ignore HTML usage

ys
ra
129. The object used by SQL connection to make Security Demands
ar
A. SQLLCientAttribute
ith

B. SQLPermission
ew

C. SQLPermissionClient
D. SQLClientPermission
od
.c

130. What is the Full Form of WSDL


w

A. Web System Description Language


w
w

B. Web Services Detail Language


C. Web Service Description Language
D. None

29
MS.Net Technologies PG-DAC IACSD,Akurdi

131. What is the size of the session ID

A. 32 bit long string


B. 32 bit long double
C. 32 bit long character
D. 32 bit long integer

132. Which of the following extension does a webservice file will have

.in
A. .asmx

ys
B. .aspx
C. .ascx
D. .resx
ra
ar
ith

133. What is a diffgram?


ew

A. The one which renders the dataset object contents to XML


od

B. Finds the difference in two objects


C. Finds the difference in two files
.c

D. None of the above


w
w
w

134. Select the output of the statement < form method=post action=”test.aspx” >

A. Transfers all the form data to test.aspx with HTTP headers


B. Transfers all the form data to test.aspx with out HTTP headers

30
MS.Net Technologies PG-DAC IACSD,Akurdi

C. Calls post method on test.aspx


D. None of the above

135. Trace output can be sort by specifing ___________ attribute of page directive

A. Trace
B. TraceMode
C. OutputBy
D. Language

.in
ys
136. Select the correct query that will give only positive numbers. You can refer the given
below array.
int[] nums = { 1, -2, 3, 0, -4, 5 ,10,20,-3,100,30};
ra
ar
A) var posNumber = from n in nums
ith
where n > 0
select n;
ew

B) var posNumber = from n in nums


od

where n is positive
select n;
.c

C) var posNumber = from n in nums


w

where n is positive Int select n;


w

137. An integer array is given as follows


w

int[] nums = { 10, -19, 4, 7, 2, -5, 0,100,50 };


Select the correct query to find out the sorted number.
A) var sortNums = from n in nums orderby n

31
MS.Net Technologies PG-DAC IACSD,Akurdi

B) var sortNums = from n in nums


sortedby n
select n;
C) var sortNums = from n in nums
orderby n
select n;
D) None of the above.

138. Which namespace is necessary to use LINQ?

.in
A) System.Data
B) System.Linq

ys
C) System.Object

ra
D) None of the above. ar
139. What are different flavors of LINQ?
ith

A) LINQ to Objects
ew

B) LINQ to ADO.NET
od

C) LINQ to XML
D) All of the above.
.c

140. Trace the output of given below code.


w

List<int> numbers = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };


w

IEnumerable<int> query = numbers.Where(num => num > 5 && num < 10);
w

foreach (var n in query)


{
Console.Write(n+" ");

32
MS.Net Technologies PG-DAC IACSD,Akurdi

A) 6 7 8 9
B) Compile Time Error
C) Run Time Error
D) None of the above.

141. Trace the output of given below code.


using System;

.in
class Program
{

ys
delegate int delDemo(int x, int y);

ra
ar
static void Main(string[] args)
ith

{
delDemo d1 = (x, y) => x * y;
ew

delDemo d2 = (x, y) => { return x + y; };


od

delDemo d3 = delegate(int x, int y) { return x - y; };


int z1 = d1(10, 5);
.c

int z2 = d2(10, 5);


w

int z3 = d3(10, 5);


w

Console.WriteLine(z1);
w

Console.WriteLine(z2);
Console.WriteLine(z3);
}
}

33
MS.Net Technologies PG-DAC IACSD,Akurdi

A) 50 15 5
B) 10 5
C) The above program will not compile.
D) None of the above.

142. According to given below statements, choose the correct option.


Statement 1: An extension method is defined as static method but it is called like as an

.in
instance method.
Statement 2: An extension method first parameter is preceded by the "this" keyword.

ys
Statement 3: An extension method is defined as static method and it is not called like as

ra
an instance method. ar
Statement 4: An extension method first parameter does not preceded by the "this"
ith
keyword.
ew

A) Only statement 1 and 2 are correct.


od

B) Only statement 2 and 3 are correct.


.c

C) Statement 3 and 4 are correct.


w

D) Only statement 4 is correct.


w
w

34
MS.Net Technologies PG-DAC IACSD,Akurdi

143. Trace the output of given below code.

List<int> data = new List<int> { 10, 20, 30, 40, 50 };


Console.WriteLine(data.Sum());
Console.WriteLine(data.Average());
Console.WriteLine(data.Max());

A) 50 30 150

.in
B) 150 30 50
C) 150 50 30

ys
D) None of the above

ra
ar
144. If a class is using an interface, it must
ith
ew

inherit the properties of the interface


contain the same methods as the interface
od

create an interface object


.c

all of the above


w
w

145. ___________________ allow to encapsulate discrete units of functionality and


w

provide a graphical representation of that functionality to the user

controls
object

35
MS.Net Technologies PG-DAC IACSD,Akurdi

class
graphics

146. Features of Read only variables

It is allocated at compile time


Declaration and initialization is separated
It is allocated at runtime
all of these

.in
ys
147. Convert vs. Parse methods

ra
Convert allows null values, Parse cannot
ar
Convert converts the value, Parse is for parsing
ith

Both are same


ew

None of these
od

148. The uniqueId that gets generated at the start of the Session is stored in
.c
w

Client computer as a cookie


w

Server machine
w

Passed to and fro on each and every request and response


Both a and b are correct

36
MS.Net Technologies PG-DAC IACSD,Akurdi

149. A method is written as follows

string DemoFunction(string s)
{
-------
- - - - - - -}

Choose the correct code for delegate declaration to call above function.

A) delegate string name_of_delegate (string str);

.in
B) string name_of_delegate (string str);

ys
C) delegate string name_of_delegate (string s, string str);
D) None of the above.

ra
ar
ith
150.

delegate void Test();


ew

class DelegateTest
od

{
public void function1()
.c

{
w

Console.WriteLine("Function 1 called");
w

}
w

A) DelegateTest obj = new DelegateTest();

37
MS.Net Technologies PG-DAC IACSD,Akurdi

Test delObj =obj.function1;


delObj();

B) DelegateTest obj = new DelegateTest();


Test delObj = new Test (obj.function1);
delObj();

C) Option A and B both are correct.


D) None of the above.

.in
ys
ra
ar
ith
ew
od
.c
w
w
w

38
https://www.youtube.com/@codewitharrays

https://www.instagram.com/codewitharrays/

in
s.
https://t.me/codewitharrays Group Link: https://t.me/cceesept2023

y
ra
ar
ith
+91 8007592194 +91 9284926333

ew
od
.c
w
[email protected]
w
w

https://codewitharrays.in/project

You might also like