0% found this document useful (0 votes)
2K views161 pages

Microsoft Azure Multiple-Choice Questions (MCQS)

Uploaded by

sohail peerjade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views161 pages

Microsoft Azure Multiple-Choice Questions (MCQS)

Uploaded by

sohail peerjade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 161

Home » MCQs

Microsoft Azure Multiple-Choice Questions (MCQs)


Microsoft Azure, often referred to as Azure, is a cloud computing platform operated by
Microsoft for application management via around the world-distributed data centers.

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.

List of Microsoft Azure MCQs


1. When Microsoft Azure came into existence?

A. 2004
B. 2002
C. 2010
D. 2001

Answer: C) 2010

Explanation:

Microsoft Azure came into existence in the year 2010.

Discuss this Question

2. What do you mean by cloud computing? Select the best answer.

A. A term referring to storing data over the internet


B. A platform where you can access huge amounts of data without having a hard disk.
C. A platform where you can access the data from a remote server.
D. All of the above

Answer: D) All of the above

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.

Discuss this Question


3. What is Microsoft Azure? Select the best answer.

A. An open platform that aids in development, service hosting


B. A cloud computing service created by Microsoft which helps in testing, deploying, and
managing the application.
C. A platform that offers a variety of technologies that are used for cloud service, mobile apps,
etc.
D. All of the above

Answer: D) All of the above

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.

Discuss this Question

4. How many types of clouds are there in Microsoft Azure?

A. 3
B. 2
C. 4
D. 5

Answer: A) 3

Explanation:

There are three types of cloud in Azure: PAAS, SAAS, and IASS.

Discuss this Question

5. What is the Azure active directory?

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.

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

6. Among Windows active directory and Azure active directory which is known to be the
oldest version?

A. Windows Active directory


B. Azure active directory

Answer: B) Azure active directory

Explanation:

Windows active directory is the previous version of Azure active directory.

Discuss this Question

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.

Discuss this Question

9. Which is the foundational cloud platform layer?

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.

Discuss this Question

10. Who are the main users of IAAS?

A. Developers
B. End users
C. Network architect

Answer: C) Network architect

Explanation:

IAAS is used by network architects.


Discuss this Question

ADVERTISEMENT

Save big on your ITSM solution


With great deals for all teams, now
is a perfect time to switch to Jira
Service Management

11. Which of the following are the advantages of using IAAS?

A. IAAS provides dynamic scaling.


B. IAAS enables instant recovery from outages.
C. IAAS provides us with a monthly operational expense.
D. All of the above

Answer: D) All of the above

Explanation:

There are several advantages of IAAS:

IAAS provides dynamic scaling.


IAAS enables instant recovery from outages.
IAAS provides us the monthly operational expense
IAAS provides pay for what you use metrics
It can be accessed via a simple internet connection.

Discuss this Question

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.

Discuss this Question

13. Who are the main users of PAAS?

A. Developers
B. End users
C. Network architect

Answer: A) Developers

Explanation:

PAAS is used by developers and application providers.

Discuss this Question

14. Who are the main users of SAAS?

A. Developers
B. End users
C. Network architect

Answer: B) End users

Explanation:

SAAS is used by end users.

Discuss this Question

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.

Discuss this Question

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

16. The term ____refers to a geographical location or area?

A. Regions
B. Data center
C. Resources

Answer: A) Regions

Explanation:

The term region refers to a geographical location or area.

Discuss this Question

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

Answer: B) Closer 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

18. ____ are physical buildings located in specific geographical regions?

A. Resources
B. Regions
C. Data center
D. Resource groups

Answer: C) Data center

Explanation:

Data centers are physical buildings located in specific geographical regions.

Discuss this Question

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

Answer: B) Azure portal

Explanation:

Creating, managing, and removing Azure resources and services is done through the Azure
portal, which is a web-based application.

Discuss this Question

20. Are Azure resources and Azure services the same?

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

Answer: B) Resource Group

Explanation:

An Azure resource group is a container that holds related resources for an Azure solution.

Discuss this Question

22. Is Azure CLI and Azure PowerShell the same thing?

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.

Discuss this Question

23. ____ is a set of modules that offer cmdlets to manage Azure.


A. Azure PowerShell
B. Azure CLI

Answer: A) Azure PowerShell

Explanation:

PowerShell is a set of modules that offer cmdlets to manage Azure.

Discuss this Question

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

Answer: C) Azure fabric controller

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.

Discuss this Question

25. Azure Fabric controller in Azure is connected to which software?

A. Azure PowerShell
B. REST API
C. Authentication servers
D. Azure orchestrator

Answer: D) Azure orchestrator

Explanation:

Azure fabric controller is connected to Azure orchestrator, which includes web services and REST
API.

Discuss this Question

26. How many certification categories does Microsoft Azure provide?


A. 3
B. 4
C. 5
D. 6

Answer: A) 3

Explanation:

There are three categories of Microsoft certifications: Azure administrator, Azure developer, and
Azure solution architect.

Discuss this Question

27. How many types of cloud computing are there?

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.

Discuss this Question

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

Answer: A) Public cloud

Explanation:

In the public cloud resources are owned and operated by a third-party cloud service provider.

Discuss this Question


29. A ____ is a collection of resources that are used exclusively within a business or
organization.

A. Public cloud
B. Private Cloud
C. Hybrid cloud

Answer: B) Private Cloud

Explanation:

A private cloud is a collection of resources that are used exclusively within a business or
organization.

Discuss this Question

30. Which storage is used to store huge amounts of unstructured data in Azure?

A. Azure queue storage


B. Azure File storage
C. Azure blob storage
D. Azure table storage
E. Azure Archive storage

Answer: C) Azure table storage

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.

Discuss this Question

ADVERTISEMENT

Save big on your ITSM solution


With great deals for all teams, now
is a perfect time to switch to Jira
Service Management
31. Which storage is used in Azure when one wants to share the files between two servers
so that they can be accessible on both servers?

A. Azure queue storage


B. Azure File storage
C. Azure blob storage
D. Azure table storage
E. Azure Archive storage

Answer: B) Azure File storage

Explanation:

Azure file storage is used when one wants to share files between two servers so that they can be
accessible on both servers.

Discuss this Question

32. Which storage in Azure provides us with the feature of cloud messaging?

A. Azure queue storage


B. Azure File storage
C. Azure blob storage
D. Azure table storage
E. Azure Archive storage

Answer: A) Azure queue storage

Explanation:

Azure queue storage in Azure provides us with the feature of cloud messaging.

Discuss this Question

33. Which storage is used for rarely accessed files with cost-effective plans in Azure?

A. Azure queue storage


B. Azure File storage
C. Azure blob storage
D. Azure table storage
E. Azure Archive storage

Answer: E) Azure Archive storage

Explanation:
Azure archive storage is used for rarely accessed files with cost-effective plans in Azure.

Discuss this Question

34. Which data storage in Azure has a schema-less design and is used to store the NoSQL
data?

A. Azure queue storage


B. Azure File storage
C. Azure blob storage
D. Azure table storage
E. Azure Archive storage

Answer: D) Azure table storage

Explanation:

Azure table storage is used to store the NoSQL data with a schema less design.

Discuss this Question

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

Answer: C) Azure disk storage

Explanation:

With Azure disk storage Windows and Linux can use shared cloud block storage at the same
time.

Discuss this Question

36. Which is the hybrid storage in Azure?

A. Azure StorSimple
B. Azure site recovery
C. Azure disk storage
D. Azure data box
Answer: A) Azure StorSimple

Explanation:

Azure StorSimple is basically a hybrid cloud storage.

Discuss this Question

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

Answer: B) Azure site recovery

Explanation:

Azure site recovery is used for retrieval and replication of workloads in Azure in case of disaster.

Discuss this Question

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

Answer: D) Azure data box

Explanation:

Azure data service is used to transfer huge amounts of data in terabytes in Azure.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

41. What does CDN for in Azure?

A. Command dictionary network


B. Common dictionary network
C. Content delivery network
D. Content dominates network

Answer: C) Content delivery network

Explanation:

CDN stands for content delivery network.

Discuss this Question

42. What are the types of storage accounts in Azure?

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.

Discuss this Question

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.

Answer: 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.

Discuss this Question

44. How many types of performance tiers are there?

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.

Discuss this Question

45. Which type of performance tier offers consistency and low latency performance?

A. Standard performance
B. Premium storage performance.

Answer: B) Premium storage performance.

Explanation:
Premium storage performance type of performance tier that offers consistency and low latency
performance.

Discuss this Question

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.

Discuss this Question

47. Among the cold storage tier and hot storage tier which have lower storage costs and
higher access costs?

A. Cold storage tier


B. Hot storage tier

Answer: A) Cold storage tier

Explanation:

The cool tier has lower storage costs and higher access costs compared to the hot tier.

Discuss this Question

48. Which storage tier is augmented for storing data that is accessed frequently?

A. Cold storage tier


B. Hot storage tier
C. Archive storage tier

Answer: B) Hot storage tier

Explanation:
Hot storage tier is augmented for storing data that is accessed frequently.

Discuss this Question

49. In terms of storage, which of the following tier is expensive?

A. Cold storage tier


B. Hot storage tier

Answer: B) Hot storage tier

Explanation:

In terms of storage, the hot storage tier is more expensive than the cold storage tier.

Discuss this Question

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.

Discuss this Question

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.

Answer: A) Locally-Redundant Storage

Explanation:
In Locally-Redundant Storage, data is replicated three times within a single data center.

Discuss this Question

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.

Answer: B) Zone-Redundant Storage

Explanation:

In the zone redundant replication strategy of Azure, data is replicated across data centers but
within the region.

Discuss this Question

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.

Answer: C) Geo-Redundant Storage

Explanation:

In the Geo-redundant storage replication strategy our data is copied synchronously three times
using LRS.

Discuss this Question

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.

