Microsoft Azure Multiple-Choice Questions (MCQS)
Microsoft Azure Multiple-Choice Questions (MCQS)
Microsoft Azure MCQs: This section contains multiple-choice questions and answers on the
various topics of Microsoft Azure. Practice these MCQs to test and enhance your skills on
Microsoft Azure.
A. 2004
B. 2002
C. 2010
D. 2001
Answer: C) 2010
Explanation:
Explanation:
Cloud computing is a general term that is used to store a huge amount of data over the internet.
This is a platform where you can access your data from any remote server.
Explanation:
Microsoft Azure is an open cloud computing service which is created by Microsoft that helps us
in the development of an application, hosting an application, testing, managing, and deploying
an applications. It provides a variety of services and technologies which can greatly be used for
cloud service, mobile app development, etc.
A. 3
B. 2
C. 4
D. 5
Answer: A) 3
Explanation:
There are three types of cloud in Azure: PAAS, SAAS, and IASS.
A. A directory where you can manage services, and app users from a distributed location.
B. A directory where you can manage services, and apps users from a centralized location.
Answer: B) A directory where you can manage services, and apps users from a centralized
location.
Explanation:
Azure active directory is also known as AD. It is a directory that allows you to manage your files,
users, services, etc from one central location.
ADVERTISEMENT
S H O P P I N G D AY S
LIMITED
QUANTITY.
DEALS NOW
LIVE.
Inspiron 14 2-in-1
Legal rollover
Shop Now
Easier to Use
6. Among Windows active directory and Azure active directory which is known to be the
oldest version?
Explanation:
7. How many types of audiences are there in the Azure active directory?
A. 3
B. 4
C. 5
D. 6
Answer: A) 3
Explanation:
There are three types of audiences in the Azure active directory: IT administrators, Application
developers, and Online customers.
Discuss this Question
8. Which type of audience takes care of all the sign-in procedures in the Azure active
directory?
A. IT administrators
B. Application developers
C. Online customers.
Answer: A) IT administrators
Explanation:
IT administrators take care of all the sign-in procedures in the Azure active directory and all the
work/issues related to authentications.
A. IAAS
B. PAAS
C. SAAS
Answer: A) IAAS
Explanation:
IAAS (infrastructure as a service) is the foundational cloud platform layer mainly used by IT
administrators for processing, storage, and any fundamental computer operation.
A. Developers
B. End users
C. Network architect
Explanation:
ADVERTISEMENT
Explanation:
12. Which of the following platforms is used by clients to develop and deploy the
application?
A. IAAS
B. PAAS
C. SAAS
Answer: B) PAAS
Explanation:
PAAS is known as a platform as a service and clients use this to develop and deploy the
application.
A. Developers
B. End users
C. Network architect
Answer: A) Developers
Explanation:
A. Developers
B. End users
C. Network architect
Explanation:
15. In which cloud computing service model software is hosted on the cloud and made
available to clients?
A. IAAS
B. PAAS
C. SAAS
Answer: C) SAAS
Explanation:
SAAS (software as a service) is a cloud computing service model where software is hosted on the
cloud and made available to clients.
ADVERTISEMENT
S H O P P I N G D AY S
SAVE ON
THE LATEST TECH
Inspiron 14
Legal rollover
Intel® Core™
i5 processor Shop Now
A. Regions
B. Data center
C. Resources
Answer: A) Regions
Explanation:
17. To reduce the latency in network requests, you should select a region that is at ____to
most of the customers.
A. Far distance
B. Closer distance
C. Moderate distance
Explanation:
It is suggested to choose a region that is closer to the customer, as it helps us to reduce the
latency in network requests.
Discuss this Question
A. Resources
B. Regions
C. Data center
D. Resource groups
Explanation:
19. Creating, managing, and removing Azure resources and services is done through the
____, which is a web-based application?
A. Resources
B. Azure portal
C. Resource manager templates
D. Resource groups
Explanation:
Creating, managing, and removing Azure resources and services is done through the Azure
portal, which is a web-based application.
A. Yes
B. No
Answer: B) NO
Explanation:
Azure resources are billable objects whereas the services are something that is needed to be
performed.
Discuss this Question
ADVERTISEMENT
S H O P P I N G D AY S
LIMITED
QUANTITY.
DEALS NOW
LIVE.
Inspiron 14 2-in-1
Legal rollover
Shop Now
Easier to Use
21. An Azure ____ is a container that holds related resources for an Azure solution.
A. Resources
B. Resource Group
C. Azure portal
Explanation:
An Azure resource group is a container that holds related resources for an Azure solution.
A. Yes
B. No
Answer: B) NO
Explanation:
No, Azure CLI and Azure PowerShell are two different tools, and according to the task
appropriate tool is decided.
Explanation:
24. Which of the following act as the kernel of Azure Service Platform in managing the
hardware resources?
A. Azure PowerShell
B. Azure CLI
C. Azure fabric controller
D. Azure orchestrator
Explanation:
Azure fabric controllers act as the kernel of Azure Service Platform in managing the hardware
resources. It mainly manages and monitors the allocation of computing resources.
A. Azure PowerShell
B. REST API
C. Authentication servers
D. Azure orchestrator
Explanation:
Azure fabric controller is connected to Azure orchestrator, which includes web services and REST
API.
Answer: A) 3
Explanation:
There are three categories of Microsoft certifications: Azure administrator, Azure developer, and
Azure solution architect.
A. 8
B. 4
C. 3
D. 6
Answer: C) 3
Explanation:
There are three types of cloud computing: Private cloud, public cloud and Hybrid cloud.
28. In which of the following cloud computing resources are owned and operated by a
third-party cloud service provider?
A. Public cloud
B. Private Cloud
C. Hybrid cloud
Explanation:
In the public cloud resources are owned and operated by a third-party cloud service provider.
A. Public cloud
B. Private Cloud
C. Hybrid cloud
Explanation:
A private cloud is a collection of resources that are used exclusively within a business or
organization.
30. Which storage is used to store huge amounts of unstructured data in Azure?
Explanation:
Azure blob storage is used to store huge amounts of unstructured data in Azure, here you can
store any type of text or binary data, such as a document, or media file.
ADVERTISEMENT
Explanation:
Azure file storage is used when one wants to share files between two servers so that they can be
accessible on both servers.
32. Which storage in Azure provides us with the feature of cloud messaging?
Explanation:
Azure queue storage in Azure provides us with the feature of cloud messaging.
33. Which storage is used for rarely accessed files with cost-effective plans in Azure?
Explanation:
Azure archive storage is used for rarely accessed files with cost-effective plans in Azure.
34. Which data storage in Azure has a schema-less design and is used to store the NoSQL
data?
Explanation:
Azure table storage is used to store the NoSQL data with a schema less design.
35. With which storage service in Azure, Windows, and Linux can use shared cloud block
storage at the same time?
A. Azure StorSimple
B. Azure site recovery
C. Azure disk storage
D. Azure data box
Explanation:
With Azure disk storage Windows and Linux can use shared cloud block storage at the same
time.
A. Azure StorSimple
B. Azure site recovery
C. Azure disk storage
D. Azure data box
Answer: A) Azure StorSimple
Explanation:
37. Which storage is used for retrieval and replicating the workloads in Azure in case of
disaster?
A. Azure StorSimple
B. Azure site recovery
C. Azure disk storage
D. Azure data box
Explanation:
Azure site recovery is used for retrieval and replication of workloads in Azure in case of disaster.
38. Which service is used to transfer huge amounts of data terabytes in Azure?
A. Azure StorSimple
B. Azure site recovery
C. Azure disk storage
D. Azure data box
Explanation:
Azure data service is used to transfer huge amounts of data in terabytes in Azure.
39. Is Azure backup and Azure site recovery service both the same?
A. Yes
B. No
Answer: B) NO
Explanation:
No, they are not the same. Both are really very different as Azure backup is used to protect the
data whereas Azure site recovery service is used when your data center goes down.
40. Does Azure provide us with the service to monitor all the storage services?
A. Yes
B. No
Answer: A) YES
Explanation:
Yes, Azure monitor is responsible for monitoring all the storage services.
Explanation:
A. 4
B. 7
C. 3
D. 9
Answer: C) 3
Explanation:
There are three types of storage accounts in Azure: General purpose V2, General purpose V1, and
Blob storage.
43. Which of the following storage account types support only the standard performance
tier?
A. General purpose V2
B. General purpose V1
C. Blob storage.
Explanation:
Blob storage supports the standard performance tier whereas the other two storage account
types support both the standard and premium performance tiers.
A. 3
B. 2
C. 4
D. 5
Answer: B) 2
Explanation:
There are two types of performance tiers: standard performance and premium storage
performance.
45. Which type of performance tier offers consistency and low latency performance?
A. Standard performance
B. Premium storage performance.
Explanation:
Premium storage performance type of performance tier that offers consistency and low latency
performance.
46. How many types of access tiers are there in Microsoft Azure?
A. 3
B. 5
C. 4
D. 6
Answer: C) 4
Explanation:
There are four types of access tiers: Premium Storage (preview), Hot storage, Cool Storage, and
Archive Storage.
47. Among the cold storage tier and hot storage tier which have lower storage costs and
higher access costs?
Explanation:
The cool tier has lower storage costs and higher access costs compared to the hot tier.
48. Which storage tier is augmented for storing data that is accessed frequently?
Explanation:
Hot storage tier is augmented for storing data that is accessed frequently.
Explanation:
In terms of storage, the hot storage tier is more expensive than the cold storage tier.
50. How many types of replication strategies does Azure provide us?
A. 5
B. 6
C. 4
D. 8
Answer: C) 4
Explanation:
The four types of replication strategies are provided by Azure: locally-redundant storage, zone-
redundant storage, geo-redundant storage, and read-access geo-redundant storage.
51. In which replication strategy of Azure data replicated three times within a single data
center?
A. Locally-Redundant Storage
B. Zone-Redundant Storage
C. Geo-Redundant Storage
D. Read-Access Geo-Redundant Storage.
Explanation:
In Locally-Redundant Storage, data is replicated three times within a single data center.
52. In which replication strategy of Azure, data is replicated across data centers but within
the region?
A. Locally-Redundant Storage
B. Zone-Redundant Storage
C. Geo-Redundant Storage
D. Read-Access Geo-Redundant Storage.
Explanation:
In the zone redundant replication strategy of Azure, data is replicated across data centers but
within the region.
53. In which replication strategy of Azure, our data is copied synchronously three times
using LRS?
A. Locally-Redundant Storage
B. Zone-Redundant Storage
C. Geo-Redundant Storage
D. Read-Access Geo-Redundant Storage.
Explanation:
In the Geo-redundant storage replication strategy our data is copied synchronously three times
using LRS.
54. Is Geo-redundant storage and Read-access Geo-redundant storage the same concept?
A. Yes
B. No
Answer: B) NO
Explanation:
Geo-redundant storage and read access geo-redundant storage are not the same.
55. Which Azure service provides the record of events that have been carried out on a
specific resource?
Explanation:
Azure activity log service provides the record of events that have been carried out on a specific
resource.
Explanation:
Explanation:
58. In Azure Storage, which service acts as a URI that grants limited access rights?
A. IAM
B. Encryption
C. Shared authentication system
D. Shared access signature
Explanation:
SAS Azure Storage service provides restricted access rights to Azure Storage resources using a
URI.
A. 12 TB
B. 200 GB
C. 1000GB
D. Unlimited
Answer: B) 200 GB
Explanation:
A. 6
B. 7
C. 4
D. 3
Answer: D) 3
Explanation:
Azure provides us with three types of blobs: Block blob, Append blob, and Page blob.
61. Which type of blob can be managed individually and store text and binary data in
Azure?
A. Block blob
B. Append blob
C. Page blob
Explanation:
Block blob can be managed individually and store text and binary data in Azure.
62. Which type of blob ideal is for an application like logging data from virtual machines?
A. Block blob
B. Append blob
C. Page blob
Explanation:
Append blob is ideal for an application like logging data from virtual machines.
A. Block blob
B. Append blob
C. Page blob
Explanation:
Page blobs can store files up to 8 TB, these blobs are created by default.
A. Yes
B. No
Answer: B) NO
Explanation:
No, blob and container aren't the same things because blobs are used to store discrete pieces of
data whereas containers store applications, services, and workloads.
65. Can you write special characters while naming the container?
A. Yes
B. No
Answer: B) NO
Explanation:
Container name always starts from a number or a letter and can only contain a dash with
numbers and letters.
A. 4
B. 5
C. 6
D. 7
Answer: B) 5
Explanation:
Azure storage security is divided into 5 areas: Management plane security, Data place security,
Encryption in transit, Encryption in rest, and cross-origin resource sharing.
Discuss this Question
67. Which storage security refers to the process that affects the storage account itself?
Explanation:
Management plane storage security refers to the process that affects the storage account itself
68. Which storage security in Azure denotes the approaches used to protect the data
objects?
Explanation:
Data place security in Azure denotes the approaches used to protect the data objects.
69. How many ways can be used to control access to the data within the storage account in
Microsoft Azure?
A. 4
B. 5
C. 6
D. 3
Answer: D) 3
Explanation:
Three ways can be used to control the access to the data within the storage account in Microsoft
Azure: Azure active directory Storage account keys, Shared Access Signatures.
70. Which tool in Azure is known for file copy and best suited for migrations?
A. Robocopy
B. Data Pipeline
C. AzCopy
D. Snap logic
Answer: A) Robocopy
Explanation:
Robocopy tool in Azure is known for file copy and is best suited for migrations.
71. Which of the following is the command utility tool in Azure that aids us in copying the
data like blob or files?
A. Robocopy
B. Data Pipeline
C. AzCopy
D. Snap logic
Answer: C) AzCopy
Explanation:
AzCopy is the command utility tool in Azure that aids us in copying the data like blobs or files.
72. In Azure storage services, the Azure table stores which form of data?
A. Structured data
B. Unstructured data
73. Which of the following is the more advanced version of queue storage service in Azure?
Explanation:
Azure service bus queue is the advanced version of the Azure queue storage service.
A. 3
B. 4
C. 5
D. 2
Answer: D) 2
Explanation:
Two types of disk storage are provided by Azure: Managed disk and unmanaged disk.
75. Which type of disk is known to be the outmoded type of disk and is commonly used by
VMs?
A. Managed disk
B. Unmanaged disk.
Explanation:
Unmanaged disks are the type of disk which are known to be the outmoded type of disk and
commonly used by VMs.
76. In which type of disk, do we not have to worry about the scalability limits of the
storage account?
A. Managed disk
B. Unmanaged disk.
Explanation:
Managed disk is the type of disk, in which we do not have to care about the scalability limits of
the storage account, it handles all the formation in the background.
77. How many types of capabilities are present inside Azure for storage monitoring?
A. 2
B. 3
C. 4
D. 5
Answer: A) 2
Explanation:
The two types of capabilities which are present in Azure for storage monitoring are: Continuous
monitoring and logging.
78. Which service in Azure accomplishes logging and offers metrics data for a storage
account?
Azure storage analytics services Azure is a kind of service that accomplishes logging and offers
metrics data for a storage account.
79. How many types of storage analytics metrics are offered by Azure?
A. 3
B. 4
C. 2
D. 6
Answer: C) 2
Explanation:
The two types of metrics which are offered by Azure under storage analytics metrics are:
transaction metrics and capacity metrics.
80. Which type of metric in Azure records day-to-day storage accounts' Blob service,
containers, etc?
A. Transaction metrics
B. Capacity metrics.
Explanation:
Capacity metric is the type of metric in Azure that records day-to-day storage account Blob
service, containers, etc.
81. In which type of metric accumulated data is recorded on an hourly or minute basis?
A. Transaction metrics
B. Capacity metrics.
Transaction metrics are a type of metrics in which aggregated data is recorded hourly or minute.
82. On which Azure service can we test our application against the storage services locally
without spending any cost?
Explanation:
Azure storage emulator is a type of service on which we can test our application against the
storage services locally without spending any cost.
83. Which Azure service permits us to proficiently work with Azure Storage data on
Windows, macOS, and Linux?
Explanation:
Azure storage explorer service in Azure permits us to proficiently work with Azure Storage data
on Windows, macOS, and Linux.
84. What is known to be the fundamental building block of Azure network services?
Explanation:
Azure virtual networks are supposed to be known as the fundamental building block of Azure
network services.
85. Which Azure service protects the workload in the virtual network from DDoS attacks in
Azure?
Explanation:
Azure DDoS protection service protects the workload in the virtual network from DDoS attacks in
Azure.
Explanation:
Explanation:
Answer: B) Firewall
Explanation:
89. Which service in Azure controls the circulation of the user stream of traffic for service
endpoints in diverse regions?
Explanation:
Traffic manager is a kind of service in Azure that controls the circulation of user stream of traffic
for service endpoints in diverse regions.
90. Which service in Azure aids us to distribute the stream of traffic evenly between
application servers?
Explanation:
Load balancer service in Azure aids us to distribute the stream of traffic evenly between
application servers.
91. Can you have two same names of networks within the network security group?
A. Yes
B. No
Answer: B) NO
Explanation:
The name of the network should be unique within the network security group.
92. Which service in Azure acts as an interconnection between a Virtual Machine and the
underlying software network?
Explanation:
Azure network interface acts as an interconnection between a virtual machine and the underlying
software network.
A. 2
B. 3
C. 4
D. 5
Answer: A) 2
Explanation:
There are two types of IP addresses: Private IP addresses and Public IP addresses.
94. Which Azure service allows us to connect two VNet in the same or across regions?
Explanation:
VNet peering allows us to connect two VNet in the same or across regions.
95. Which Azure service acts as a middleman on both sides of the virtual networks?
A. VPN gateway
B. VNet peering
C. Global peering
D. VNet
Explanation:
VPN Gateway Azure service acts as a middleman on both sides of the virtual networks.
A. 6
B. 5
C. 4
D. 3
Answer: D) 3
Explanation:
Azure compute service can be divided broadly into three categories: Infrastructure as a service,
Platform as a service, and Serverless services.
A. PAAS
B. IAAS
Answer: B) IAAS
Explanation:
98. Which service of Azure is used for hosting web applications, REST APIs, and mobile
backends?
Explanation:
App service in Azure is used for hosting web applications, REST APIs, and mobile backends.
A. PAAS
B. IAAS
Answer: A) PAAS
Explanation:
Azure app service is a platform as a service (PAAS).
100. Which Azure service offers the rapidest method to start developing and deploying
cloud-native apps in Azure?
Explanation:
Azure Kubernetes service offers the rapidest method to start developing and deploying cloud-
native apps in Azure.
101. Which of the following are the key services that are associated with Azure compute
services?
Explanation:
The three key services that are related to Azure compute services are: Azure security center,
Active Directory, and Key Vault.
102. Which disk in a virtual machine in Azure offers temporary storage for applications and
processes?
Explanation:
Temporary disk in a virtual machine in Azure offers temporary/ short-term storage for
applications and processes.
103. Which type of disk encryption in Azure is allowed by default for all Managed Disks,
Snapshots, and Images in every single region?
A. Server-side encryption
B. Azure Disk encryption
Explanation:
Server-side encryption is a type of disk encryption in Azure that is allowed by default for all
Managed Disks, Snapshots, and Images in every single region.
104. Which type of disk encryption in Azure permits you to encrypt the OS and Data disks
used by an IaaS Virtual Machine?
A. Server-side encryption
B. Azure Disk encryption
Explanation:
Azure disk encryption is a type of disk encryption in Azure that permits you to encrypt the OS
and Data disks used by an IaaS Virtual Machine.
105. Which service of Azure lets you create and manage a collection of loaded balanced
VMs?
Explanation:
Azure virtual machine scale set service of Azure lets you create and manage a collection of
loaded balanced VMs.
A. 5
B. 4
C. 3
D. 2
Answer: D) 2
Explanation:
Mainly there are two types of scaling in Azure: Vertical scaling and horizontal scaling.
107. Which type of scaling is suggested in Azure when you want to run a large number of
VMs to handle the load?
A. Vertical scaling
B. Horizontal scaling.
Explanation:
Horizontal scaling type scaling is suggested in Azure when you want to run a large number of
VMs to handle the load.
108. Which type of scaling in Azure, provides more capacity in terms of memory?
A. Vertical scaling
B. Horizontal scaling.
Vertical scaling is a type of scaling in Azure which provides more capacity in terms of memory.
109. How many types of metrics are offered by Azure in terms of autoscaling?
A. 2
B. 3
C. 4
D. 5
Answer: C) 4
Explanation:
110. Which service in Azure delivers timely and tailored information when difficulties in
Azure services impact your services?
Explanation:
Azure service health service in Azure delivers timely and tailored information when difficulties in
Azure services impact your services.
111. Which service in Azure aids us to detect and get support when an Azure issue affects
our resources?
Explanation:
Azure resource health service in Azure aids us to detect and get support when an Azure issue
affects our resources.
A. 2
B. 4
C. 3
D. 5
Answer: C) 3
Explanation:
113. Which cloud service component in Azure is used to deploy the application as a cloud
service?
A. ServiceDefenition.csdef
B. ServiceConfiguration.cscfg
C. Service package. Cspkg.
Explanation:
Service package. Cspkg. Cloud service component in Azure used to deploy the application as a
cloud service.
114. Which cloud service component comprises the values which are used to regulate the
configuration of settings for the cloud service?
A. ServiceDefenition.csdef
B. ServiceConfiguration.cscfg
C. Service package. Cspkg.
Answer: B) ServiceConfiguration.cscfg
Explanation:
ServiceConfiguration.cscfg cloud service component comprises the values which are used to
regulate the configuration of settings for the cloud service.
115. How many types of hosting environments are there within Azure App Service?
A. 2
B. 3
C. 4
D. 5
Answer: A) 2
Explanation:
The two types of hosting environments that are present within Azure service are: the App Service
plan and App Service environment.
116. Which Azure service provides compute resources for running a web app?
Explanation:
App Service plan service provides compute resources for running a web app.
117. Is Azure Web App and Azure App Service the same?
A. Yes
B. No
Answer: B) NO
Explanation:
Hosting apps in an App Service is what makes up a Web App whereas Managed services that
enable you to deploy web applications in Azure include the App Service.
118. Which service in Azure also known as the Microsoft Data sync Framework?
Explanation:
Azure mobile app service in Azure is also known as the Microsoft Data sync Framework.
Explanation:
120. Can you state which Azure services we can use to send notifications to users via
mobile push notifications?
Explanation:
With the help of Azure Notification Hubs services, we can send notifications to users via mobile
push notifications.
121. Which of the following are the advantages of Azure Notification Hubs?
Explanation:
122. How many ways are provided by Azure to scale up the app services?
A. 3
B. 4
C. 2
D. 5
Answer: C) 2
Explanation:
The two ways are provided by Azure to scale up the app service: scale up and scale out.
A. Scale up
B. Scale-out
Answer: A) Scale up
Explanation:
Scale-up in Azure app services provides us with more CPU, memory, disc space, dedicated virtual
machines, etc.
124. Which type of scale in Azure app service Upsurge the number of VM instances that
run your app?
A. Scale up
B. Scale-out
Answer: B) Scale-out
Explanation:
Scale-out in Azure app service Upsurge the number of VM instances that run your app.
125. Which of the following terms defines the Consumption limits for user subscriptions?
A. Scale up
B. Scale-out
C. Quota
D. Metrics
Answer: C) Quota
Explanation:
A. Scale up
B. Scale-out
C. Quota
D. Metrics
Answer: D) Metrics
Explanation:
Metrics in Azure give information about how an app or App Service plan behaves.
127. Which of the following specifies how long an asset can be accessed and by whom?
A. Assets
B. Access policy
C. AssetsFile
D. Channel
Explanation:
Access policy specifies how long an asset can be accessed and by whom.
128. Which of the following is an entry point and permits you to access the files stored in
an asset?
A. Assets
B. Access policy
C. AssetsFile
D. Channel
E. Locators
Answer: E) Locators
Explanation:
A locator is an entry point and permits you to access the files stored in an asset.
Discuss this Question
A. Assets
B. Access policy
C. Job
D. Program
E. Locators
Answer: C) Job
Explanation:
130. Which of the following tools in Azure simplifies, guides, and automates the migration
of your databases to Azure?
Explanation:
Azure data migration service is a tool in Azure that simplifies, guides, and automates the
migration of your databases to Azure.
131. Which of the following aids us to replicate the data from our on-premises database
into Azure?
Explanation:
Azure data sync aids us in replicating the data from our on-premises database into Azure.
132. Which of the following database services in Azure works as a hybrid database i.e., cold
data and hot data?
Explanation:
SQL stretch database service in Azure works as a hybrid database i.e., cold data and hot data.
133. Which of the following in Azure, organizes data movement and transforms data at
scale with data-driven workflows?
Explanation:
Data factory organizes data movement and transforms data at scale with data-driven workflows.
Explanation:
Explanation:
A. NoSQL DB
B. SQL DB
Answer: A) NoSQL DB
Explanation:
Cosmos DB in Azure is a kind of NoSQL DB, which is designed with extremely low latency.
137. Which is the database for all kinds of relational data, including JSON, spatial, and XML
in Azure?
A. Azure NoSQL DB
B. Azure SQL DB
C. Azure Cosmos DB
Explanation:
Azure SQL DB is the database for all kinds of relational data, including JSON, spatial, and XML in
Azure.
A. 3
B. 4
C. 5
D. 6
Answer: A) 3
Explanation:
There are three ways in which you can implement/execute the SQL database in Azure: Managed
instance, single database, and elastic Pool.
139. Which of the following ways will you use when you have an SQL server instance in
your on-premises data center and you are wishing to migrate that instance into Azure with
the expectation of lowest charges and supreme compatibility?
A. Managed Instance
B. Single database
C. Elastic Pool.
Explanation:
Managed instances in Azure are ideal when you have SQL server instances in your on-premises
data center and you are wishing to migrate that instance into Azure with the expectation of the
lowest charges and supreme compatibility.
140. Which of the following database resource types create databases in Azure SQL
Database that comprise their resources and are accomplished by servers?
A. Managed Instance
B. Single database
C. Elastic Pool.
Explanation:
Single database resource types create databases in Azure SQL Database that comprise their
resources and are accomplished by servers.
141. When you want to manage numerous databases with fluctuating and erratic usage
demands, which of the following will you use that will provide a simple and cost-effective
option?
A. Managed Instance
B. Single database
C. Elastic Pool.
Explanation:
Elastic Pool is a simple and cost-effective option when you want to manage numerous databases
with fluctuating and erratic usage demands.
142. How many types of purchasing models are provided by the Azure SQL server?
A. 3
B. 4
C. 5
D. 2
Answer: D) 2
Explanation:
There are two types of purchasing models that are provided by the Azure SQL server: the VCore
purchasing model, and the DTU model.
143. Which of the following purchasing models in Azure SQL server allows you to select a
generation of hardware?
VCore purchasing model in the Azure SQL server allows you to select a generation of hardware.
144. Which purchasing model in Azure SQL server is the finest for patrons who want
simple, pre-configured resource options?
Explanation:
DTU model purchasing model in Azure SQL server is finest for patrons who want simple, pre-
configured resource options.
145. Using ____, you can synchronize a primary database with a secondary database that is
continuously readable.
A. Geolocations
B. Failover Groups
C. Database Groups
Answer: A) Geolocations
Explanation:
Using geo-replication, you can synchronize a primary database with a secondary database that is
continuously readable
Explanation:
SQL-managed instance is based upon the VCore purchasing model.
A. 4
B. 5
C. 3
D. 6
Answer: D) 6
Explanation:
Pipeline, Activity, Datasets, Linked Services, Triggers, and Control flows are the six components of
a data factory.
148. Which component of a data factory refers to the logical grouping of activities that
complete a particular task?
A. Pipeline
B. Activity
C. Datasets
D. Linked Services
Answer: A) Pipeline
Explanation:
The pipeline component of a data factory refers to the logical grouping of activities that
complete a particular task.
149. Which component of the data factory is known as the orchestration of pipeline
actions that comprise chaining activities?
A. Triggers
B. Activity
C. Datasets
D. Linked Services
E. Control Flows
Explanation:
The control flow component of the data factory is known as the orchestration of pipeline actions
which comprise chaining activities in a sequence.
150. Which component of the data factory characterizes data structures within the data
stores?
A. Triggers
B. Activity
C. Datasets
D. Linked Services
E. Control Flows
Answer: C) Datasets
Explanation:
Dataset component of the data factory characterizes data structures within the data stores.
151. In which Azure service developers provide support to the support team, planning
work, collaborating on code development, and building and deploying applications?
Explanation:
In Azure DevOps service developers provide support to the support team, planning work,
collaborating on code development, and building and deploying applications.
152. Using ____, you can manage your code with version control tools.
A. Azure cloud service
B. Azure DevOps
C. Azure DevOps repository
D. Azure app service
Explanation:
In the Azure DevOps repository you can manage your code with version control tools.
153. How many types of version controls are there in the Azure repository?
A. 3
B. 4
C. 5
D. 2
Answer: D) 2
Explanation:
There are two types of version controls in Azure repo: Git, and Team Foundation Version Control.
A. Git
B. Team Foundation Version Control.
C. Both
Answer: A) Git
Explanation:
A. Git
B. Team Foundation Version Control.
C. Both
Explanation:
156. Which of the following Azure Repos concept is an easy way to keep track of commit
histories and isolate work for a particular feature from the master branch?
A. Branch
B. Branch policies
C. Repository
D. Fork
Answer: A) Branch
Explanation:
Branch in Azure Repos, is an easy way to keep track of commit histories and isolate work for a
particular feature from the master branch.
157. Which Azure repo concept is known to be an indispensable part of the Git workflow?
A. Git
B. Branch policies
C. Repository
D. Fork
Explanation:
In Azure repo, branch policy is known to be an indispensable part of the Git workflow.
Answer: D) Fork
Explanation:
159. Among the hot tier and cold tier which tier has the highest storage cost but at the
same time the lowest access costs?
A. Hot tier
B. Cold tier
Explanation:
Hot tier has the highest storage cost but at the same time lowest access costs.
160. Which of the following is the first Hyperconverged storage platform in Azure for
enterprise data?
A. Veritas
B. SoftNAS
C. Cohesity
D. Commvault
Answer: C) Cohesity
Explanation:
Cohesity is the first Hyperconverged storage platform in Azure for enterprise data.
Explanation:
162. In which stage of ETL, data is retrieved from the source before being relocated to a
new location?
A. Extract
B. Transform
C. Load
Answer: A) Extract
Explanation:
Extract is the first stage of the ETL process, where data is retrieved from the source before being
relocated to a new location.
A. Extract
B. Transform
C. Load
Answer: B) Transform
Explanation:
Transform is the second stage of the ETL process, here quality of data is being maintained.
164. In which stage of ETL, altered data is loaded into a new destination?
A. Extract
B. Transform
C. Load
Answer: C) Load
Explanation:
Load is the third and last stage of the ETL process, here altered data is loaded into a new
destination.
A. App service
B. Transformation function
C. HD insights
D. Orchestration
Answer: D) Orchestration
Explanation:
166. Which framework acts as a workflow and synchronizes the system that accomplishes
Hadoop jobs?
A. Transformation function
B. HD insights
C. Orchestration
D. Apache Oozie
Explanation:
Apache Oozie framework acts as a workflow and synchronizes the system that accomplishes
Hadoop jobs.
Explanation:
168. Which Azure service is managed, hyper scale analytics data store from which the data
is stored?
Explanation:
ADLS service is managed, hyper scale analytics data store from which the data is stored.
169. Which Azure service is present in the Azure HDInsight and stores the data in key-value
format?
Explanation:
Apache HBase service is present in the Azure HDInsight and stores the data in key-value format.
A. 3
B. 4
C. 5
D. 6
Answer: A) 3
Explanation:
171. Which tool in Azure is used for moving data across structured, semi-structured, and
unstructured data sources quickly and efficiently?
Explanation:
Apache Sqoop tool in Azure is used for moving data across structured, semi-structured, and
unstructured data sources quickly and efficiently.
A. 4
B. 3
C. 5
D. 2
Answer: D) 2
Explanation:
Two types of instances are provided by Azure: Reserved instances and shared instances.
173. Which Azure service effortlessly unites with open-source libraries and also offers the
newest version of Apache spark?
Explanation:
Azure data bricks service effortlessly unites with open-source libraries and also offers the newest
version of Apache spark.
174. Which Azure service consists of a web-based interface for an executable document, as
well as graphic animations and narrative text?
Explanation:
Azure notebook service consists of a web-based interface for an executable document, as well as
graphic animations and narrative text.
175. Azure resource management and deployment are handled by this service?
A. Azure resources
B. Azure resource groups
C. Azure resources manager
Answer: C) Azure resources manager
Explanation:
Azure resource manager is the resource management and deployment is handled by this service.
176. Which Azure service provides enhanced governance across resources, multi-tenant
scalability, and higher automation?
A. Azure resources
B. Azure resource groups
C. Azure resources manager
D. Azure lighthouse
Explanation:
Explanation:
178. Which Azure service recovers control of a hacked Active Directory environment?
Explanation:
A. IAAS
B. PAAS
C. SAAS
Answer: C) SAAS
Explanation:
ADVERTISEMENT
ADVERTISEMENT
Home » MCQs
C# MCQs Index
1. C# Basics MCQs
2. C# Variables and Data Types MCQss
3. C# Input/Output MCQs
4. C# Conditional and Control Statements MCQs
5. C# Strings MCQs
6. C# Arrays MCQs
7. C# OOP MCQs
8. C# Miscellaneous Topics MCQs
1) C# Basics MCQs
1. C# is a programming language, developed by ___.
A. Oracle
B. Microsoft
C. GNU project
D. Google
Answer: B) Microsoft
Explanation:
Explanation:
A. Web apps
B. Desktop apps
C. Mobiles apps
D. All of the above
Explanation:
C# programming language is used to develop the web apps, desktop apps, mobile apps, games
and much more.
A. Yes
B. No
Answer: A) Yes
Explanation:
A. Yes
B. No
Answer: B) No
Explanation:
ADVERTISEMENT
A. .c
B. .cpp
C. .cs
D. .csp
Answer: C) .cs
Explanation:
A. Anders Hejlsberg
B. Douglas Crockford
C. Rasmus Lerdorf
D. Brendan Eich
A. Yes
B. No
Answer: A) Yes
Explanation:
Yes, C# is a type safe programming language, the C# type safe code can only access the memory
location that it has permission to execute. Therefore, it improves a security of the program.
A. Yes
B. No
Answer: A) Yes
Explanation:
Yes, C# is a structured programming language that means we can break the program into parts
using functions. So, it is easy to understand and modify.
Explanation:
ADVERTISEMENT
Explanation:
Explanation:
Explanation:
Explanation:
A. True
B. False
Answer: A) True
Explanation:
16. Which symbols are used to mark the beginning and end of a code block?
A. Square brackets []
B. Curly braces {}
C. Round brackets ()
D. Double-quotes ""
Explanation:
A. Colon (:)
B. Semicolon (;)
C. Comma (,)
D. Dot (.)
Explanation:
A. Yes
B. No
Answer: A) Yes
Explanation:
Explanation:
A. // and //
B. \\ and //
C. <!-- and -->
D. /* and */
Answer: D) /* and */
Explanation:
Explanation:
type variableName = value; - It defines the type and assigns the value
type variableName; - It defines the type only
A. text
B. txt
C. string
D. str
Answer: C) string
Explanation:
A. define
B. fixed
C. constant
D. const
Answer: D) const
Explanation:
Explanation:
A. long
B. int
C. float
D. complex
Answer: D) complex
Explanation:
Answer: A) char -> int -> long -> float -> double
Explanation:
The implicit type conversion is done in the following order: char -> int -> long -> float ->
double.
27. Which is the correct order for explicit type conversion to convert a larger to a smaller
type in C#?
A. double -> float -> long -> int -> char -> bool
B. double -> float -> long -> int -> char
C. float -> double -> long -> int -> char
D. float -> double -> long -> int -> char -> bool
Answer: B) double -> float -> long -> int -> char
Explanation:
The explicit type conversion is done in the following order: double -> float -> long -> int -> char.
28. Which is the correct C# statement to convert a float value to int explicitly?
Explanation:
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
bool x = true;
Console.Write(Convert.ToString(x));
}
}
}
A. True
B. true
C. False
D. false
Answer: A) True
Explanation:
In the above C# code, we are using Convert.ToString() method which converts bool to string.
Thus, the output will be "True".
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
double x = 10.25;
Console.Write(Convert.ToInt32(x));
}
}
}
A. 10.30
B. 10.25
C. 10
D. Error
Answer: C) 10
Explanation:
In the above C# code, we are using Convert.ToInt32() method which converts double to int.
Thus, the output will be "10".
3) C# Input/Output MCQs
ADVERTISEMENT
A. Class
B. Object
C. Method
D. Structure
Answer: A) Class
Explanation:
In C#, the Console class is used to represent the standard input, output, and error streams for
the console applications.
32. What will be the output of the following C# code, if the input is 123?
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
Console.WriteLine("Enter a number:");
int num = Console.ReadLine();
Console.WriteLine("Given number is: " + num);
}
}
}
Answer: D) Error
Explanation:
In C#, Console.ReadLine() is used to read the string and here we are trying to input an integer
value. Thus, the output will be an error.
33. What will be the output of the following C# code, if the input is 123?
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
Console.WriteLine("Enter a number:");
int num = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Given number is: " + num);
}
}
}
Explanation:
In C#, Console.ReadLine() is used to read the string and here the input is 123 and converting
it into an integer. This, there will not be an error.
34. Which is/are the correct method(s) to input a float value in C#?
A. Parse(Console.ReadLine())
B. ToSingle(Console.ReadLine())
C. ToFloat(Console.ReadLine());
D. Both A and B
E. Both A and C
Explanation:
float.Parse(Console.ReadLine());
Convert.ToSingle(Console.ReadLine());
Answer: B) Write() writes the data on the console without printing a newline while
Console.WriteLine() writes the data on the console along with printing a newline
Explanation:
The only difference between the Console.Write() and Console.WriteLine() is that the
Console.Write() is used to write data without printing the new line, while
Console.WriteLine() is used to write data along with printing the new line.
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
int a = 10, b = 20;
Console.WriteLine("{0},{0}", a, b);
}
}
}
A. 10,10
B. 10,20
C. 20,20
D. Error
Answer: A) 10,10
Explanation:
In the above code, there are two variables a and b , but while printing the values of a and b ,
we are using the same placeholder {0} , that will print the value of the first variable. Thus, the
output is 10,10.
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
int a = 10, b = 20;
Console.WriteLine("{0}+{1}", a, b);
}
}
}
A. 20
B. 30
C. 10+20
D. 10+10
Answer: C) 10+20
Explanation:
Copy
using System;
class Program {
static void Main(string[] args) {
int i = 2;
int j = 10 / 4;
if (i == j) {
Console.WriteLine("True");
} else {
Console.WriteLine("False");
}
}
}
A. True
B. False
C. Error
D. None
Answer: A) True
Explanation:
The statement int j = 10/4; The value of j will be 2 because of implicit type casting. Thus,
the output will be "True".
Copy
using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(true ^ true);
}
}
A. True
B. False
C. Error
D. None
Answer: B) False
Explanation:
Here, we are using the Logical exclusive OR operator ^ (XOR). It returns true when one operand
evaluates to true and another operand evaluates to false. In the above code, both of the
operands are true. Thus, the output will be False.
Copy
using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(true && false);
}
}
A. True
B. False
C. Error
D. None
Answer: B) False
Explanation:
Here, we are using the Conditional logical AND operator (&&). It returns true of both of the
operands evaluate to true. In the above code, the operands are true, false. Thus, the output will
be "False".
A. do; {
statement(s);
} while (test_condition);
B. do
{
statement(s);
} while (test_condition)
C. do(test_condition) {
statement(s);
}while;
D. do {
statement(s);
} while (test_condition);
Answer: D)
do {
statement(s);
} while (test_condition);
Explanation:
do {
statement(s);
} while (test_condition);
A. Yes
B. No
Answer: A) Yes
Explanation:
Yes, C# supports foreach loop. The foreach loop is used to iterate over the elements of the
collection. The collection may be an array or a list.
Example:
Copy
using System;
class Program {
static void Main(string[] args) {
// an array
int[] arr = new int[] {10, 20, 30, 40, 50};
Answer: B)
Explanation:
Copy
using System;
class Program {
static void Main(string[] args) {
int i = 100;
do {
Console.Write(i + " ");
++i;
} while (i <= 50);
}
}
A. Error
B. 100 101 102 ... Infinite
C. 101
D. 100
Answer: D) 100
Explanation:
The do-while loop is an exit control loop where the condition is checked after executing the loop
body. In the above code, the condition is false still loop body will be executed first. Thus, the
output will be 100.
Copy
using System;
class Program {
public static void Main() {
int i = 10;
Console.WriteLine(i++);
}
}
A. 10
B. 11
C. 12
D. Error
Answer: A) 10
Explanation:
The statement i++ is a post-increment operation, and it increases the value of i after
evaluating the Console.WriteLine() statement. Thus, 10 will be printed.
A. for(;;)
B. for(;;);
C. for(;;)
D. for(1;1;1)
Answer: A) for(;;)
Explanation:
for(;;)
Discuss this Question
47. Can we obtain the array index using foreach loop in C#?
A. Yes
B. No
Answer: B) No
Explanation:
No, we cannot obtain the array index using foreach loop because it does not keep track of the
index, it only iterates forward over the array in single steps.
A. Yes
B. No
Answer: A) Yes
Explanation:
Yes, C# supports the goto statement. The goto statement transfers the control of the program
to the specified label and the label is the valid identifier and placed just before the statement
from where the control is transferred.
Example:
Copy
using System;
class Program {
public static void Main() {
Console.WriteLine("In the main...");
int i = 1;
okay:
Console.Write(i + " ");
if (++i <= 10) {
goto okay;
}
}
}
/*
Output:
In the main...
1 2 3 4 5 6 7 8 9 10
*/
Explanation:
The C# throw statement is used to throw an exception manually during the execution of the
program.
A. break
B. continue
C. Both A and B
D. None of the above
Answer: A) break
Explanation:
The C# break keyword breaks the execution of the loop and sends the program’s control to the
next statement written after the loop.
5) C# Strings MCQs
51. What is String in C# meant for?
A. A variable
B. A Class
C. An Array
D. An object
Answer: D) An object
Explanation:
A. Yes
B. No
Answer: A) Yes
Explanation:
A. String
B. System.IO.String
C. System.Strings
D. System.String
Answer: D) System.String
Explanation:
In C#, System.String is a base class for all String related methods, properties, constructors, and
operators.
54. Which String class operator is used to determine whether two specified strings have
different values?
A. !=
B. !
C. ~
D. ~
Answer: A) !=
Explanation:
In C#, the inequality operator (!=) can be used to determine whether two specified strings have
different values.
55. Except == operator, which methods can be used to compare two strings?
A. Equal()
B. Compare()
C. Both A and B
D. None of these
Explanation:
The Equal() and Compare() methods can also be used to compare two strings in C#.
A. Upper()
B. ToUpper()
C. Upr()
D. ToUpr()
Answer: B) ToUpper()
Explanation:
The ToUpper() method is used to convert the given string into the uppercase.
Example:
Copy
using System;
class Program {
public static void Main() {
string str = "includehelp";
Console.WriteLine(str.ToUpper());
}
}
A. Property
B. Method
C. Constructor
D. Both A and B
Answer: A) Property
Explanation:
The String.Length is property of System.String class that is used to get the number of
characters in the current String object.
Copy
using System;
class Program {
static void Main(string[] args) {
String s1 = "Hello";
String s2 = "IncludeHelp";
String s3 = s1;
Console.WriteLine(s1.Equals(s3) + " " + s2.CompareTo(s1));
}
}
A. Error
B. True True
C. True False
D. True 1
Answer: D) True 1
Explanation:
The Equals() method returns a bool value. We assigned s1 to s3 . Thus, the statement
s1.Equals(s3) will returns "True". And, the CompareTo() method returns an int value (Less
than 0, o, or greater than 0). The statement s2.CompareTo(s1) will returns 1 because this
instance ( s2 ) follows s1 .
Copy
using System;
class Program {
static void Main(string[] args) {
String str = "Hello";
Console.WriteLine(str.Length);
}
}
A. 5
B. 6
C. 7
D. 4
Answer: A) 5
Explanation:
The String.Length returns the length of the string. Thus, the output will be 5.
Copy
using System;
class Program {
static void Main(string[] args) {
String str = "Hello";
Console.WriteLine(str.IndexOf('h'));
}
}
A. 0
B. 1
C. -1
D. Error
Answer: C) -1
Explanation:
The IndexOf() method returns the index of a given characters, and it returns -1 if the given
character is not found in the string. Here, we are trying to get the index of 'h' which is not present
in the string. Thus, the output will be -1.
6) C# Arrays MCQs
61. To declare an array, define the variable type with ___.
A. Square brackets []
B. Curly brackets {}
C. Round brackets ()
D. None of the above
Explanation:
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = { "iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles);
}
}
}
Answer: D) System.String[]
Explanation:
In the above code, the statement Console.WriteLine(mobiles); will print the type of the
variable that is System.String[] .
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = {"iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles[-1]);
}
}
}
A. None
B. Warning
C. Exception
D. System.String[]
Answer: C) Exception
Explanation:
The array index starts from 0 in C#, in the above code – we are trying to get the element with
index -1. Thus, there will be an exception "System.IndexOutOfRangeException: Index was outside
the bounds of the array."
Explanation:
In the above given C# statement, the variable 'x' is a reference to an object of a 'System.Array'
class.
65. Which array property is used to get the total number of elements in C#?
A. Len
B. Length
C. Elements
D. MaxLen
Answer: B) Length
Explanation:
The Length property is used to get the total number of elements in C#.
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = {"iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles[0] + mobiles[2]);
}
}
}
A. iPhoneVivo
B. iPhone+Vivo
C. Exception
D. iPhone Vivo
Answer: A) iPhoneVivo
Explanation:
In the above code, the statement mobiles[0]+mobiles[2] will concatenate the 0th and 2nd
elements that are "iPhone" and "Vivo". Thus, the output will be "iPhoneVivo".
67. Which array method is used to sort an array alphabetically or in an ascending order in
C#?
A. sort()
B. sorting()
C. Sort()
D. Sorting()
Answer: C) Sort()
Explanation:
The Sort() method is used to sort an array alphabetically or in an ascending order in C#.
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = {"iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles[0] + mobiles[2]);
}
}
}
A. iPhone
B. Vivo
C. iPhoneVivo
D. Runtime Error
Answer: C) iPhoneVivo
Copy
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
int[,] ARR = {{1,2},{3,4}};
Console.WriteLine(ARR.GetLength(0)+","+ARR.GetLength(1));
}
}
}
A. 4,4
B. 2,2
C. Compilation Error
D. Runtime Error
Answer: B) 2,2
Explanation:
The above code will print the length of the of the first and second rows of the above two-
dimensional array.
70. Which of the correct syntax to declare an array with 2 rows and 3 columns in C#?
Explanation:
The correct way to declare an array with 2 rows and 3 columns in C# is:
7) C# OOP MCQs
71. Which keyword is used to define a class in C#?
A. Class
B. class
C. System.Class
D. OOPS.class
Answer: B) class
Explanation:
Syntax:
class class_name
{
// Class Definition
}
72. Which is the correct way to declare an object of the class in C#?
Copy
using System;
namespace MyApplication {
class Mobiles {
string brand = "Apple";
// Output: Apple
Explanation:
The dot (.) symbol (or dot operator) is used to access variables/fields in a class in C#.
Syntax:
Class_Name.Variable_Name/Field_Name;
Answer: B) No
Explanation:
No, overriding of a function is not possible in the same class in C#. As per the explanation on
MSDN – The override modifier is required to extend or modify the abstract or virtual
implementation of an inherited method, property, indexer, or event.
A. Static Constructor
B. Private Constructor
C. Body Constructor
D. Parameterized Constructor
Explanation:
Static constructor
Private constructor
Copy constructor
Default constructor
Parameterized constructor
A. 2
B. 3
C. 4
D. 5
Answer: C) 4
Explanation:
Explanation:
In C#, there are 4 types of access modifiers they are public, private, protected, and internal. And
these access modifiers are used to control the visibility of class members (the security level of
each individual class and class member).
Explanation:
In C#, the internal access modifier is used for types and type members. The internal types or
members (those are defined by the using of internal keyword/ access modifier) are accessible
only within files in the same assembly.
79. The protected access modifier defines a member that can be accessible within ___.
Explanation:
In C#, the protected access modifier defines a member that can be accessible within its class and
by derived class instances.
A. Yes
B. No
Answer: B) No
Explanation:
81. Which C# concept has the capability of an object to take number of different forms and
hence display behaviour as accordingly?
A. Polymorphism
B. Encapsulation
C. Abstraction
D. None of the above
Answer: A) Polymorphism
Explanation:
In C#, the concept has the capability of an object to take number of different forms and hence
display behaviour as accordingly known as "Polymorphism".
using System;
namespace MyApplication {
public class Class1 {
public static int x = 10;
}
public class Class2: Class1 {
public static int x = 20;
static void Main(string[] args) {
Console.WriteLine(x + ", " + Class1.x);
}
}
}
A. 20, 20
B. 10, 10
C. 20, 10
D. Exception
Answer: C) 20, 10
Explanation:
In the above code, we are printing the values of x which is the member of Class2 and
Class1.x which is the member of Class1 . Thus, the output will be "20, 10".
83. What is the C# keyword which is used to change data and behaviour of a base class by
replacing a member of the base class with a new derived member?
A. overrides
B. protected
C. base
D. new
Answer: D) new
Explanation:
The C# keyword new is used to change data and behaviour of a base class by replacing a
member of the base class with a new derived member.
A. interface
B. Interface
C. implement
D. Implement
Answer: A) interface
Explanation:
In C#, an interface can be declared using the interface keyword. An interface can contain
declarations of methods, properties, indexers, and events.
A. virtual
B. sealed
C. private
D. public
Answer: A) virtual
Explanation:
In C#, by default, the default interface methods are virtual unless the sealed or private modifier is
used.
86. In C#, the objects created using new operator are stored in ___.
A. Cache Memory
B. Stack Memory
C. Heap Memory
D. None of the above
Explanation:
In C#, the objects created using new operator are stored in Heap Memory.
A. Methods
B. Properties
C. Events
D. Structures
Answer: D) Structures
Explanation:
A. private
B. public
C. protected
D. All of the above
Answer: B) public
Explanation:
In C#, the interface members are always public , because the purpose of an interface is to
enable other types to access a class or struct. No other access modifiers can be applied to
interface members.
89. Which type of class does not have its own objects but acts as a base class for its
subclass in C#?
A. Abstract Class
B. Static Class
C. Sealed Class
D. Protected Class
Explanation:
In C#, the Abstract Class does not have its own objects but acts as a base class for its subclass.
Discuss this Question
90. Which modifier is used to while redefining an abstract method by a derived class in C#?
A. Overloads
B. New
C. Overrides
D. Virtual
Answer: C) Overrides
Explanation:
In C#, the Overrides modifier is used to while redefining an abstract method by a derived class.
A. Yes
B. No
Answer: A) Yes
Explanation:
A. Value
B. Memory address
C. Size of the type
D. Reference of the variable
Explanation:
93. C# pointer can only be declared to hold the memory address of ___.
Explanation:
C# pointer can only be declared to hold the memory address of value types and arrays. Unlike
reference types, pointer types are not tracked by the default garbage collection mechanism.
94. How many catch blocks can be used with a single try block in C#?
A. One
B. Two
C. Many
D. None of the above
Answer: C) Many
Explanation:
In C#, there can be multiple (many) catch blocks with a single try block.
A. Yes
B. No
Answer: A) Yes
Explanation:
A. private
B. public
C. protected
D. internal
Answer: B) public
Explanation:
The C# Main() method should be defined as public because it is called by runtime. By default
Main() method is private.
A. True
B. False
Answer: A) True
Explanation:
98. Which is the C# class from which data type UInt is derived?
A. System.Int16
B. System.Int32
C. System.UInt16
D. System.UInt32
Answer: D) System.UInt32
Explanation:
A. using System;
B. using system;
C. using Namespace;
D. namespace MyApplication
Explanation:
using System;
100. In C#, structures are used for ___ objects such as mobiles, cars, etc.
A. Lightweight
B. Darkweight
C. Extra
D. Compress
Answer: A) Lightweight
Explanation:
In C#, structures are used for lightweight objects such as mobiles, cars, etc.
ADVERTISEMENT
ADVERTISEMENT
Home » MCQs
ASP.Net MCQs
ASP.Net was developed by Microsoft, it is an open-source, server-side web-application
framework designed for web development to produce dynamic web pages. By using ASP.Net we
can build dynamic websites, applications, and services.
ASP.Net MCQs: This section contains multiple-choice questions and answers on ASP.Net. It
will help the students to test their skills and prepare well for their exams.
Explanation:
2. ASP.NET is a ____.
A. Client-Side technology
B. Server-side technology
C. Both
D. None
Explanation:
A. C#.NET
B. VB.NET
C. Both
D. None
Answer: C) Both
Explanation:
ASP.NET can be used with both C#.NET and ASP.NET for web development.
A. .asp
B. .aspx
C. .asx
D. .apx
Answer: B) .aspx
Explanation:
A. Yes
B. No
Answer: B) No
Explanation:
ADVERTISEMENT
A. CSS
B. JavaScript
C. AJAX
D. All
Answer: D) All
Explanation:
We can use CSS, JavaScript, and AJAX with ASP.NET for web application development.
A. Win Forms
B. HTML Forms
C. Web Forms
D. All
Explanation:
The Postback occurs in Web Forms.
Explanation:
The web.config file is used to store global information and variable definition.
A. True
B. False
Answer: A) True
Explanation:
Explanation:
ADVERTISEMENT
A. System.Web.Form
B. System.Web.UI.Page
C. System.Web.GUI.Page
D. System.Web.UI.Form
Answer: D) System.Web.UI.Form
Explanation:
12. Which of the following attribute must be set on a validator control for the validation?
A. ControlToValidate
B. ValidateControl
C. ValidateToBind
D. ValidateBind
Answer: A) ControlToValidate
Explanation:
The ControlToValidate attribute must be set on a validator control for the validation.
A. True
B. False
Answer: A) True
Explanation:
Explanation:
15. Which term is used for pages that depend on the Master page?
A. Content Pages
B. Master Pages
C. Web Pages
D. None of the above
Explanation:
The term is used for pages that depend on the Master page are Content Pages.
ADVERTISEMENT
16. Every Server control of ASP.NET must have an id?
A. True
B. False
Answer: A) True
Explanation:
A. Global.asax
B. Web.config
C. Local.asax
D. None
Answer: A) Global.asax
Explanation:
A. Init
B. Import
C. Load
D. All
Answer: B) Import
Explanation:
A. Integer
B. Boolean
C. Float
D. All
Answer: B) Boolean
Explanation:
A. True
B. False
Answer: A) True
Explanation:
ADVERTISEMENT
21. Which of the following folder is used to store DLL files in the ASP.NET application?
A. App_Code
B. App_Data
C. Bin
D. App_Local
Answer: C) Bin
Explanation:
The Bin folder is used to store DLL files in the ASP.NET application.
A. Google
B. Oracle
C. Sun Microsystems
D. Microsoft
Answer: D) Microsoft
Explanation:
23. Which of the following method is used to register client script using code dynamically?
A. Page.ClientScript.RegisterClientScriptBlock
B. RegisterScript
C. Page.ClientScript
D. None
Answer: A) Page.ClientScript.RegisterClientScriptBlock
Explanation:
24. Which is the first event triggered when a user requests an ASP.NET page?
A. Load
B. Init
C. PreInit
D. PreLoad
Answer: C) PreInit
Explanation:
The PreInit event gets triggered when a user requests an ASP.NET page.
A. LinkCounter
B. Counter
C. AdRotator
D. File Access
Answer: A) LinkCounter
Explanation:
26. Which of the following Session Mode Serialization is not required to store the data?
A. SQLServer
B. StateServer
C. InProc
D. None
Answer: C) InProc
Explanation:
The InProc Session Mode Serialization is not required to store the data.
Discuss this Question
Explanation:
Classic ASP
ASP.NET Web Forms
ASP.NET MVC
ASP.NET Web Pages
ASP.NET API
ASP.NET Core
A. Cache
B. Server
C. Database
D. Cookies
Answer: D) Cookies
Explanation:
Explanation:
Explanation:
ADVERTISEMENT
Explanation:
A. .aspx
B. .asp
C. .asm
D. .asmx
Answer: D) .asmx
Explanation:
A. SOAP Protocol
B. HTTP Protocol
C. TCP Protocol
D. FTP Protocol
Explanation:
A. System.Web.UI.Control
B. System.Web.Control
C. System.Web.UI.WebServer
D. All of the above
Answer: A) System.Web.UI.Control
The parent class of all web server control in ASP.Net is System.Web.UI.Control . The
System.Web.UI.Control class can directly or indirectly be used as part of the user interface for
your Web application.
35. What is the difference between session object and application object in ASP.Net?
A. The session object is used to maintain the session of each user while an application object
is created while a user enters in the application
B. Session objects are created on the server while application objects are created on the client
side.
C. Session objects are used to handle database communication while application objects are
used to handle communication between two different domains.
D. All of the above
Answer: A) The session object is used to maintain the session of each user while an application
object is created while a user enters in the application
Explanation:
The difference between a session object and an application object in ASP.Net is that: Session
object is used to maintain the session of each user while an application object is created while a
user enters the application.
36. What is the difference between Debug and Trace class in ASP.Net?
A. The Debug class is used to debug both builds and releases while the Trace class is used to
debug the builds only
B. Debug class is used in ASP core while Trace is used in ASP MCC
C. The Debug class is used to debug the builds while the Trace class is used to debug both
builds and releases
D. All of the above
Answer: C) The Debug class is used to debug the builds while the Trace class is used to debug
both builds and releases
Explanation:
The difference between Debug and Trace class in ASP.Net is - The Debug class is used to debug
the builds while the Trace class is used to debug both builds and releases.
A. Late binding
B. Early binding
C. Lazy binding
D. Global binding
Explanation:
A. Late binding
B. Early binding
C. Lazy binding
D. Global binding
Explanation:
A. Authentication.SignOut()
B. Forms.UI.SignOut()
C. FormsAuthentication.LogOut()
D. FormsAuthentication.SignOut()
Answer: D) FormsAuthentication.SignOut()
Explanation:
40. The ____ class is used to summarize the error messages from all validators on a Web
page in a single location.
A. ValidationSummary
B. Validation
C. ErrorSummary
D. Debug
Answer: A) ValidationSummary
Explanation:
The ValidationSummary class is used to summarize the error messages from all validators on a
Web page in a single location.
41. Which method is used in ASP.Net to preserve page and control values between round
trips?
A. Restore
B. Modeling
C. View State
D. Model Preserve
Explanation:
The View State method is used to preserve page and control values between round trips in
ASP.Net.
Answer: C) 30 Minutes
Explanation:
Explanation:
A. System.UI
B. SoapApplication
C. Application
D. HttpApplication
Answer: D) HttpApplication
Explanation:
Answer: D) UpLoad
Explanation:
A. 2
B. 3
C. 4
D. 5
Answer: B) 3
Explanation:
SiteMapPath
Menu
TreeView
A. Yes
B. No
Answer: A) Yes
Explanation:
A. Dataset
B. Data Reader
C. Data Adaptor
D. Command
E. Connection
F. All of the above
Explanation:
The components of ADO.Net are Dataset, Data Reader, Data Adaptor, Command, and
connection.
49. In ____ page processing transfers from one page to the other page without making a
round-trip back to the client's browser.
A. Response.Redirect
B. Server.Redirect
C. Client.Transfer
D. Server.Transfer
Answer: D) Server.Transfer
Explanation:
In Server.Transfer page processing transfers from one page to the other page without making a
round-trip back to the client's browser.
50. ____is used to redirect the user's browser to another page or site.
A. Response.Redirect
B. Server.Redirect
C. Client.Transfer
D. Server.Transfer
Answer: A) Response.Redirect
Explanation:
Response.Redirect is used to redirect the user's browser to another page or site.
A. Attributes("Event","Javascript_Code();")
B. Attributes.Add("Event","Javascript_Code();")
C. Attributes.Handle("Event","Javascript_Code();")
D. None of the above
Answer: B) Attributes.Add("Event","Javascript_Code();")
Explanation:
Attributes.Add("Event","Javascript_Code();")
A. 2
B. 3
C. 4
D. 6
Answer: B) 3
Explanation:
Output Caching
Fragment Caching
Data Caching
53. Which of the following statement are correct about Calendar control in ASP.NET?
A. 1 and 3
B. 2 and 4
C. 1 and 4
D. 2 and 3
Answer: C) 1 and 4
Explanation:
The 1st and 4th statements are correct about Calendar control in ASP.NET.
Explanation:
55. Using ASP.NET Calendar control, can a user move any day of any year?
A. True
B. False
Answer: A) True
Explanation:
Yes, using ASP.NET calendar control, the user can move any day of any year.
A. True
B. False
Answer: A) True
Explanation:
Yes, Visual Studio supports drag and drop for calendar control.
57. Which of the following property is used to apply the style to days in Calendar control?
A. Style
B. DayStyle
C. StyleDay
D. None of the above
Answer: B) DayStyle
Explanation:
The DayStyle property is used to apply the style to days in the Calendar control.
58. Which of the following property is used to apply the style to the day header row in
Calendar control?
A. DayHeaderStyleRow
B. DayHeaderStyle
C. StyleHeaderDay
D. None of the above
Answer: B) DayHeaderStyle
Explanation:
The DayHeaderStyle property is used to apply the style to the day header row in the Calendar
control.
A. True
B. False
Answer: A) True
Explanation:
Yes, we can apply the style to the month navigation button using the "NextPrevStyle" property
for Calendar control.
60. Which of the following event is triggered, when we make the selection in Calendar
control?
A. Selection Change
B. Selection Changed
C. OnSelection Changed
D. None of the above
Explanation:
The SelectionChanged event is triggered when we make the selection in the Calendar control.
61. Which of the following property is used to set custom text for the next month button
in Calendar control?
A. Month Text
B. Next Month Text
C. Next Text Month
D. NM Text
Explanation:
The NextMonthText property is used to set custom text for the next month button in the
Calendar control.
A. Font
B. Fore Color
C. Title Format
D. None of the above
Explanation:
63. Which of the following statement is correct about CheckBox control in ASP.NET?
A. It is an ASP.NET control that is used to select a choice from the group of choices.
B. It is an ASP.NET control that is used to select multiple choices from a group of choices.
C. NET does not support Checkbox control in ASP.NET.
D. None of the above
Answer: B) It is an ASP.NET control that is used to select multiple choices from a group of
choices.
Explanation:
The CheckBox control is used to select multiple choices from the group of choices.
A. True
B. False
Answer: B) False
Explanation:
A. True
B. False
Answer: A) True
Explanation:
Explanation:
67. Which of the following tag is used for the HTML checkbox?
A. <check>
B. <checkbox>
C. <input>
D. None of the above
Answer: C) <input>
Explanation:
68. Which of the following property is used to set the check state for ASP.NET CheckBox
control?
A. Check
B. Checked
C. Check State
D. None of the above
Answer: B) Checked
Explanation:
The "Checked" property is used to set the check state for ASP.NET CheckBox control.
69. Which of the following property is used to set border width for ASP.NET CheckBox
control?
A. Width
B. Border Width
C. Width Border
D. None of the above
Explanation:
The "BorderWidth" property is used to set border width for ASP.NET CheckBox control.
A. True
B. False
Answer: A) True
Explanation:
71. Which of the following property is used to set the font for ASP.NET CheckBox control?
A. SetFont
B. Font
C. FontSize
D. None of the above
Answer: B) Font
Explanation:
The "Font" property is used to set the font for ASP.NET CheckBox control.
72. Which of the following event is triggered on selection change for ASP.NET CheckBox
control?
A. On Selection Changed
B. Check Changed
C. On Check Change
D. None of the above
Explanation:
The "CheckChanged" event is used to trigger on selection change for ASP.NET CheckBox control.
73. Which of the following statement are correct about LinkButton control in ASP.NET?
A. Only 1
B. Only 2
C. 1 and 4
D. 2 and 3
Answer: B) Only 2
Explanation:
Explanation:
A. True
B. False
Answer: A) True
Explanation:
76. Which of the following property is used to set CSS Class to LinkButton control?
A. Set Css
B. Css Class
C. Css
D. Class
Explanation:
The "CssClass" property is used to set the CSS class to LinkButton control.
A. Enable
B. Is Enable
C. Enabled
D. Disabled
Answer: C) Enabled
Explanation:
78. The PostBackUrl property gets or sets the URL of the page to navigate to from the
current page?
A. True
B. False
Answer: A) True
Explanation:
Yes, the PostBackUrl property is used to get or set the URL of the page to navigate from the
current page.
79. Which of the following property is not available for LinkButton control?
A. Border Style
B. Causes Validation
C. Css Class
D. None of the above
Explanation:
1. On Click
2. On Client Click
3. On Command
4. All the above
A. 1 and 2
B. 1 and 3
C. 2 and 3
D. 4
Answer: D) 4
Explanation:
81. The LinkButton control makes a postback call to the server before redirecting the user
to the target page.
A. True
B. False
Answer: A) True
Explanation:
Yes, The LinkButton control makes a postback call to the server before redirecting the user to the
target page.
82. Which of the following statement is correct about FileUpload control in ASP.NET?
Answer: B) FileUpload control is used to upload files from the local machine to the server.
Explanation:
The FileUpload control is used to upload files from the local machine to the server.
Explanation:
84. Which of the following HTML tag is used to create file upload control in HTML?
A. File
B. Input
C. Upload
D. FP
Answer: B) Input
Explanation:
The <input> tag is used to create file upload control in HTML. The HTML syntax is given below:
85. Can we upload multiple files to the server using FIleUpload control?
A. True
B. False
Answer: A) True
Explanation:
Yes, we can upload multiple files using FileUpload control.
86. Which of the following property is used to get the selected filename using FIleUpload
control?
A. PostedFile.FileName
B. FileName
C. SelectedFile.FileName
D. PostedFile
Answer: A) FileUpload1.PostedFile.FileName
Explanation:
A. True
B. False
Answer: A) True
Explanation:
88. Which of the following property is used to allow multiple selections of files from
FileUpload control?
A. Access Multiple
B. Upload Multiple
C. Select Multiple
D. Allow Multiple
Explanation:
The "AllowMultiple" property is used to allow multiple selections of files from FileUpload control
in ASP.NET.
89. Which of the following method is used to save the selected file using FIleUpload
control?
A. PostedFile.Upload()
B. PostedFile.SaveAs()
C. PostedFile.SaveFile()
D. None of the above
Answer: B) FileUpload1.PostedFile.SaveAs()
Explanation:
A. True
B. False
Answer: A) True
Explanation:
Yes, The "Height" and "Width" properties are used to change the Height and Weight of
FileUpload control.
91. Which of the following property is used to get the length of the selected filename
using FIleUpload control?
A. PostedFile.ContentLength
B. PostedFile.Length
C. PostedFile.FileLength
D. None of the above
Answer: A) FileUpload1.PostedFile.ContentLength
Explanation:
Answer: D) Cookies are small pieces of data created by a web application while a user is
browsing a website.
Explanation:
Cookies are small pieces of data created by a web application while a user is browsing a website.
93. Which of the following statement is the correct way to store cookies in ASP.NET?
Explanation:
We can store cookies using cookies collection and HttpCookie class in ASP.NET.
A. 10 KB
B. 4 KB
C. 1 MB
D. 1 GB
Answer: B) 4 KB
Explanation:
A. Main Memory
B. Hard Drive
C. Cache Memory
D. CPU Registers
Explanation:
96. Is the browser store cookies for different websites the user visited?
A. True
B. False
Answer: A) True
Explanation:
Yes, the Browser stores cookies for different websites users visited.
97. Which of the following property is used to set the cookie's expiration date and time in
ASP.NET?
A. Response.Cookies ["mycookie"].ExpiresDateTime
B. Response.Cookies ["mycookie"].Expires
C. Response.Cookies ["mycookie"].ExpiresTime
D. Response.Cookies ["mycookie"].RemoveDateTime
Answer: B) Response.Cookies["mycookie"].Expires
Explanation:
A. Response.Cookies.Add()
B. Response.Cookies.SaveCookie()
C. Response.Cookies.AddCookie()
D. Response.Cookies.AddCookies()
Answer: A) Response.Cookies.Add()
Explanation:
99. Which of the following property is used to get cookies value in ASP.NET?
A. Response.Cookies["cookiename"].GetValue
B. Response.Cookies["cookiename"].CookieValue
C. Response.Cookies["cookiename"].GetCookieValue
D. Response.Cookies["cookiename"].Value
Answer: D) Response.Cookies["cookiename"].Value
Explanation:
100. Which of the following statement is correct about HyperLink control in ASP.NET?
Explanation:
The first syntax is correct to create an ASP.NET hyperlink. Here we refer <a
href="http://www.includehelp.com">to www.includehelp.com</a> from the hyperlink.
102. Which of the following property is used to set the shortcut key for ASP.NET hyperlink
control?
A. Shortcut
B. Shortcut Key
C. Access Key
D. Access Shortcut Key
Explanation:
The AccessKey property is used to set the shortcut key for ASP.NET hyperlink control.
A. Border Color
B. Back Color
C. Fore Color
D. Background Color
Explanation:
Answer: B) It displays a text when the mouse is over the ASP.NET control.
Explanation:
The Tooltip is used to display a text when the mouse is over the ASP.NET control.
A. An event
B. A property
C. An event handler
D. None of the above
Answer: B) A property
Explanation:
The Tooltip is a property, which is used to display a text when the mouse is over the ASP.NET
control.
106. Which of the following property is used to set the URL for HyperLink control?
A. Set URL
B. URL
C. Navigate Url
D. None of the above
Explanation:
The NavigateUrl property is used to set the URL for Hyperlink control.
107. Server renders ASP.NET Hyperlink to HTML hyperlink for the browser?
A. True
B. False
Answer: A) True
Explanation:
Yes, Web Server renders ASP.NET Hyperlink to HTML hyperlink for the browser.
A. <hyper>
B. <a>
C. <h>
D. <hr>
Answer: B) <a>
Explanation:
109. Which of the following statement is correct about RadioButton control in ASP.NET?
A. It is an ASP.NET control that is used to select a choice from the group of choices.
B. It is an ASP.NET control that is used to select multiple choices from a group of choices.
C. ASP.NET does not support RadioButton control in ASP.NET.
D. None of the above
Answer: A) It is an ASP.NET control that is used to select a choice from the group of choices.
Explanation:
The RadioButton control is used to select a choice from the group of choices.
110. Can we create RadioButton control using drag and drop, in Visual Studio?
A. True
B. False
Answer: A) True
Explanation:
Yes, we can create RadioButton control using drag and drop, in Visual Studio.
Explanation:
A. True
B. False
Answer: A) True
Explanation:
113. Which of the following property is used to set tab order for ASP.NET RadioButton
control?
A. Tab Order
B. Tab Index
C. Index
D. Tab
Explanation:
The TabIndex property is used to set the tab order for ASP.NET RadioButton control.
114. Which of the following property is used to set visibility for ASP.NET RadioButton
control?
A. Visible
B. Set Visibility
C. Visibility
D. None
Answer: A) Visible
Explanation:
The Visible property is used to set visibility for ASP.NET RadioButton control.
115. Which of the following property is used to set the group name for ASP.NET
RadioButton control?
A. Group
B. Group Name
C. G Name
D. None
Answer: B) Group Name
Explanation:
The GroupName property is used to set the group name for ASP.NET RadioButton control.
116. Server renders ASP.NET RadioButon to HTML RadioButon for the browser?
A. True
B. False
Answer: A) True
Explanation:
Yes, the Web Server renders ASP.NET RadioButton to HTML RadioButton for the browser.
117. Which of the following HTML tag is used for the radio button?
A. <radio>
B. <rd>
C. <input>
D. <radio button>
Answer: C) <input>
Explanation:
A. True
B. False
Answer: A) True
Explanation:
119. Which of the following property is used to set the keyboard shortcut key for Label
control?
A. Shortcut
B. Access Key
C. Key
D. Shortcut Key
Explanation:
The AccessKey property is used to set the keyboard shortcut key for label control.
120. Which of the following property is used to set tab index for web controls?
A. Index
B. Tab Index
C. Tab
D. None of the above
Explanation:
The TabIndex property is used to set the tab index for web controls.
121. Which of the following property is used to set background color for a Label control?
A. Back Color
B. Background Color
C. Bg Color
D. None of the above
Explanation:
The BackColor property is used to set the background color for a Label control.
Discuss this Question
A. It is an application event
B. It is a property
C. It is a method
D. None of the above
Answer: B) It is a property
Explanation:
123. Which of the following property is used to set password characters for a Textbox
control?
A. Pass Char
B. P Char
C. Password Char
D. None of the above
Explanation:
The PasswordChar property is used to set password characters for a Textbox control.
Explanation:
The MaxLength property is used to set the number of characters for a Textbox control.
Discuss this Question
A. A property
B. An Event
C. A Method
D. None of the above
Answer: A) A property
Explanation:
I. Key Press
II. Text Changed
III. Post Back
IV. Text Modified
A. 1 and 3
B. 1 and 2
C. 1 and 4
D. 3 and 4
Answer: B) 1 and 2
Explanation:
128. Which of the following is the correct syntax for an event handler for a Button control
in ASP.NET?
Explanation:
The 1st syntax is correct to implement an event handler for a Button control in ASP.NET.
A. True
B. False
Answer: A) True
Explanation:
A. ASPX File
B. Code behind file (.cs, .vb etc)
C. Both of the above
D. None of the above
Explanation:
The webforms are made up using visual portion (.aspx file) and code behind portion (.cs file).
Explanation:
132. IIS is a?
A. Web Browser
B. Web crawler
C. Web Server
D. None of the above
Explanation:
i. Button
ii. Textbox
iii. ImageButton
iv. LinkButton
A. 1 and 2
B. 1, 2, and 3
C. Only 1
D. All
Answer: D) All
Explanation:
A. Image Button
B. Data Grid
C. Panel
D. Table
Answer: C) Panel
Explanation:
Explanation:
The AdRotator control is used to specify a list of ads to display. Each time user re-displays the
page.
A. Check Box
B. Check Box List
C. Check Box Group
D. Check Box Group List
Answer: B) Check Box List
Explanation:
The CheckBoxList control is used to create a group of checkboxes that all work together.
A. Data List
B. Data Grid
C. Repeater
D. All
Answer: D) All
Explanation:
138. Which of the following are the correct application events for DataList control?
i. Cancel Command
ii. Edit Command
iii. Delete Command
iv. Update Command
A. 1 and 2
B. 1, 3, 4
C. All
D. None
Answer: C) All
Explanation:
All of the following are correct application events for DataList control.
139. Can we use the Click event on ImageButton similar to Button control?
A. True
B. False
Answer: A) True
Explanation:
140. Literal is a?
A. Server-side control
B. Application Event
C. Client-side control
D. None of the above
Explanation:
A. Text Field
B. Text Area
C. Place Holder
D. Reset Button
Explanation:
The PlaceHolder is an ASP.NET server control, which is used to set the placeholder for the
controls.
A. <HR>
B. <HL>
C. <HB>
D. None
Answer: C) <HB>
Explanation:
A. Server-side controls
B. Client-side controls
C. Both
D. None
Explanation:
A. Horizontal Rule
B. Horizontal Relay
C. Horizon Relay
D. Horizon Rule
Explanation:
145. Which of the following statement is correct about 'Text Area' control?
Explanation:
The "Text Area" control is used for multiline input on an HTML form.
146. Which of the following control is used to resets all other HTML form elements on a
form to a default value?
A. Clear Button
B. Default Button
C. Reset Button
D. Set Button
Explanation:
The Reset Button is used to resets all other HTML form elements on a form to a default value.
A. True
B. False
Answer: A) True
Explanation:
148. Which of the following statement are correct application events for Calendar control?
i. Selection Changed
ii. Visible Month Changed
iii. Day Render
iv. CalEvent
A. 1, 2
B. 1, 2, 3
C. 1, 3
D. 1, 4
Answer: B) 1, 2, 3
Explanation:
i. Selection Changed
ii. Visible Month Changed
iii. Day Render
149. Is LinkButton control used to create a button that looks similar to the hyperlink?
A. True
B. False
Answer: A) True
Explanation:
Yes, LinkButton control is used to create a button that looks similar to the hyperlink
ADVERTISEMENT
ADVERTISEMENT