Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.

 

Overall MCQs for Reference

  1. Which Linux shell is typically used by default when entering Single User Mode?
    a. bash
    b. Csh
    c. ksh
    d. sh
    Answer: d. shsanfoundry+1
  2. Single User Mode shell commonly runs as which user?
    a. Admin user
    b. Root user
    c. Normal user
    d. Log user
    Answer: b. Root userexamveda+1
  3. In Single User Mode, which partition is usually mounted?
    a. boot
    b. usr
    c. root
    d. tmp
    Answer: c. rootsanfoundry
  4. When is Single User Mode mainly used?
    a. Normal operations
    b. Routine software upgrades
    c. Troubleshooting and maintenance
    d. System backups
    Answer: c. Troubleshooting and maintenancelinuxtechi+1
  5. Which SQL Server startup parameter is used for Single User Mode?
    a. -s
    b. -m
    c. -single
    d. -one
    Answer: b. -maticleworld+1
  6. Before switching SQL Server to Single User Mode, what must be stopped?
    a. SQL Server Browser
    b. SQL Server Agent
    c. SQL Server Profiler
    d. SQL Management Studio
    Answer: b. SQL Server Agentlearn.microsoft+1
  7. What is characteristic of Single User Mode in SQL Server?
    a. Allows up to 10 users
    b. Allows only one user connection
    c. Allows three admin connections
    d. Open to all system accounts
    Answer: b. Allows only one user connectionaticleworld+1
  8. What happens if SQL Server Agent is left running during Single User Mode?
    a. Agent does nothing
    b. Agent uses the only available connection
    c. Increases performance
    d. Closes SQL Management Studio
    Answer: b. Agent uses the only available connectionlearn.microsoft+1
  9. Why would an administrator start SQL Server in Single User Mode?
    a. For daily reporting
    b. For routine backups
    c. To restore the master database
    d. For user management
    Answer: c. To restore the master databaseaticleworld+1
  10. Which application can reliably connect to SQL Server in Single User Mode?
    a. Object Explorer
    b. Query Editor
    c. Windows Explorer
    d. SQL Agent
    Answer: b. Query Editorlearn.microsoft+1
  11. What command starts SQL Server in Single User Mode via the command line?
    a. net start MSSQLSERVER
    b. net start MSSQLSERVER /m
    c. sqlcmd -start
    d. sqlstart -single
    Answer: b. net start MSSQLSERVER /maticleworld
  12. The process id of the init process, which starts the Single User Mode in Linux, is:
    a. -1
    b. 0
    c. 1
    d. 2
    Answer: c. 1sanfoundry
  13. In Linux, which file determines the default runlevel, including Single User Mode?
    a. /etc/profile
    b. /etc/init
    c. /etc/boot
    d. /etc/inittab
    Answer: d. /etc/inittabsanfoundry
  14. Which utility is recommended for querying SQL Server in Single User Mode?
    a. Notepad
    b. sqlcmd
    c. SSRS
    d. Event Viewer
    Answer: b. sqlcmdlearn.microsoft+1
  15. What process does not run automatically during Single User Mode startup in SQL Server?
    a. BACKUP
    b. CHECKPOINT
    c. SHRINK
    d. RECOVER
    Answer: b. CHECKPOINTaticleworld
  16. Why is Object Explorer not recommended for Single User Mode connections?
    a. It requires multiple connections
    b. It is deprecated
    c. It is slow
    d. It lacks permissions
    Answer: a. It requires multiple connectionsaticleworld
  17. Which startup parameter restricts SQL Server connections to a specific application in Single User Mode?
    a. -m
    b. -q
    c. -app
    d. -a
    Answer: a. -m (with app name)aticleworld
  18. In a clustered SQL Server installation, which resource may occupy the Single User Mode slot?
    a. Cluster service
    b. Cluster resource DLL
    c. DNS server
    d. DHCP resource
    Answer: b. Cluster resource DLLaticleworld
  19. A user needs to run which process to start Linux in Single User Mode for maintenance?
    a. Boot normally
    b. Pass kernel boot parameter ‘single’
    c. Press F5
    d. Enter GUI
    Answer: b. Pass kernel boot parameter ‘single’linuxtechi+1
  20. What is the default shell used in most UNIX-like Single User Modes?
    a. tcsh
    b. zsh
    c. sh
    d. fish
    Answer: c. shsanfoundry
  21. What runlevel number is commonly associated with Single User Mode in Linux?
    a. 0
    b. 1
    c. 2
    d. 6
    Answer: b. 1sanfoundry+1
  22. What happens if more than one process tries to connect to a SQL Server in Single User Mode?
    a. Both succeed
    b. Both get blocked
    c. Only the first connects
    d. The server crashes
    Answer: c. Only the first connectsaticleworld
  23. Which is the only writable partition when a UNIX system is in Single User Mode?
    a. /boot
    b. /home
    c. /usr
    d. /
    Answer: d. /sanfoundry
  24. How do you restore SQL Server to Multi-User Mode after finishing maintenance in Single User Mode?
    a. No action needed
    b. Remove the -m parameter and restart
    c. Add -multi parameter and restart
    d. Use single command: restart-multi
    Answer: b. Remove the -m parameter and restartaticleworld
  25. What does the -m parameter in SQL Server startup command specify?
    a. Maintenance Mode
    b. Multi-User Mode
    c. Single User Mode
    d. Minimal install
    Answer: c. Single User Modeaticleworld
  26. Primary reason to use Single User Mode during boot in Linux is to:
    a. Perform normal operations
    b. Change user passwords or fix filesystems
    c. Install new software
    d. Browse internet
    Answer: b. Change user passwords or fix filesystemslinuxtechi+1
  27. In which situation is Single User Mode not appropriate?
    a. Restoring system configurations
    b. Updating kernel parameters on the fly
    c. Repairing root filesystem
    d. Recovering from lost passwords
    Answer: b. Updating kernel parameters on the flysanfoundry
  28. On RHEL7 and CentOS7, how do you boot into Single User Mode?
    a. Use systemctl single
    b. Add ‘single’ or ‘rescue’ to the kernel command line in GRUB
    c. Enter init 4
    d. Use Gnome tools
    Answer: b. Add ‘single’ or ‘rescue’ to the kernel command line in GRUBlinuxtechi
  29. By default, users with which group membership can connect as sysadmin in SQL Server’s Single User Mode?
    a. dbcreator
    b. public
    c. sysadmin
    d. Local Administrators
    Answer: d. Local Administratorsaticleworld
  30. When connecting to SQL Server in Single User Mode, which error may occur if multiple connections are attempted?
    a. Login failed
    b. Timeout
    c. Permission denied
    d. Connection refused
    Answer: a. Login failedaticleworld
  31. Which system service must be stopped to avoid losing the only connection in Single User Mode on a clustered SQL Server?
    a. SQL Browser
    b. SQL Agent
    c. DNS
    d. DHCP
    Answer: b. SQL Agentaticleworld
  32. Which file is often edited to set default runlevels in Linux, including Single User Mode?
    a. /etc/shadow
    b. /etc/inittab
    c. /etc/hostname
    d. /etc/passwd
    Answer: b. /etc/inittabsanfoundry
  33. In Single User Mode, what is typically required before critical repairs can be made on Linux?
    a. Shut down network services
    b. Remount root as read/write
    c. Set up SSH
    d. Increase memory
    Answer: b. Remount root as read/writelinuxtechi
  34. If the ‘master’ database in SQL Server is damaged, what mode should the server be started in for repairs?
    a. Multi user
    b. Admin
    c. Single User
    d. Read-only
    Answer: c. Single Userlearn.microsoft+1
  35. Which kernel boot argument starts Single User Mode in most Linux distributions?
    a. single
    b. singleton
    c. uniuser
    d. rescueonly
    Answer: a. singlelinuxtechi
  36. What is a major risk of leaving Single User Mode enabled after maintenance?
    a. Improved performance
    b. Unauthorized user may connect exclusively
    c. Disk optimization
    d. Frequent backups
    Answer: b. Unauthorized user may connect exclusivelyaticleworld
  37. In SQL Server, what is one limitation of running in Single User Mode?
    a. No stored procedures
    b. Only sysadmin role can connect
    c. No backups possible
    d. Only restores are possible
    Answer: b. Only sysadmin role can connectaticleworld
  38. What must you do in SQL clustering before troubleshooting a database in Single User Mode?
    a. Increase cluster size
    b. Remove the database from the availability group
    c. Change failover preference
    d. Use active/active setup
    Answer: b. Remove the database from the availability groupaticleworld
  39. Which process starts immediately after kernel bootstrap on UNIX?
    a. swap
    b. kernel
    c. init
    d. sh
    Answer: c. initsanfoundry
  40. What happens to SQL Server Always On AGs in Single User Mode?
    a. Remain online
    b. AG startup is skipped
    c. Syncs as usual
    d. Backups initiated
    Answer: b. AG startup is skippedaticleworld
  41. The single-user shell in UNIX is used mainly for:
    a. User multitasking
    b. Scheduling jobs
    c. Emergency system repairs
    d. GUI operations
    Answer: c. Emergency system repairssanfoundry
  42. Which application cannot connect reliably to SQL Server in Single User Mode due to multiple required connections?
    a. Query Editor
    b. sqlcmd
    c. Object Explorer
    d. SSMS (with App Name parameter)
    Answer: c. Object Exploreraticleworld
  43. What database access restriction command in SQL Server puts a database into Single User Mode?
    a. ALTER DATABASE db SET SINGLE_USER
    b. SET DATABASE single
    c. RESTRICT DATABASE TO 1
    d. SET dbconn SINGLE
    Answer: a. ALTER DATABASE db SET SINGLE_USERsqlshack
  44. If a Windows system is stuck in Single User Mode, what is often missed?
    a. Removing -m parameter and restarting
    b. Resetting BIOS
    c. Removing registry hive
    d. Adding extra admin users
    Answer: a. Removing -m parameter and restartingaticleworld
  45. Which is not a viable purpose for Single User Mode?
    a. Upgrading the system
    b. Fixing corrupted filesystems
    c. Resetting root password
    d. Recovering from boot failure
    Answer: a. Upgrading the systemlinuxtechi+1
  46. What happens to all other users when Single User Mode is active on a system?
    a. They are prompted for a password
    b. They are logged off
    c. They can request access in a queue
    d. All are allowed in as read-only
    Answer: b. They are logged offsanfoundry
  47. Which one is not a default runlevel on a Linux system?
    a. S
    b. 0
    c. 8
    d. 1
    Answer: c. 8sanfoundry
  48. How does Single User Mode contribute to system security during repairs?
    a. Opens extra network ports
    b. Limits access to one authorized user
    c. Increases network bandwidth
    d. Runs all services
    Answer: b. Limits access to one authorized usersanfoundry+1
  49. What type of commands are usually run in Single User Mode for recovery?
    a. User management and disk repair
    b. Gaming
    c. Video editing
    d. Server hosting
    Answer: a. User management and disk repairlinuxtechi+1
  50. What operating system concept describes Single User Mode best?
    a. Multi-user system
    b. Maintenance/emergency mode
    c. Networked service
    d. Filesystem driver
    Answer: b. Maintenance/emergency modelinuxtechi+1

 

  1. https://www.sanfoundry.com/1000-sql-server-questions-answers/
  2. https://www.sanfoundry.com/linux-administration-questions-startup-shutdown/
  3. https://www.examveda.com/single-user-mode-shell-runs-as-260649/
  4. https://www.linuxtechi.com/boot-rhel-7-centos-7-server-single-user-mode/
  5. https://aticleworld.com/windows-server-mcq/
  6. https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/start-sql-server-in-single-user-mode?view=sql-server-ver17
  7. https://www.sqlshack.com/alter-database-set-single_user-statement-in-sql-server/
  8. https://testbook.com/objective-questions/mcq-on-client-server-model–5eea6a1439140f30f369f2c0
  9. https://www.gdcramban.in/MCQ/OSMCQ.pdf
  10. https://learn.microsoft.com/en-us/answers/questions/3872882/sql-server-single-user-mode-problem
  11. https://help.sap.com/saphelp_gbt10/helpdata/en/4d/0abb6f6dc25c4be10000000a42189e/content.htm
  12. https://www.yeahhub.com/multiple-choice-questions-answers-windows-explanation/
  13. https://www.sqlshack.com/different-ways-to-start-a-sql-server-single-user-mode/
  14. https://mcqss.com/windows-server-mcq
  15. https://stackoverflow.com/questions/18965980/exit-single-user-mode
  16. https://community.denodo.com/docs/html/document/8.0/en/vdp/administration/appendix/single_user_mode/single_user_mode
  17. https://learn.microsoft.com/en-us/answers/questions/668856/single-user-mode-taking-over-36-hours
  18. https://gkaim.com/computer/operating-systems-mcqs-part-1/
  19. https://community.hpe.com/t5/operating-system-hp-ux/boot-single-user-mode/td-p/4157248
  20. https://www.cliffsnotes.com/study-notes/17037948

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!