Discuss this Question

55. Which Azure service provides the record of events that have been carried out on a
specific resource?

A. Azure activity log


B. Azure resources
C. Azure resource groups
D. Azure resource manager

Answer: A) Azure activity log

Explanation:

Azure activity log service provides the record of events that have been carried out on a specific
resource.

Discuss this Question

56. What does CORS stand for in Azure?

A. Combine oriented relation system


B. Combine object relation service
C. Cross-origin resource service
D. Combine origin resource service

Answer: C) Cross-origin resource service

Explanation:

CORS stands for cross-origin resource service.

Discuss this Question

57. What is the full form of SAS in Azure?

A. Shared authentication service


B. Shared access service
C. Shared authentication system
D. Shared access signature
Answer: D) Shared access signature

Explanation:

SAS stands for Shared access signature.

Discuss this Question

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

Answer: D) Shared access signature

Explanation:

SAS Azure Storage service provides restricted access rights to Azure Storage resources using a
URI.

Discuss this Question

59. The maximum size of a block blob is____?

A. 12 TB
B. 200 GB
C. 1000GB
D. Unlimited

Answer: B) 200 GB

Explanation:

The maximum size of a block blob is 200 GB.

Discuss this Question

60. How many types of Blobs are provided by Azure?

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.

Discuss this Question

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

Answer: A) Block blob

Explanation:

Block blob can be managed individually and store text and binary data in Azure.

Discuss this Question

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

Answer: B) Append blob

Explanation:

Append blob is ideal for an application like logging data from virtual machines.

Discuss this Question

63. Which type of blob can store files up to 8 TB?

A. Block blob
B. Append blob
C. Page blob

Answer: C) Page blob

Explanation:
Page blobs can store files up to 8 TB, these blobs are created by default.

Discuss this Question

64. Is blob and container the same thing?

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.

Discuss this Question

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.

Discuss this Question

66. Azure storage security is divided into how many areas?

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?

A. Management plane security


B. Data place security
C. Encryption in transit
D. Encryption in rest
E. cross-origin resource sharing.

Answer: A) Management plane security

Explanation:

Management plane storage security refers to the process that affects the storage account itself

Discuss this Question

68. Which storage security in Azure denotes the approaches used to protect the data
objects?

A. Management plane security


B. Data place security
C. Encryption in transit
D. Encryption in rest
E. E. cross-origin resource sharing.

Answer: B) Data place security

Explanation:

Data place security in Azure denotes the approaches used to protect the data objects.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

72. In Azure storage services, the Azure table stores which form of data?

A. Structured data
B. Unstructured data

Answer: A) Structured data


Explanation:

The Azure table stores structured forms of data.

Discuss this Question

73. Which of the following is the more advanced version of queue storage service in Azure?

A. Azure table service


B. Azure advance queue service
C. Azure service bus queue
D. None

Answer: C) Azure service bus queue

Explanation:

Azure service bus queue is the advanced version of the Azure queue storage service.

Discuss this Question

74. How many types of disk storage are provided by Azure?

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.

Discuss this Question

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.

Answer: 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.

Discuss this Question

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.

Answer: A) Managed 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.

Discuss this Question

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.

Discuss this Question

78. Which service in Azure accomplishes logging and offers metrics data for a storage
account?

A. Azure Storage services


B. Azure storage analytics services
C. Azure compute services

Answer: B) Azure storage analytics services


Explanation:

Azure storage analytics services Azure is a kind of service that accomplishes logging and offers
metrics data for a storage account.

Discuss this Question

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.

Discuss this Question

80. Which type of metric in Azure records day-to-day storage accounts' Blob service,
containers, etc?

A. Transaction metrics
B. Capacity metrics.

Answer: B) Capacity metrics.

Explanation:

Capacity metric is the type of metric in Azure that records day-to-day storage account Blob
service, containers, etc.

Discuss this Question

81. In which type of metric accumulated data is recorded on an hourly or minute basis?

A. Transaction metrics
B. Capacity metrics.

Answer: A) Transaction metrics


Explanation:

Transaction metrics are a type of metrics in which aggregated data is recorded hourly or minute.

Discuss this Question

82. On which Azure service can we test our application against the storage services locally
without spending any cost?

A. Azure storage explorer


B. Azure storage emulator
C. Azure test application

Answer: B) Azure storage emulator

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.

Discuss this Question

83. Which Azure service permits us to proficiently work with Azure Storage data on
Windows, macOS, and Linux?

A. Azure storage explorer


B. Azure storage emulator
C. Azure test application

Answer: A) Azure storage explorer

Explanation:

Azure storage explorer service in Azure permits us to proficiently work with Azure Storage data
on Windows, macOS, and Linux.

Discuss this Question

84. What is known to be the fundamental building block of Azure network services?

A. Azure virtual network


B. Azure network security
C. Azure network interface
D. Azure storage emulator
Answer: A) Azure virtual network

Explanation:

Azure virtual networks are supposed to be known as the fundamental building block of Azure
network services.

Discuss this Question

85. Which Azure service protects the workload in the virtual network from DDoS attacks in
Azure?

A. Azure virtual network


B. Azure network security
C. Azure DDoS protection
D. Azure Firewall protection

Answer: C) Azure DDoS protection

Explanation:

Azure DDoS protection service protects the workload in the virtual network from DDoS attacks in
Azure.

Discuss this Question

86. Which Azure service is used when we need network security?

A. Azure virtual network


B. Azure Firewall protection

Answer: B) Azure Firewall protection

Explanation:

Azure Firewall protection is used when we need network security.

Discuss this Question

87. What is the full form of NSG in Azure?

A. Network service group


B. Network system group
C. Network security group
Answer: C) Network security group

Explanation:

NSG stands for Network security group.

Discuss this Question

88. Among NSG and Firewall, which is more expensive in Azure?

A. Network security group


B. Firewall

Answer: B) Firewall

Explanation:

A firewall is quite expensive than NSG.

Discuss this Question

89. Which service in Azure controls the circulation of the user stream of traffic for service
endpoints in diverse regions?

A. Network service group


B. Traffic manager
C. Firewall
D. Load balancer

Answer: B) Traffic manager

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.

Discuss this Question

90. Which service in Azure aids us to distribute the stream of traffic evenly between
application servers?

A. Network service group


B. Traffic manager
C. Firewall
D. Load balancer
Answer: D) Load balancer

Explanation:

Load balancer service in Azure aids us to distribute the stream of traffic evenly between
application servers.

Discuss this Question

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.

Discuss this Question

92. Which service in Azure acts as an interconnection between a Virtual Machine and the
underlying software network?

A. Network service group


B. Traffic manager
C. Firewall
D. Azure network interface

Answer: D) Azure network interface

Explanation:

Azure network interface acts as an interconnection between a virtual machine and the underlying
software network.

Discuss this Question

93. How many types of IP addresses are there in Azure?

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.

Discuss this Question

94. Which Azure service allows us to connect two VNet in the same or across regions?

A. Network service group


B. VNet peering
C. Global peering
D. VNet

Answer: B) VNet peering

Explanation:

VNet peering allows us to connect two VNet in the same or across regions.

Discuss this Question

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

Answer: A) VPN gateway

Explanation:

VPN Gateway Azure service acts as a middleman on both sides of the virtual networks.

Discuss this Question

96. How many categories are there of Azure compute services?

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.

Discuss this Question

97. In Azure the Virtual machines are PAAS or IAAS?

A. PAAS
B. IAAS

Answer: B) IAAS

Explanation:

In Azure, the VM's are IAAS i.e., infrastructure as a service.

Discuss this Question

98. Which service of Azure is used for hosting web applications, REST APIs, and mobile
backends?

A. Azure App service


B. Azure Virtual machines
C. Azure service fabric

Answer: A) Azure App service

Explanation:

App service in Azure is used for hosting web applications, REST APIs, and mobile backends.

Discuss this Question

99. Is Azure app service a PAAS or IAAS?

A. PAAS
B. IAAS

Answer: A) PAAS

Explanation:
Azure app service is a platform as a service (PAAS).

Discuss this Question

100. Which Azure service offers the rapidest method to start developing and deploying
cloud-native apps in Azure?

A. Azure App service


B. Azure Virtual machines
C. Azure service fabric
D. Azure Kubernetes service

Answer: D) Azure Kubernetes service

Explanation:

Azure Kubernetes service offers the rapidest method to start developing and deploying cloud-
native apps in Azure.

Discuss this Question

101. Which of the following are the key services that are associated with Azure compute
services?

A. Azure security center


B. Active Directory
C. Key Vault
D. All of the above

Answer: D) All of the above

Explanation:

The three key services that are related to Azure compute services are: Azure security center,
Active Directory, and Key Vault.

Discuss this Question

102. Which disk in a virtual machine in Azure offers temporary storage for applications and
processes?

A. Operating system disk


B. Temporary disk
C. Data disk
Answer: B) Temporary disk

Explanation:

Temporary disk in a virtual machine in Azure offers temporary/ short-term storage for
applications and processes.

Discuss this Question

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

Answer: A) Server-side 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.

Discuss this Question

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

Answer: 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.

Discuss this Question

105. Which service of Azure lets you create and manage a collection of loaded balanced
VMs?

A. Azure machine auto-scaling


B. Azure virtual machine scale set
Answer: B) Azure virtual machine scale set

Explanation:

Azure virtual machine scale set service of Azure lets you create and manage a collection of
loaded balanced VMs.

Discuss this Question

106. How many types of scaling are provided by Azure?

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.

Discuss this Question

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.

Answer: 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.

Discuss this Question

108. Which type of scaling in Azure, provides more capacity in terms of memory?

A. Vertical scaling
B. Horizontal scaling.

Answer: A) Vertical scaling


Explanation:

Vertical scaling is a type of scaling in Azure which provides more capacity in terms of memory.

Discuss this Question

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:

