Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Microservices using .NET Core
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
DevOps Expert
AZ-400: Microsoft Azure DevOps
Docker by Sandeep Soni
Kubernetes by Sandeep Soni
Docker & Kubernetes by Rahul Rampurkar
IaC Using Terraform
Powershell
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
Others
Python Programming
C and Data Structure
Core Java
OOPs and C++
Advance Java
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
Windows Services
Interview Questions and Answer
1. What does SCM do?
Options:
a. Accepts the request to install windows service from the windows service database
b. It supports a set of commands to execute
c. It is used to maintain the status information
d. All the above
Reveal Answer
2. What is a Windows service?
Options:
a. These run on a separate Windows session
b. These generally start automatically when the computer boots
c. Do not have a UI but a Service console to start/stop/restart the service
d. All the above
Reveal Answer
3. The following methods are available for controlling Windows Service from Service Control Manager:
Options:
a. OnStart
b. OnPause
c. OnContinue
d. All the above
Reveal Answer
4. How is development of a Windows service different from a Windows Forms application?
Options:
a. Windows forms application have UserInterface where as the Windows service doesn’t have any UserInterface
b. A windows service cannot be executed using ctrl+F5
c. It is a background running application that run in their own Windows session.
d. All the above
Reveal Answer
5. Does a Windows service require an identity(authentication) to runs?
Options:
a. Yes
b. No
Reveal Answer
6. How to disable pause feature of a Windows service?
Options:
a. Set Pause attribute to false
b. Set CanPauseAndContinue attribute to false
c. None of the above
Reveal Answer
7. Can a windows service start without a user login in?
Options:
a. yes
b. No
c. can't say
Reveal Answer
8. Will the windows service continue to execute, if the login session is changed by the user of the system
Options:
a. No
b. Yes
c. Can't say
Reveal Answer
9. _________________ can use the identity of any particularly configured user for accessing the resources of the machine.
Options:
a. windows service
b. win form
c. xml
d. None
Reveal Answer
10. Can a windows service execute using Ctrl+F5 ?
Options:
a. Yes
b. No
c. Can't say
Reveal Answer
11. A windows service must be installed as a windows service using the utility program called as ______________
Options:
a. installwind.exe
b. installutil.exe
c. install.util.exe
d. install.exe
Reveal Answer
12. When can we treat that the windows service is successfully deployed in the OS.?
Options:
a. when we get the message " The commit phase completed successfully"
b. when we get the message " Executed successfully"
c. when we get the message " Success"
d. Normal execution
Reveal Answer
13. For any change to be made to the windows service, first it has to be ___________ and then _____________ after making the changes.
Options:
a. stopped, rebuild
b. stopped, build
c. started, rebuild
d. started, build
Reveal Answer
14. ___________________ is a windows application for controlling or managing or providing input to a windows service.
Options:
a. winform
b. windows service controller
c. service controller
d. controller
Reveal Answer
15. To a windows service in the form of custom command a number can be submitted which must be in the range of ____________
Options:
a. 128 to 255
b. 0 to 255
c. 255 to 526
d. 0 to 128
Reveal Answer
16. Before any action is submitted to the windows service, service controller must be _________
Options:
a. restarted
b. stopped
c. refreshed
d. started
Reveal Answer
17. To send custom command to the windows service _________
Options:
a. ServiceController.ExecuteCommand(Int32);
b. ServiceController.Execute(CIntNumber.Text);
c. ServiceController.ExecuteCommand (Int32);
d. ServiceController.ExecuteCommand(CIntNumber.Integer);
Reveal Answer
18. What are the types of Windows Services available in Visual studio? What are they?
Options:
a. 1 type: Win32ShareProcess
b. 2 types: Win32ShareProcess and Win32OwnProcess
c. 3 types: Win32ShareProcess, Win32OwnProcess and Win32Process
d. None
Reveal Answer
19. The Service Control Manager is started at: __________
Options:
a. System boot
b. After logging in
c. Before logout
d. Before shutdown
Reveal Answer
20. How to uninstall Windows Service?
Options:
a. uninstall.exe /u “Windows Service name”
b. install.exe /u “Windows Service name”
c. installUtil.exe /u “Windows Service name”
d. uninstallUtil.exe /u “Windows Service name”
Reveal Answer
21. Select the states of Windows Service Application
Options:
a. Running
b. Paused
c. Stopped
d. Pending
e. All the above
Reveal Answer
22. Where can a Win32ownProcess run and how can it be started?
Options:
a. Runs in its own service and started by Service Controller
b. Runs in its own service and started manually
c. Runs in other process
d. None
Reveal Answer
23. How can one add functionality to a service application?
Options:
a. Services based on the class inherited from System.ServiceProcess.ServiceBase are overridden
b. Services based on the class inherited from System.ServiceProcess.ServiceBase are inherited
c. Services based on the class inherited from System..ServiceBase are overridden
d. None of the above
Reveal Answer
24. Which of the following methods can be overridden to add functionality to a service application?
Options:
a. OnStart
b. OnStop
c. OnShutdown
d. All the above
Reveal Answer
25. Can Windows service identify the changes done to app.config and saved?
Options:
a. No, the service needs to be restarted to see the changes.
b. Yes, the changes reflect immediately when it is running
c. Services cannot be changed
d. It is not possible to change app.config
Reveal Answer
26. What is the command to start a service?
Options:
a. sc start servicepath
b. sc start ServiceName
c. start ServiceName
d. start ServicePath
Reveal Answer
27. What is the command to stop a service?
Options:
a. sc stop servicepath
b. sc stop ServiceName
c. stop ServiceName
d. stop ServicePath
Reveal Answer
28. Is Windows Service Platform Depended?
Options:
a. Yes
b. No
Reveal Answer
29. Can Windows Service run even after the user has logged off?
Options:
a. No
b. Yes
Reveal Answer
30. Does Windows Service have a User Interface?
Options:
a. Yes
b. No
Reveal Answer
31. How can one check the type of service that is running?
Options:
a. Using ServiceController.ServiceType property
b. Using ServiceController.ServiceHandle property
c. Using ServiceController.Status property
d. Using ServiceController.ServiceName property
Reveal Answer
32. Which property can be used to log service events to Windows event logs?
Options:
a. ServiceBase.AutoLog
b. ServiceBase.Events
c. ServiceBase.Site
d. None of the above
Reveal Answer
33. What are the startup options available for a service?
Options:
a. Automatic
b. Manual
c. Disabled
d. All the above
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by