Four types of metrics are offered by Azure in terms of autoscaling:

Compute metrics for Resource Manager-based VMs.


Commonly used App Service (server farm) metrics.
Commonly used Storage metrics.
Commonly used Service Bus metrics.

Discuss this Question

110. Which service in Azure delivers timely and tailored information when difficulties in
Azure services impact your services?

A. Azure service health


B. Azure resource health

Answer: A) Azure service health

Explanation:

Azure service health service in Azure delivers timely and tailored information when difficulties in
Azure services impact your services.

Discuss this Question

111. Which service in Azure aids us to detect and get support when an Azure issue affects
our resources?

A. Azure service health


B. Azure resource health

Answer: B) Azure resource health

Explanation:

Azure resource health service in Azure aids us to detect and get support when an Azure issue
affects our resources.

Discuss this Question

112. How many components does Azure cloud service have?

A. 2
B. 4
C. 3
D. 5

Answer: C) 3

Explanation:

Azure cloud service consists of 3 components: ServiceDefenition.csdef,


ServiceConfiguration.cscfg, Service package. Cspkg.

Discuss this Question

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.

Answer: C) Service package. Cspkg.

Explanation:

Service package. Cspkg. Cloud service component in Azure used to deploy the application as a
cloud service.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

116. Which Azure service provides compute resources for running a web app?

A. App Service plan


B. App Service environment

Answer: A) App Service plan

Explanation:

App Service plan service provides compute resources for running a web app.

Discuss this Question

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.

Discuss this Question

118. Which service in Azure also known as the Microsoft Data sync Framework?

A. Azure web app


B. Azure app service
C. Azure mobile app

Answer: C) Azure mobile app

Explanation:

Azure mobile app service in Azure is also known as the Microsoft Data sync Framework.

Discuss this Question

119. Which service of Azure is an SDK characteristic of Azure Mobile Apps?

A. Azure web app


B. Azure app service
C. Azure mobile app
D. Mobile offline data sync

Answer: D) Mobile offline data sync

Explanation:

Mobile offline data sync is an SDK characteristic of Azure Mobile Apps.

Discuss this Question

120. Can you state which Azure services we can use to send notifications to users via
mobile push notifications?

A. Azure web app


B. Azure app service
C. Azure mobile app
D. Mobile offline data sync
E. Azure Notification Hubs

Answer: E) Azure Notification Hubs

Explanation:

With the help of Azure Notification Hubs services, we can send notifications to users via mobile
push notifications.

Discuss this Question

121. Which of the following are the advantages of Azure Notification Hubs?

A. Provide the functionality of multiplatform


B. Provide better scaling
C. Vibrant set of delivery patterns.
D. All of the above

Answer: D) All of the above

Explanation:

Following are the advantages of Azure notification hubs:

Provide the functionality of multiplatform


Provide better scaling
Vibrant set of delivery patterns.

Discuss this Question

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.

Discuss this Question


123. Which type of scale in Azure app services provides us more CPU, memory, disc space,
dedicated virtual machines, etc?

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.

Discuss this Question

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.

Discuss this Question

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:

Quota in Azure is defined as the Consumption limits for user subscriptions.

Discuss this Question


126. Which Azure service gives information about how an app or App Service plan
behaves?

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.

Discuss this Question

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

Answer: B) Access policy

Explanation:

Access policy specifies how long an asset can be accessed and by whom.

Discuss this Question

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

129. Which of the following terms processed an audio or video presentation?

A. Assets
B. Access policy
C. Job
D. Program
E. Locators

Answer: C) Job

Explanation:

The job processed an audio or video presentation in Azure media service.

Discuss this Question

130. Which of the following tools in Azure simplifies, guides, and automates the migration
of your databases to Azure?

A. Azure data migration service


B. Azure data sync
C. SQL stretch database

Answer: A) Azure data migration service

Explanation:

Azure data migration service is a tool in Azure that simplifies, guides, and automates the
migration of your databases to Azure.

Discuss this Question

131. Which of the following aids us to replicate the data from our on-premises database
into Azure?

A. Azure data migration service


B. Azure data sync
C. SQL stretch database

Answer: B) Azure data sync

Explanation:
Azure data sync aids us in replicating the data from our on-premises database into Azure.

Discuss this Question

132. Which of the following database services in Azure works as a hybrid database i.e., cold
data and hot data?

A. Azure data migration service


B. Azure data sync
C. SQL stretch database

Answer: C) SQL stretch database

Explanation:

SQL stretch database service in Azure works as a hybrid database i.e., cold data and hot data.

Discuss this Question

133. Which of the following in Azure, organizes data movement and transforms data at
scale with data-driven workflows?

A. Azure data migration service


B. Azure data sync
C. SQL stretch database
D. Data factory

Answer: D) Data factory

Explanation:

Data factory organizes data movement and transforms data at scale with data-driven workflows.

Discuss this Question

134. What is hot data in Azure?

A. A type of data that is kept on premises in a data center.


B. A type of data that is kept on Azure.

Answer: A) A type of data that is kept on premises in a data center.

Explanation:

Hot data is a type of data that is kept on premises in a data center.


Discuss this Question

135. What is cold data in Azure?

A. A type of data that is kept on premises in a data center.


B. A type of data that is kept on Azure.

Answer: B) A type of data that is kept on Azure.

Explanation:

Cold data is a type of data that is kept on Azure.

Discuss this Question

136. Cosmos DB in Azure is for NoSQL DB or SQL DB?

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.

Discuss this Question

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

Answer: B) Azure Cosmos DB

Explanation:

Azure SQL DB is the database for all kinds of relational data, including JSON, spatial, and XML in
Azure.

Discuss this Question


138. In how many ways can you implement the SQL database 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.

Discuss this Question

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.

Answer: A) Managed Instance

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.

Discuss this Question

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.

Answer: B) Single database

Explanation:
Single database resource types create databases in Azure SQL Database that comprise their
resources and are accomplished by servers.

Discuss this Question

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.

Answer: 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.

Discuss this Question

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.

Discuss this Question

143. Which of the following purchasing models in Azure SQL server allows you to select a
generation of hardware?

A. VCore purchasing model


B. DTU model.

Answer: A) VCore purchasing model


Explanation:

VCore purchasing model in the Azure SQL server allows you to select a generation of hardware.

Discuss this Question

144. Which purchasing model in Azure SQL server is the finest for patrons who want
simple, pre-configured resource options?

A. VCore purchasing model


B. DTU model.

Answer: B) DTU model.

Explanation:

DTU model purchasing model in Azure SQL server is finest for patrons who want simple, pre-
configured resource options.

Discuss this Question

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

Discuss this Question

146. SQL-managed instance is based upon which purchasing model?

A. VCore purchasing model


B. DTU model.

Answer: A) VCore purchasing model

Explanation:
SQL-managed instance is based upon the VCore purchasing model.

Discuss this Question

147. How many components does a data factory have?

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.

Discuss this Question

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.

Discuss this Question

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

Answer: 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.

Discuss this Question

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.

Discuss this Question

151. In which Azure service developers provide support to the support team, planning
work, collaborating on code development, and building and deploying applications?

A. Azure cloud service


B. Azure DevOps
C. Azure app service

Answer: B) Azure DevOps

Explanation:

In Azure DevOps service developers provide support to the support team, planning work,
collaborating on code development, and building and deploying applications.

Discuss this Question

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

Answer: C) Azure DevOps repository

Explanation:

In the Azure DevOps repository you can manage your code with version control tools.

Discuss this Question

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.

Discuss this Question

154. Which type of version in Azure repo is distributed version control?

A. Git
B. Team Foundation Version Control.
C. Both

Answer: A) Git

Explanation:

Git is a distributed version control.

Discuss this Question

155. Which type of version in Azure repo is centralized version control?

A. Git
B. Team Foundation Version Control.
C. Both

Answer: B) Team Foundation Version Control.

Explanation:

Team Foundation Version Control is centralized version control.

Discuss this Question

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.

Discuss this Question

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

Answer: B) Branch policies

Explanation:

In Azure repo, branch policy is known to be an indispensable part of the Git workflow.

Discuss this Question

158. Which Azure repo concept is a complete replica of a repository?


A. Git
B. Project
C. Repository
D. Fork

Answer: D) Fork

Explanation:

In the Azure repo, Fork is a complete replica of a repository.

Discuss this Question

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

Answer: A) Hot tier

Explanation:

Hot tier has the highest storage cost but at the same time lowest access costs.

Discuss this Question

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.

Discuss this Question

161. What is the full form of ETL?


A. Exact transform load
B. Electronic transformation loading
C. Extract transform load

Answer: C) Extract transform load

Explanation:

ETL stands for extract transform load.

Discuss this Question

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.

Discuss this Question

163. At which stage of ETL, the quality of data is being maintained?

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.

Discuss this Question

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.

Discuss this Question

165. ____is used at every stage of the ETL pipeline.

A. App service
B. Transformation function
C. HD insights
D. Orchestration

Answer: D) Orchestration

Explanation:

Orchestration is used at every stage of the ETL pipeline.

Discuss this Question

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

Answer: D) Apache Oozie

Explanation:

Apache Oozie framework acts as a workflow and synchronizes the system that accomplishes
Hadoop jobs.

Discuss this Question

167. What is the full form of ADLS in Azure?


A. Azure data load service
B. Azure data load storage
C. Azure data lake storage
D. Azure data lake service

Answer: C) Azure data lake storage

Explanation:

ADLS stands for Azure data lake storage.

Discuss this Question

168. Which Azure service is managed, hyper scale analytics data store from which the data
is stored?

A. Azure data factory


B. Azure Synapse analytics
C. Azure data lake storage
D. Azure data lake service

Answer: C) Azure data lake storage

Explanation:

ADLS service is managed, hyper scale analytics data store from which the data is stored.

Discuss this Question

169. Which Azure service is present in the Azure HDInsight and stores the data in key-value
format?

A. Azure data factory


B. Apache HBase
C. Apache Sqoop
D. Azure Synapse analytics

Answer: B) Apache HBase

Explanation:

Apache HBase service is present in the Azure HDInsight and stores the data in key-value format.

Discuss this Question


170. How many PaaS relational databases are available in Azure?

A. 3
B. 4
C. 5
D. 6

Answer: A) 3

Explanation:

Three PaaS relational databases available in Azure:

Azure SQL Database


Oracle MySQL
Microsoft Azure Database

Discuss this Question

171. Which tool in Azure is used for moving data across structured, semi-structured, and
unstructured data sources quickly and efficiently?

A. Azure data factory


B. Apache HBase
C. Apache Sqoop
D. Azure Synapse analytics

Answer: C) Apache Sqoop

Explanation:

Apache Sqoop tool in Azure is used for moving data across structured, semi-structured, and
unstructured data sources quickly and efficiently.

Discuss this Question

172. How many types of instances are provided by Azure?

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.

Discuss this Question

173. Which Azure service effortlessly unites with open-source libraries and also offers the
newest version of Apache spark?

A. Azure data factory


B. Apache HBase
C. Apache Sqoop
D. Azure Databricks

Answer: D) Azure Databricks

Explanation:

Azure data bricks service effortlessly unites with open-source libraries and also offers the newest
version of Apache spark.

Discuss this Question

174. Which Azure service consists of a web-based interface for an executable document, as
well as graphic animations and narrative text?

A. Azure data factory


B. Apache HBase
C. Apache Sqoop
D. Azure Databricks
E. Azure notebook

Answer: E) Azure notebook

Explanation:

Azure notebook service consists of a web-based interface for an executable document, as well as
graphic animations and narrative text.

Discuss this Question

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.

Discuss this Question

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

Answer: D) Azure lighthouse

Explanation:

Azure lighthouse service provides enhanced governance across resources, multi-tenant


scalability, and higher automation.

Discuss this Question

177. What is the full form of PAM in Azure?

A. Public access method


B. Private access method
C. Privileged access management
D. Privileged access method

Answer: C) Privileged access management

Explanation:

PAM stands for Privileged access management.

Discuss this Question

178. Which Azure service recovers control of a hacked Active Directory environment?

A. Public access method


B. Privileged access management
C. Azure lighthouse
D. Azure Notebook

Answer: B) Privileged access management

Explanation:

PAM service recovers control of a hacked Active Directory environment.

Discuss this Question

179. Which type of service is provided by DevOps?

A. IAAS
B. PAAS
C. SAAS

Answer: C) SAAS

Explanation:

Azure DevOps is a kind of SAAS i.e., software as a service.

Discuss this Question

ADVERTISEMENT

Save big on your ITSM solution


With great deals for all teams, now
is a perfect time to switch to Jira
Service Management

ADVERTISEMENT
Home » MCQs

C# Multiple-Choice Questions (MCQs)


C# is a general-purpose, multi-paradigm programming language. C# programming language
encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional,
generic, object-oriented, and component-oriented programming disciplines.

C# MCQs: This section contains multiple-choice questions and answers on C# programming


language. It will help the students and developers to prepare well for their exams, and enhance
their skills.

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:

C# is a programming language, developed by Microsoft.

Discuss this Question

2. C# runs on the ___.


A. .NET Framework
B. Java Virtual Machine
C. Both A. and B.
D. None of the above

Answer: A) .NET Framework

Explanation:

C# runs on the .NET Framework.

Discuss this Question

3. C# programming language is used to develop -

A. Web apps
B. Desktop apps
C. Mobiles apps
D. All of the above

Answer: D) All of the above

Explanation:

C# programming language is used to develop the web apps, desktop apps, mobile apps, games
and much more.

Discuss this Question

4. Is C# an object-oriented programming language?

A. Yes
B. No

Answer: A) Yes

Explanation:

Yes, C# is an object-oriented programming language.

Discuss this Question

5. Is C++ an alias of C#?

A. Yes
B. No

Answer: B) No

Explanation:

No, C++ is not an alias of C#.

Discuss this Question

ADVERTISEMENT

6. What is the extension of a C# language file?

A. .c
B. .cpp
C. .cs
D. .csp

Answer: C) .cs

Explanation:

The C# file is saved with ".cs" extension.

Discuss this Question

7. Who is the founder of C# programming language?

A. Anders Hejlsberg
B. Douglas Crockford
C. Rasmus Lerdorf
D. Brendan Eich

Answer: A) Anders Hejlsberg


Explanation:

C# programming language is developed by Anders Hejlsberg.

Discuss this Question

8. Is C# a type safe programming language?

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.

Discuss this Question

9. Is C# a structured programming language?

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.

Discuss this Question

10. CLR stands for ___.

A. Common Type System


B. Common Language Specification
C. Common Language Runtime
D. Java Virtual Machine

Answer: C) Common Language Runtime

Explanation:

CLR stands for Common Language Runtime.


Discuss this Question

ADVERTISEMENT

11. .Net CLR is equivalent to?

A. Common Type System


B. Common Language Specification
C. Common Language Runtime
D. Java Virtual Machine

Answer: D) Java Virtual Machine

Explanation:

.NET CLR is equivalent to JVM (Java Virtual Machine).

Discuss this Question

12. What is CLR in C#?

A. It is a virtual machine component of Microsoft .NET Framework


B. It is a virtual machine component of JVM
C. It is a compiler to compiler the C# code
D. All of the above

Answer: A) It is a virtual machine component of Microsoft .NET Framework

Explanation:

CLR is a virtual machine component of Microsoft .NET Framework.

Discuss this Question


13. What does the CLR in C# do?

A. Manages the execution of Webpages programs


B. Manages the parsing of the various types
C. Manages the execution of .NET programs
D. All of the above

Answer: C) Manages the execution of .NET programs

Explanation:

The CLR is used to manage the execution of .NET programs.

Discuss this Question

14. SOAP in C# stands for ___.

A. Simple Object Access Protocol


B. Simple Object Access Program
C. Standard Object Access Protocol
D. Standard Object Access Program

Answer: A) Simple Object Access Protocol

Explanation:

In C# programming, the SOAP stands for Simple Object Access Protocol.

Discuss this Question

15. "Garbage collection automatically reclaims memory occupied by unreachable unused


objects." – This statement is true or false in C#?

A. True
B. False

Answer: A) True

Explanation:

In C#, this following statement is true.

"Garbage collection automatically reclaims memory occupied by unreachable unused objects."

Discuss this Question


ADVERTISEMENT

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 ""

Answer: B) Curly braces {}

Explanation:

C# code block begins and ends by the Curly braces {} .

Discuss this Question

17. Every C# statement is terminated by ___.

A. Colon (:)
B. Semicolon (;)
C. Comma (,)
D. Dot (.)

Answer: B) Semicolon (;)

Explanation:

Every C# statement is terminated by semicolon ( ; ).

Discuss this Question

18. Is C# programming language a case-sensitive?

A. Yes
B. No

Answer: A) Yes

Explanation:

Yes, C# programming language is a case-sensitive.

Discuss this Question

19. In C#, a single-line comment starts with ___.

A. Two forward slashes (//)


B. Two backward slashes (\\)
C. A hash character (#)
D. A dollar character ($)

Answer: A) Two forward slashes (//)

Explanation:

In C#, a single-line comment starts with two forward slashes ( // ).

Discuss this Question

20. In C#, the multi-line comments placed within the ___.

A. // and //
B. \\ and //
C. <!-- and -->
D. /* and */

Answer: D) /* and */

Explanation:

In C#, the multi-line comments placed within the /* and */ .

Discuss this Question

2) C# Variables and Data Types MCQs


ADVERTISEMENT
21. What is the correct syntax to declare a variable in C#?

A. type variableName = value;


B. type variableName;
C. variableName as type = value;
D. Both A. and B.

Answer: D) Both A. and B.

Explanation:

The both of the above syntaxes can be used to declare a variable:

type variableName = value; - It defines the type and assigns the value
type variableName; - It defines the type only

Discuss this Question

22. Which data type is used to store text value in C#?

A. text
B. txt
C. string
D. str

Answer: C) string

Explanation:

The string data type is used to store text value in C#.

Discuss this Question

23. Which C# keyword is used to define a constant?

A. define
B. fixed
C. constant
D. const

Answer: D) const

Explanation:

The const is used to define a constant in C#.

Discuss this Question

24. What is the correct syntax to define a C# constant?

A. const type constant_name;


B. const type constant_name = value;
C. const constant_name as type;
D. const constant_name as type = value;

Answer: B) const type constant_name = value;

Explanation:

The correct syntax to define a C# constant is:

const type constant_name = value;

Note: A const field requires a value to be provided.

Discuss this Question

25. Which is not a valid C# data type?

A. long
B. int
C. float
D. complex

Answer: D) complex

Explanation:

There is no complex type in C#.

Discuss this Question


26. Which is the correct order for implicit type conversion to convert a smaller to a larger
type in C#?

A. char -> int -> long -> float -> double


B. bool -> char -> int -> long -> float -> double
C. char -> int -> float -> long -> double
D. bool -> char -> int -> long -> double -> float

Answer: A) char -> int -> long -> float -> double

Explanation:

The implicit type conversion is done in the following order: char -> int -> long -> float ->
double.

Discuss this Question

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.

Discuss this Question

28. Which is the correct C# statement to convert a float value to int explicitly?

A. int_variable = (int) float_variable;


B. int_variable = float_variable;
C. int_variable = (int) (float_variable);
D. int_variable = int *float_variable);

Answer: A) int_variable = (int) float_variable;

Explanation:

The following syntax is used to convert a float value to int explicitly:


int_variable = (int) float_variable;

Discuss this Question

29. What will be the output of the following C# code?

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".

Discuss this Question

30. What will be the output of the following C# code?

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".

Discuss this Question

3) C# Input/Output MCQs
ADVERTISEMENT

31. What is 'Console' in C#?

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.

Discuss this Question

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);
}
}
}

A. Given number is:123


B. Given number is: 123
C. Given number is: "123"
D. Error

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.

Cannot implicitly convert type `string' to `int'

Discuss this Question

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);
}
}
}

A. Given number is:123


B. Given number is: 123
C. Given number is: "123"
D. Error
Answer: B) Given number is: 123

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.

Output will be: Given number is: 123

Discuss this Question

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

Answer: B) Both A and B

Explanation:

In C#, the following methods can be used to input a float value:

float.Parse(Console.ReadLine());

Convert.ToSingle(Console.ReadLine());

Discuss this Question

35. What is the difference between Console.Write() and Console.WriteLine() methods in


C#?

A. Write() writes a single character while Console.WriteLine() writes a complete line


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
C. ToFloat(Console.ReadLine());
D. Write() writes the string on the console while Console.WriteLine() writes the string as well as
values of the variables on the console
E. Both can be used for the same purpose

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.

Discuss this Question

36. What will be the output of the following C# code?

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.

Discuss this Question

37. What will be the output of the following C# code?

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:

In the statement, Console.WriteLine("{0}+{1}", a, b); - {0} is the placeholder for variable


a and {1} is the placeholder for variable b , {0}+{1} will not perform any operation, values of
a and b will be printed at the place of {0} and {1} . Thus, the output will be 10+20.

Discuss this Question

4) C# Conditional and Control Statements MCQs


38. What will be the output of the following C# code?

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".

Discuss this Question

39. What will be the output of the following C# code?

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.

Discuss this Question

40. What will be the output of the following C# code?

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".

Discuss this Question

41. What is the correct syntax for do while loop in C#?

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:

The correct syntax of do...while statement is:

do {
statement(s);
} while (test_condition);

Discuss this Question


42. Does C# support foreach loop?

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};

foreach(int elements in arr) {


Console.WriteLine(elements);
}
}
}
/*
Output:
10
20
30
40
50
*/

Discuss this Question

43. What is the correct syntax for foreach statement in C#?

A. foreach(type variable_name in collection_name); {


statement(s);
}

B. foreach(type variable_name in collection_name) {


statement(s);
}

C. foreach(variable_name As Type in collection_name){


statement(s);
}

D. foreach(dim type variable_name in collection_name) {


statement(s);
}

Answer: B)

foreach(type variable_name in collection_name) {


statement(s);
}

Explanation:

The correct syntax of foreach statement is:

foreach(type variable_name in collection_name) {


statement(s);
}

Discuss this Question

44. What will be the output of the following C# code?

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.

Discuss this Question

45. What will be the output of the following C# code?

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.

Discuss this Question

46. Which is the correct for() statement to run an infinite loop?

A. for(;;)
B. for(;;);
C. for(;;)
D. for(1;1;1)

Answer: A) for(;;)

Explanation:

The correct for statement/loop to run an infinite loop is:

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.

Discuss this Question

48. Does C# support goto statement?

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
*/

Discuss this Question

49. What is the use of 'throw' statement in C#?

A. to return from the calling functions to called function


B. to throw an exception manually during the execution of the program
C. to return from the switch statement
D. None of the above

Answer: B) to throw an exception manually during the execution of the program

Explanation:

The C# throw statement is used to throw an exception manually during the execution of the
program.

Discuss this Question

50. Which C# keyword is used to coming out from the loop?

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.

Discuss this Question

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:

In C#, String is an object of System.String class.

Discuss this Question

52. Can we use == operator to compare two strings?

A. Yes
B. No

Answer: A) Yes

Explanation:

Two strings can be compared by using the == Operator.

Discuss this Question

53. Which is the base class of the String() Constructor?

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.

Discuss this Question

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.

Syntax of inequality operators is:

public static bool operator != (string? a, string? b);

Discuss this Question

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

Answer: C) Both A and B

Explanation:

The Equal() and Compare() methods can also be used to compare two strings in C#.

Discuss this Question

56. Which is the correct method to convert given string in uppercase?

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());
}
}

Discuss this Question

57. What is String.Length in C#?

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.

Syntax of String.Length property is:

public int Length { get; }

Discuss this Question

58. What will be the output of the following C# code?

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 .

Discuss this Question

59. What will be the output of the following C# code?

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.

Discuss this Question

60. What will be the output of the following C# code?

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.

Discuss this Question

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

Answer: A) Square brackets []

Explanation:

To declare an array, define the variable type with square brackets [] .

Discuss this Question

62. What will be the output of the following C# code?

Copy

using System;

namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = { "iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles);
}
}
}

A. "iPhone", "Samsung", "Vivo"


B. {"iPhone", "Samsung", "Vivo"}
C. string[]
D. System.String[]

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[] .

Discuss this Question

63. What will be the output of the following C# code?

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."

Discuss this Question

64. Which statement is correct about the following C# statement?

int[] x= {10, 20, 30};

A. 'x' is a reference to the array created on stack


B. 'x' is a reference to an object created on stack
C. 'x' is a reference to an object of a 'System.Array' class
D. None of the above

Answer: C) 'x' is a reference to an object of a 'System.Array' class

Explanation:

In the above given C# statement, the variable 'x' is a reference to an object of a 'System.Array'
class.

Discuss this Question

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#.

Discuss this Question

66. What will be the output of the following C# code?

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".

Discuss this Question

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#.

Discuss this Question

68. What will be the output of the following C# code?

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

Discuss this Question

69. What will be the output of the following C# code?

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.

Discuss this Question

70. Which of the correct syntax to declare an array with 2 rows and 3 columns in C#?

A. int arr[2][3] = new int[2][3];


B. int arr[2,3] = new int[2,3];
C. int[,] arr = new int[2,3];
D. int [,]arr = new [2,3]int;

Answer: C) int[,] arr = new int[2,3];

Explanation:

The correct way to declare an array with 2 rows and 3 columns in C# is:

int[,] arr = new int[2,3];

Discuss this Question

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:

The class keyword is used to define a class in C#.

Syntax:

class class_name
{
// Class Definition
}

Discuss this Question

72. Which is the correct way to declare an object of the class in C#?

A. Class_Name Object_Name = new Class_Name();


B. Class_Name Object_Name;
C. new Object_Name as Class_Name();
D. Both A and B

Answer: A) Class_Name Object_Name = new Class_Name();


Explanation:

The correct way to declare an object of the class in C# is:

Class_Name Object_Name = new Class_Name();

Consider the below example:

Copy
using System;

namespace MyApplication {
class Mobiles {
string brand = "Apple";

static void Main(string[] args) {


Mobiles mobile = new Mobiles();
Console.WriteLine(mobile.brand);
}
}
}

// Output: Apple

Discuss this Question

73. Which operator is used to access variables/fields inside a class in C#?

A. Arrow Operator (->)


B. Dot Operator (.)
C. Greater Than (>)
D. Dot and Greater Than (.>)

Answer: B) Dot Operator (.)

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;

Discuss this Question

74. Is overriding of a function possible in the same class in C#?


A. Yes
B. No

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.

Discuss this Question

75. Which is not a type of constructor in C#?

A. Static Constructor
B. Private Constructor
C. Body Constructor
D. Parameterized Constructor

Answer: C) Body Constructor

Explanation:

There are basically 5 types of the constructors in C#, they are:

Static constructor
Private constructor
Copy constructor
Default constructor
Parameterized constructor

Discuss this Question

76. How many types of access modifiers in C#?

A. 2
B. 3
C. 4
D. 5

Answer: C) 4

Explanation:

In C#, there are 4 types of access modifiers, they are:


public
private
protected
internal

Discuss this Question

77. What does the access modifier do in C#?

A. To maintain the syntax


B. To define a variable inside the class
C. To access the variables defined inside the class
D. To control the visibility of class members

Answer: D) To control the visibility of class members

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).

Discuss this Question

78. The internal access modifier is used for ___.

A. Types and type members


B. Defining a field that can be accessed in all classes
C. Defining a field that can be accessed in inherited classes
D. All of the above

Answer: A) Types and type members

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.

Discuss this Question

79. The protected access modifier defines a member that can be accessible within ___.

A. its class and all other classes


B. its class and by derived class instances
C. its class only
D. None of the above

Answer: B) its class and by derived class instances

Explanation:

In C#, the protected access modifier defines a member that can be accessible within its class and
by derived class instances.

Discuss this Question

80. Does C# support multiple inheritance?

A. Yes
B. No

Answer: B) No

Explanation:

No, C# does not support multiple class inheritance.

Discuss this Question

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".

Discuss this Question

82. What will be the output of the following C# code?


Copy

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".

Discuss this Question

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.

Discuss this Question


84. Which keyword is used to declare an interface in C#?

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.

Discuss this Question

85. In C#, by default, the default interface methods are ___.

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.

Discuss this Question

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

Answer: C) Heap Memory

Explanation:

In C#, the objects created using new operator are stored in Heap Memory.

Discuss this Question


87. Which of the following cannot be used to declare an interface in C#?

A. Methods
B. Properties
C. Events
D. Structures

Answer: D) Structures

Explanation:

In C#, to declare an interface – we cannot use structures.

Discuss this Question

88. Which of the access specifier is used in interface in C#?

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.

Discuss this Question

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

Answer: A) Abstract 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.

Discuss this Question

8) C# Miscellaneous Topics MCQs


91. Does C# support pointers?

A. Yes
B. No

Answer: A) Yes

Explanation:

Yes, C# supports pointers in a limited extent.

Discuss this Question

92. A C# pointer is used to store the ___ of another type.

A. Value
B. Memory address
C. Size of the type
D. Reference of the variable

Answer: B) Memory address

Explanation:

A C# pointer is used to store the memory address of another type.


Discuss this Question

93. C# pointer can only be declared to hold the memory address of ___.

A. value types and arrays


B. reference types
C. pointer types
D. reference and pointer types

Answer: A) value types and arrays

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.

Discuss this Question

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.

Discuss this Question

95. Is the use of return statement necessary in every function in C#?

A. Yes
B. No

Answer: A) Yes

Explanation:

Yes, the use of return statement is necessary in every function in C#.

Discuss this Question


96. Which access specifier should be used for Main() method in C#?

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.

Discuss this Question

97. In C#, a namespace is the collection of classes?

A. True
B. False

Answer: A) True

Explanation:

Yes, a namespace is the collection of classes.

Discuss this Question

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:

The Uint data type is derived from System.UInt32 class.

Discuss this Question


99. Which is the first line of a C# program?

A. using System;
B. using system;
C. using Namespace;
D. namespace MyApplication

Answer: A) using System;

Explanation:

The first line of a C# program is:

using System;

Discuss this Question

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.

Discuss this Question

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.

List of ASP.Net MCQs


1. What is the full form ASP?

A. Access Server Pages


B. Active Service Pages
C. Active Server Pages
D. Access Service Pages

Answer: C) Active Server Pages

Explanation:

ASP stands for Active Server Pages.

Discuss this Question

2. ASP.NET is a ____.

A. Client-Side technology
B. Server-side technology
C. Both
D. None

Answer: B) Server-side technology

Explanation:

ASP.NET is a server-side technology used for web development.

Discuss this Question

3. Which of the following programming language can be used with ASP.NET?

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.

Discuss this Question

4. What is the extension of the ASP.NET page?

A. .asp
B. .aspx
C. .asx
D. .apx

Answer: B) .aspx

Explanation:

The extension of ASP.NET page is .aspx .

Discuss this Question

5. Is ASP.NET Web form part of ASP.NET core?

A. Yes
B. No
Answer: B) No

Explanation:

The ASP.NET web form is not part of the ASP.NET core.

Discuss this Question

ADVERTISEMENT

DigitalOcean® Cloud Hosting


Spend Less Time Maintaining Your
Infrastructure and More Time
Developing Your App.

6. Which of the following technologies are also used with ASP.NET?

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.

Discuss this Question

7. In which form does Postback occur?

A. Win Forms
B. HTML Forms
C. Web Forms
D. All

Answer: C) Web Forms

Explanation:
The Postback occurs in Web Forms.

Discuss this Question

8. What is the correct use of the web.config file?

A. To store global information and variable definitions


B. To configure the domain server
C. To configure to domain client
D. Store information about web browser

Answer: A) To store global information and variable definitions

Explanation:

The web.config file is used to store global information and variable definition.

Discuss this Question

9. Is ASP.NET web form supports an event-driven application model?

A. True
B. False

Answer: A) True

Explanation:

The ASP.NET web supports an event-driven application model.

Discuss this Question

10. MVC stands for ____.

A. Model Vocal Controller


B. Model View Count
C. Model View Controller
D. Mode View Controller

Answer: C) Model View Controller

Explanation:

The MVC stands for Model View Controller.


Discuss this Question

ADVERTISEMENT

11. What namespace is used for ASP.NET Web Form by default?

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:

The System.Web.UI.Form namespace is used for ASP.NET web form by default.

Discuss this Question

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.

Discuss this Question


13. Can we style tree view, and menus with CSS?

A. True
B. False

Answer: A) True

Explanation:

We can style tree-view, menus with CSS.

Discuss this Question

14. The CSS stands for ____.

A. Client Style Sheet


B. Cascading Style Sheet
C. Common Style Sheet
D. Cascading Simple Sheet

Answer: B) Cascading Style Sheet

Explanation:

The CSS stands for "Cascading Style Sheet".

Discuss this Question

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

Answer: A) Content Pages

Explanation:

The term is used for pages that depend on the Master page are Content Pages.

Discuss this Question

ADVERTISEMENT
16. Every Server control of ASP.NET must have an id?

A. True
B. False

Answer: A) True

Explanation:

Every Server control must have an id.

Discuss this Question

17. Which file contains the Application_Start event?

A. Global.asax
B. Web.config
C. Local.asax
D. None

Answer: A) Global.asax

Explanation:

The "Global.asax" file contains the Application_Start event.

Discuss this Question

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

A. Init
B. Import
C. Load
D. All

Answer: B) Import
Explanation:

The Import is not an ASP.NET event.

Discuss this Question

19. What is the return type of IsPostBack property?

A. Integer
B. Boolean
C. Float
D. All

Answer: B) Boolean

Explanation:

The return type of the IsPostBack property is Boolean .

Discuss this Question

20. Can we use ASPX pages in MVC?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can use ASP pages in the MVC application.

Discuss this Question

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.

Discuss this Question

22. The ASP.NET developed by?

A. Google
B. Oracle
C. Sun Microsystems
D. Microsoft

Answer: D) Microsoft

Explanation:

The ASP.NET was developed by Microsoft.

Discuss this Question

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:

The Page.ClientScript.RegisterClientScriptBlock method is used to register client scripts


using code dynamically.
Discuss this Question

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.

Discuss this Question

25. Which of the following is not an ASP.NET component?

A. LinkCounter
B. Counter
C. AdRotator
D. File Access

Answer: A) LinkCounter

Explanation:

The LinkCounter is not an ASP.NET component.

Discuss this Question

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

27. Which development model(s) is/are supported by ASP.Net?

A. Asp.Net Web Forms


B. Asp.Net MVC
C. Asp.Net Web Pages
D. Asp.Net API
E. All of the above

Answer: E) All of the above

Explanation:

ASP supports many different development models:

Classic ASP
ASP.NET Web Forms
ASP.NET MVC
ASP.NET Web Pages
ASP.NET API
ASP.NET Core

Discuss this Question

28. The SessionIDs are stored in ____ by ASP.Net?

A. Cache
B. Server
C. Database
D. Cookies

Answer: D) Cookies

Explanation:

By default, the session IDs are stored in Cookies.

Discuss this Question

29. Which is the correct basic syntax of Application directive?

A. <%@ Application Language="C#" %>


B. <!-- Application Language="C#" -->
C. <%@ Application_DIR Language="C#" %>
D. <%@ DIR @Application Language="C#" %>

Answer: A) <%@ Application Language="C#" %>

Explanation:

The basic syntax of the Application directive is:

<%@ Application Language="C#" %>

Discuss this Question

30. Which is the correct basic syntax of the Assembly directive?

A. <%@ Assembly @ Name ="myassembly" %>


B. <%@@ Assembly Name ="myassembly" %>
C. <%@ Assembly Name ="C# myassembly" %>
D. <%@ Assembly Name ="myassembly" %>

Answer: D) <%@ Assembly Name ="myassembly" %>

Explanation:

The basic syntax of the Assembly directive is:

<%@ Assembly Name ="myassembly" %>

Discuss this Question

ADVERTISEMENT

31. Which is the correct basic syntax of the Control directive?


A. <%@ Control %>
B. <%@ Control Language="C#" EnableViewState="false" %>
C. <%@ Control Language="C#" %>
D. None of the above

Answer: B) <%@ Control Language="C#" EnableViewState="false" %>

Explanation:

The basic syntax of the Control directive is:

<%@ Control Language="C#" EnableViewState="false" %>

Discuss this Question

32. What is the file extension of Webservices in ASP.Net?

A. .aspx
B. .asp
C. .asm
D. .asmx

Answer: D) .asmx

Explanation:

The file extension of Webservices in ASP.Net is .asmx

Discuss this Question

33. Which protocol is used to call a web service?

A. SOAP Protocol
B. HTTP Protocol
C. TCP Protocol
D. FTP Protocol

Answer: B) HTTP Protocol

Explanation:

In ASP.Net, HTTP protocol is used to call a web service.

Discuss this Question


34. What is the parent class of all web server control in ASP.Net?

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.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

37. In ____, a non-virtual method is called which is decided at a compile time.

A. Late binding
B. Early binding
C. Lazy binding
D. Global binding

Answer: B) Early binding

Explanation:

In early binding, a non-virtual method is called which is decided at a compile time.

Discuss this Question

38. In ____, a virtual method is called which is decided at runtime.

A. Late binding
B. Early binding
C. Lazy binding
D. Global binding

Answer: A) Late binding

Explanation:

In late binding, a virtual method is called which is decided at runtime.

Discuss this Question

39. Which method is used to sign out from forms authentication?

A. Authentication.SignOut()
B. Forms.UI.SignOut()
C. FormsAuthentication.LogOut()
D. FormsAuthentication.SignOut()

Answer: D) FormsAuthentication.SignOut()

Explanation:

To sign out from forms authentication - The FormsAuthentication.SignOut() method is used.

Discuss this Question

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.

Discuss this Question

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

Answer: C) View State

Explanation:

The View State method is used to preserve page and control values between round trips in
ASP.Net.

Discuss this Question

42. What is the default timeout for a cookie in ASP.Net?


A. 10 Minutes
B. 20 Minutes
C. 30 Minutes
D. 5 Minutes

Answer: C) 30 Minutes

Explanation:

The default time timeout for a cookie in ASP.Net is 30 minutes.

Discuss this Question

43. What is the full form of SOAP in ASP.Net?

A. Simple Object Access Protocol


B. Simple Object Advanced Protocol
C. Simple Object Access Property
D. Simple Object Advanced Property

Answer: A) Simple Object Access Protocol

Explanation:

In ASP.Net, the SOAP stands for Simple Object Access Protocol.

Discuss this Question

44. The Global.asax file is derived from the ____ class.

A. System.UI
B. SoapApplication
C. Application
D. HttpApplication

Answer: D) HttpApplication

Explanation:

The Global.asax file is derived from the HttpApplication class.

Discuss this Question

45. Which is not a page event in ASP.Net?


A. PreLoad
B. Load
C. LoadComplete
D. UpLoad

Answer: D) UpLoad

Explanation:

"UpLoad" is not a page event in ASP.Net.

Discuss this Question

46. How many navigation controls are in ASP.NET?

A. 2
B. 3
C. 4
D. 5

Answer: B) 3

Explanation:

In ASP.Net, there are three navigation controls, they are:

SiteMapPath
Menu
TreeView

Discuss this Question

47. Can an ASP.Net web application run without web.config file?

A. Yes
B. No

Answer: A) Yes

Explanation:

Yes, an ASP.Net web application can run without web.config file.

Discuss this Question


48. Which is/are the component(s) of ADO.NET?

A. Dataset
B. Data Reader
C. Data Adaptor
D. Command
E. Connection
F. All of the above

Answer: F) All of the above

Explanation:

The components of ADO.Net are Dataset, Data Reader, Data Adaptor, Command, and
connection.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

51. Which is the correct syntax to add an event handler in ASP.Net?

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:

The correct syntax to add an event handler in ASP.Net is:

Attributes.Add("Event","Javascript_Code();")

Discuss this Question

52. How many types of caching are there in ASP.Net?

A. 2
B. 3
C. 4
D. 6

Answer: B) 3

Explanation:

In ASP.Net, there are three types of caching, they are:

Output Caching
Fragment Caching
Data Caching

Discuss this Question

53. Which of the following statement are correct about Calendar control in ASP.NET?

1. It is an ASP.NET control, it shows the date in a calendar format.


2. It is an ASP.NET control, it shows date and time in UTC format only.
3. NET supports only one calendar control on one web form.
4. NET supports more than one calendar control on one web form.

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.

Discuss this Question

54. What is the correct syntax to create ASP.NET Calendar control?

A. < asp:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04">


</asp:Calendar>
B. < asp:Cal ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp:Cal>
C. < asp_net:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04" >
</asp_net:Calendar>
D. < asp:Calendar CAL_ID="Calendar1" runat="server" SelectedDate="2022-09-04" >
</asp:Calendar>

Answer: A) < asp:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04">


</asp:Calendar>

Explanation:

The first syntax is correct to create an ASP.NET Calendar control.

Discuss this Question

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.

Discuss this Question


56. Visual studio supports drag and drops for calendar control?

A. True
B. False

Answer: A) True

Explanation:

Yes, Visual Studio supports drag and drop for calendar control.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question


59. Can we apply the style to the month navigation button in 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.

Discuss this Question

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

Answer: B) Selection Changed

Explanation:

The SelectionChanged event is triggered when we make the selection in the Calendar control.

Discuss this Question

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

Answer: B) Next Month Text

Explanation:

The NextMonthText property is used to set custom text for the next month button in the
Calendar control.

Discuss this Question


62. Which of the following property is not available for Calendar control in ASP.NET?

A. Font
B. Fore Color
C. Title Format
D. None of the above

Answer: D) None of the above

Explanation:

All given properties are available for Calendar control in ASP.NET.

Discuss this Question

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.

Discuss this Question

64. Is CheckBox an ASP.NET Client-Side control?

A. True
B. False

Answer: B) False

Explanation:

The CheckBox is a server-side control in ASP.NET.

Discuss this Question


65. Can we bind an event handler with CheckBox control in ASP.NET?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can bind an event handler with CheckBox control in ASP.NET.

Discuss this Question

66. What is the correct syntax to create ASP.NET CheckBox control?

A. <asp:CB ID="CB1" runat="server" Text="BCA"/>


B. <asp:Check-Box ID="CB1" runat="server" Text="BCA"/>
C. <asp_net:CheckBox ID="CB1" runat="server" Text="BCA"/>
D. <asp:CheckBox ID="CB1" runat="server" Text="BCA"/>

Answer: D) <asp:CheckBox ID="CB1" runat="server" Text="BCA"/>

Explanation:

The 4th syntax is correct to create an ASP.NET Calendar control.

Discuss this Question

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:

The <input> tag is used to create HTML checkbox.

Discuss this Question

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.

Discuss this Question

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

Answer: B) Border Width

Explanation:

The "BorderWidth" property is used to set border width for ASP.NET CheckBox control.

Discuss this Question

70. Can we apply ToolTip on CheckBox control?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can apply ToolTip on CheckBox control.

Discuss this Question

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.

Discuss this Question

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

Answer: B) Check Changed

Explanation:

The "CheckChanged" event is used to trigger on selection change for ASP.NET CheckBox control.

Discuss this Question

73. Which of the following statement are correct about LinkButton control in ASP.NET?

1. The LinkButton and HyperLink both are the same controls.


2. This control acts as a hyperlink, which is used to display a hyperlink-style button control.
3. ASP.NET supports only LinkButton, it does not support Hyperlink.
4. This is a client-side control used in HTML only.

A. Only 1
B. Only 2
C. 1 and 4
D. 2 and 3

Answer: B) Only 2

Explanation:

The 2nd statement is correct about LinkButton control in ASP.NET.


Discuss this Question

74. What is the correct syntax to create ASP.NET LinkButton control?

A. <asp:LinkButton ID="ih" runat="server"/> My LinkButton </asp:LinkButton>


B. <asp:Link ID="ih" runat="server"/> My LinkButton </asp:Link>
C. <asp:LButton ID="ih" runat="server"/> My LinkButton </asp:LButton>
D. <asp:Link_Button ID="ih" runat="server"/> My LinkButton </asp:Link_Button>

Answer: A) <asp:LinkButton ID="ih" runat="server"/> My LinkButton </asp:LinkButton>

Explanation:

The first syntax is correct to create an ASP.NET LinkButton control.

Discuss this Question

75. Can we implement an event handler for LinkButton?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can implement an event handler for LinkButton control in ASP.NET.

Discuss this Question

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

Answer: B) Css Class

Explanation:

The "CssClass" property is used to set the CSS class to LinkButton control.

Discuss this Question


77. Which of the following property is used to enable or disable LinkButton control?

A. Enable
B. Is Enable
C. Enabled
D. Disabled

Answer: C) Enabled

Explanation:

The "Enabled" property is used to enable or disable LinkButton control.

Discuss this Question

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.

Discuss this Question

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

Answer: D) None of the above

Explanation:

All the given property is not available for LinkButton control.

Discuss this Question


80. Which of the following event handlers are available for LinkButton control?

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:

The given event handlers are available for LinkButton control.

Discuss this Question

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.

Discuss this Question

82. Which of the following statement is correct about FileUpload control in ASP.NET?

A. FileUpload control is used to upload webpages for a website.


B. FileUpload control is used to upload files from the local machine to the server.
C. FileUpload control is used to upload on C# file to the server.
D. None of the above

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.

Discuss this Question

83. What is the correct syntax to create ASP.NET FileUpload control?

A. <asp:FileUpload ID="FU1" runat="server"/>


B. <asp:FU ID="FU1" runat="server"/>
C. <asp:Upload ID="FU1" runat="server"/>
D. <asp_net:Upload ID="FU1" runat="server"/>

Answer: A) <asp:FileUpload ID="FU1" runat="server"/>

Explanation:

The first syntax is correct to create an ASP.NET FileUpload control.

Discuss this Question

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:

<input name="FileUpload1" id="FileUpload1" type="file">

Discuss this Question

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.

Discuss this Question

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:

The "FileUpload1.PostedFile.FileName" property is used to get selected filename using FileUpload


control.

Discuss this Question

87. Can we create a hyperlink using an HTML tag?

A. True
B. False

Answer: A) True

Explanation:

The <a> tag is used in HTML to create a hyperlink.

Discuss this Question

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

Answer: D) Allow Multiple

Explanation:
The "AllowMultiple" property is used to allow multiple selections of files from FileUpload control
in ASP.NET.

Discuss this Question

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:

The "FileUpload1.PostedFile.SaveAs()" method is used to get selected filename using FileUpload


control.

Discuss this Question

90. Can we change the Height and Weight of FileUpload control?

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.

Discuss this Question

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:

The "FileUpload1.PostedFile.ContentLength" property is used to get the length of the selected


filename using FileUpload control.

Discuss this Question

92. Which of the following statement is correct about cookies in ASP.NET?

A. Cookies are code snippets to read data from a web server.


B. Cookies are code snippets to download data from a web server.
C. Cookies are small pieces of data stored on the webserver
D. Cookies are small pieces of data created by a web application while a user is browsing a
website.

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.

Discuss this Question

93. Which of the following statement is the correct way to store cookies in ASP.NET?

A. Using cookies collection


B. Using HttpCookie class
C. Both of the above
D. None of the above

Answer: C) Both of the above

Explanation:

We can store cookies using cookies collection and HttpCookie class in ASP.NET.

Discuss this Question

94. Cookies can store data up to?

A. 10 KB
B. 4 KB
C. 1 MB
D. 1 GB
Answer: B) 4 KB

Explanation:

We can store data up to 4KB in cookies.

Discuss this Question

95. Cookies are stored in?

A. Main Memory
B. Hard Drive
C. Cache Memory
D. CPU Registers

Answer: B) Hard Drive

Explanation:

The cookies are stored on Hard Drive.

Discuss this Question

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.

Discuss this Question

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:

The "Response.Cookies["mycookie"].Expires" property is used to set the cookie's expiration date


and time in ASP.NET.

Discuss this Question

98. Which of the following method is used to store a HttpCookie in ASP.NET?

A. Response.Cookies.Add()
B. Response.Cookies.SaveCookie()
C. Response.Cookies.AddCookie()
D. Response.Cookies.AddCookies()

Answer: A) Response.Cookies.Add()

Explanation:

The "Response.Cookies.Add()" method is used to store a HttpCookie in ASP.NET.

Discuss this Question

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:

The "Response.Cookies["student"].Value" property is used to get a cookies value in ASP.NET.

Discuss this Question

100. Which of the following statement is correct about HyperLink control in ASP.NET?

A. ASP.NET does not support HyperLink control.


B. It is an ASP.NET control, that responds to a click event.
C. It cannot be used to refer to a webpage on the server
D. The hyperLink is also known as LinkButton in ASP.NET

Answer: B) It is an ASP.NET control, that responds to a click event.


Explanation:

It is an ASP.NET control, that responds to a click event.

Discuss this Question

101. What is the correct syntax to create ASP.NET hyperlink?

A. < asp:HyperLink ID="ih1" runat="server" Text="IncludeHelp"


NavigateUrl="www.includehelp.com" ></asp:HyperLink>
B. < asp.net:HyperLink ID="ih1" runat="server" Text="IncludeHelp"
NavigateUrl="www.includehelp.com" ></asp.net:HyperLink>
C. < asp_net:HyperLink ID="ih1" runat="server" Text="IncludeHelp"
NavigateUrl="www.includehelp.com" ></asp_net:HyperLink>
D. None of the above

Answer: A) < asp:HyperLink ID="ih1" runat="server" Text="IncludeHelp"


NavigateUrl="www.includehelp.com" ></asp:HyperLink>

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.

Discuss this Question

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

Answer: C) Access Key

Explanation:

The AccessKey property is used to set the shortcut key for ASP.NET hyperlink control.

Discuss this Question

103. Which of the following is not a valid property for a hyperlink?

A. Border Color
B. Back Color
C. Fore Color
D. Background Color

Answer: D) Background Color

Explanation:

The BackgroundColor property is not a valid property for hyperlink control.

Discuss this Question

104. Which of the following statement is correct about ToolTip?

A. It is used to implement a click event for ASP.NET control.


B. It displays a text when the mouse is over the ASP.NET control.
C. It is used to remove webpage cookies.
D. None of the above

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.

Discuss this Question

105. The ToolTip is?

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.

Discuss this Question

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

Answer: C) Navigate Url

Explanation:

The NavigateUrl property is used to set the URL for Hyperlink control.

Discuss this Question

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.

Discuss this Question

108. Which of the following HTML tag is used for a hyperlink?

A. <hyper>
B. <a>
C. <h>
D. <hr>

Answer: B)  <a>

Explanation:

The <a> tag is used for hyperlink in HTML.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

111. What is the correct syntax to create ASP.NET RadioButton control?

A. <asp:RB ID="RB1" runat="server" Text="Male" GroupName="gender"/>


B. <asp:RD ID="RB1" runat="server" Text="Male" GroupName="gender"/>
C. <asp:RadioButton ID="RB1" runat="server" Text="Male" GroupName="gender"/>
D. None of the above

Answer: C) <asp:RadioButton ID="RB1" runat="server" Text="Male" GroupName="gender"/>

Explanation:

The 3rd syntax is correct to create an ASP.NET RadioButton control.

Discuss this Question

112. Can we create RadioButton using an HTML tag?

A. True
B. False

Answer: A) True
Explanation:

The <input> tag is used in HTML to create a RadioButton.

Discuss this Question

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

Answer: B) Tab Index

Explanation:

The TabIndex property is used to set the tab order for ASP.NET RadioButton control.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

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.

Discuss this Question

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:

The <input> tag is used for radio button in HTML.

Discuss this Question

118. Can we implement a click event for RadioButton in ASP.NET?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can implement a click event for RadioButton control in ASP.NET.


Discuss this Question

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

Answer: B) Access Key

Explanation:

The AccessKey property is used to set the keyboard shortcut key for label control.

Discuss this Question

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

Answer: B) Tab Index

Explanation:

The TabIndex property is used to set the tab index for web controls.

Discuss this Question

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

Answer: A) Back Color

Explanation:

The BackColor property is used to set the background color for a Label control.
Discuss this Question

122. What is ToolTip?

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:

ToolTip is a property for web controls.

Discuss this Question

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

Answer: C) Password Char

Explanation:

The PasswordChar property is used to set password characters for a Textbox control.

Discuss this Question

124. How can we set the size for a Textbox control?

A. Using Size property


B. Using Length Property
C. Using MaxLength Property
D. None of the above

Answer: C) Using MaxLength Property

Explanation:

The MaxLength property is used to set the number of characters for a Textbox control.
Discuss this Question

125. The AutoPostBack is?

A. A property
B. An Event
C. A Method
D. None of the above

Answer: A) A property

Explanation:

The AutoPostBack is a property for web controls in ASP.NET.

Discuss this Question

126. Which of the following are textbox events in ASP.NET?

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:

The KeyPress and TextChanged are textbox events in ASP.NET.

Discuss this Question

127. Which of the following syntax is correct to create a textbox in ASP.NET?

A. <asp:TextBox ID="txtname" runat="server"></asp:TextBox>


B. <TextBox ID="txtname" runat="server"></TextBox>
C. <asp.net:TextBox ID="txtname" runat="server"><asp.net/TextBox>
D. <asp-TextBox ID="txtname" runat="server"><asp-TextBox>

Answer: A) <asp:TextBox ID="txtname" runat="server"></asp:TextBox>


Explanation:

The 1st syntax is correct to create a textbox in ASP.NET.

Discuss this Question

128. Which of the following is the correct syntax for an event handler for a Button control
in ASP.NET?

A. protected void MyButton_Click(object sender, EventArgs e){  } 


B. protected void MyButton_Click(EventArgs e){  } 
C. protected void MyButton_Click(object sender){  } 
D. protected void MyButton_Click(){  }

Answer: A) protected void MyButton_Click(object sender, EventArgs e){  } 

Explanation:

The 1st syntax is correct to implement an event handler for a Button control in ASP.NET.

Discuss this Question

129. Can we validate textbox data using validation controls?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can validate textbox data using validation controls.

Discuss this Question

130. Webforms are made up using?

A. ASPX File
B. Code behind file (.cs, .vb etc)
C. Both of the above
D. None of the above

Answer: C) Both of the above

Explanation:
The webforms are made up using visual portion (.aspx file) and code behind portion (.cs file).

Discuss this Question

131. IIS stands for?

A. Internet Information Server


B. Internet Information Services
C. Inter Information Server
D. Interactive Information Services

Answer: B) Internet Information Services

Explanation:

The IIS stands for Internet Information Services.

Discuss this Question

132. IIS is a?

A. Web Browser
B. Web crawler
C. Web Server
D. None of the above

Answer: C) Web Server

Explanation:

The IIS is a web server, which is used to deploy web applications.

Discuss this Question

133. Which of the following are server controls in ASP.NET?

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:

All of the given options are server controls in ASP.NET.

Discuss this Question

134. Which of the following control works as a container?

A. Image Button
B. Data Grid
C. Panel
D. Table

Answer: C) Panel

Explanation:

The Panel control is used as a container in ASP.NET.

Discuss this Question

135. Which of the following statement is correct about AdRotator control?

A. It is not an ASP.NET web form control


B. It is a client-side control
C. It is used to specify a list of ads to display
D. It is used to display only hyperlinks

Answer: C) It is used to specify a list of ads to display

Explanation:

The AdRotator control is used to specify a list of ads to display. Each time user re-displays the
page.

Discuss this Question

136. Which of the following control is used to create a group of checkboxes?

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.

Discuss this Question

137. Which of the following controls has an 'ItemDataBound' Event?

A. Data List
B. Data Grid
C. Repeater
D. All

Answer: D) All

Explanation:

All the given controls have an "ItemDataBound" event.

Discuss this Question

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.

Discuss this Question

139. Can we use the Click event on ImageButton similar to Button control?
A. True
B. False

Answer: A) True

Explanation:

Yes, we can click event on ImageButton similar to the Button control.

Discuss this Question

140. Literal is a?

A. Server-side control
B. Application Event
C. Client-side control
D. None of the above

Answer: A) Server-side control

Explanation:

Literal is a server-side control, it is like a label control that displays a literal.

Discuss this Question

141. Which of the following is not HTML control?

A. Text Field
B. Text Area
C. Place Holder
D. Reset Button

Answer: C) Place Holder

Explanation:

The PlaceHolder is an ASP.NET server control, which is used to set the placeholder for the
controls.

Discuss this Question

142. Which of the following tag is used to display a horizontal line?

A. <HR>
B. <HL>
C. <HB>
D. None

Answer: C) <HB>

Explanation:

The <HR> tag is used to display a horizontal line.

Discuss this Question

143. HTML controls are?

A. Server-side controls
B. Client-side controls
C. Both
D. None

Answer: B) Client-side controls

Explanation:

The HTML controls are client-side controls.

Discuss this Question

144. What is the full form of HR of <HR> tag?

A. Horizontal Rule
B. Horizontal Relay
C. Horizon Relay
D. Horizon Rule

Answer: A) Horizontal Rule

Explanation:

The HR stands for Horizontal Rule of <HR> tag.

Discuss this Question

145. Which of the following statement is correct about 'Text Area' control?

A. It is used for multiline input on an HTML Form


B. It is used for single-line input on an HTML Form
C. It is not an HTML control
D. It is an ASP.NET Server Control

Answer: A) It is used for multiline input on an HTML Form

Explanation:

The "Text Area" control is used for multiline input on an HTML form.

Discuss this Question

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

Answer: C) Reset Button

Explanation:

The Reset Button is used to resets all other HTML form elements on a form to a default value.

Discuss this Question

147. Can we display a picture using HTML control?

A. True
B. False

Answer: A) True

Explanation:

Yes, we can display a picture or image using HTML image control.

Discuss this Question

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:

The Calendar control has the following application events:

i. Selection Changed
ii. Visible Month Changed
iii. Day Render

Discuss this Question

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

Discuss this Question

ADVERTISEMENT

ADVERTISEMENT

You might also like