1.
What is the SC command?
Correct Answer
D. Service control
Explanation
The SC command refers to the service control command. This command is used in Windows operating systems to manage and control installed services. It allows users to start, stop, pause, resume, or query the status of a service. By using the SC command, administrators can easily manage and control various services running on their system, making it a crucial tool for system administration.
2.
Which command do you use to change file extensions?
Correct Answer
A. Assoc
Explanation
cacls will change file permissions. attrib will change file attributes. ftype will display or change the link between a FileType and an executable program.
3.
Which command do you use to relocate a file to another folder?
Correct Answer
B. Move
Explanation
copy will make a copy of the file while leaving the original in its location. mv is the Linux command for moving files. ren will rename the file.
4.
What command do you use to delete folders?
Correct Answer
D. Rmdir
Explanation
The command rmdir is used to delete empty directories (folders) in most operating systems like Windows and Linux. It stands for "remove directory." However, if the folder contains files, you need to use other commands or options to first delete the files inside it. In Windows, rd is also commonly used to remove directories. The del command is used for deleting files, and rm is used primarily in Linux and Unix-based systems for deleting both files and directories (with the appropriate flags).
5.
What does the echo command do?
Correct Answer
A. Display message on screen
Explanation
type will display the contents of a text file. copy will copy a file to another location. more will display output one screen at a time
6.
Which command do you use to change file permissions?
Correct Answer
B. Cacls
Explanation
chmod is the LInux command for changing file permissions. dir will display directory contents. perms will show permissions for a user
7.
Which command do you use to schedule a task?
Correct Answer
D. At
Explanation
The command used to schedule a task in Unix-like operating systems is at. The at command allows you to schedule a one-time execution of a command or script at a specified time in the future.
8.
Which command do you use to clear the prompt screen?
Correct Answer
B. Cls
Explanation
cd will change the directory. clear is the Linux command for clearing the screen. clean is not a valid command
9.
Which registry stores file associations?
Correct Answer
D. HKEY_CLASSES_ROOT
Explanation
HKEY_CURRENT_CONFIG contains information gathered at runtime. HKEY_CURRENT_USER stores settings that are specific to the currently logged-in user. HKEY_LOCAL_MACHINE stores settings that are specific to the local computer
10.
Which of the following are valid file attributes?
Correct Answer
C. Hidden, read only, system, archive
Explanation
Read, write, execute are LInux permissions. Full control, read & execute, modify, special permissions are Windows permissions. Owner, group, other are Linux file owner types
11.
Which of the following commands will shutdown a computer with no time-out or warning?
Correct Answer
A. Shutdown /p
Explanation
shudown /r and psshutdown will shutdown and restart. poweroff is not a CMD command
12.
What does the hostname command do?
Correct Answer
C. Display the name of the computer
Explanation
The hostname command is used to display the name of the computer. It provides the user with the information about the specific name assigned to the computer system. This can be useful when identifying and connecting to a particular computer on a network or when troubleshooting network-related issues.
13.
Which of the following will display all hidden files in a folder?
Correct Answer
D. Dir /a:h
Explanation
dir /a:a will display all archive files in a folder. ls -h will print sizes in human readable format. dir -ah is not a valid command
14.
Which of the following commands would be used to set a file to read-only?
Correct Answer
B. Attrib +r
Explanation
attrib -r will remove read-only attribute. cacls /r will revoke specified user's access rights. chmod 444 is the linux command for setting read permissions for all users.
15.
What does the fc command do?
Correct Answer
A. Compare two files
Explanation
The fc command is used to compare two files. It allows users to identify the differences between the contents of two files and displays them side by side. This can be useful for verifying if any changes have been made to a file or for troubleshooting purposes.
16.
What does the CMD command do?
Correct Answer
B. Start a new command shell
Explanation
The CMD command in Windows is used to start a new command shell. It opens a new instance of the command prompt, allowing users to execute various commands and perform tasks within the command-line interface. This command is commonly used to access and navigate through the file system, run programs, and perform administrative tasks on the computer.
17.
Which of the following changes folder permissions?
Correct Answer
D. Icacls
Explanation
cacls is for changing file permissions. attrib changes file attributes. chmod is the linux command for changing file permissions
18.
Which command will change account passwords?
Correct Answer
C. Passwd
Explanation
In Unix-like operating systems, passwd is used to change user passwords. Here’s a brief overview of the commands:
pspasswd: This is not a standard command for changing passwords.
net user: This command is used in Windows to manage user accounts, including changing passwords, but it is not specifically used for changing passwords.
passwd: This is used to change a user’s password in Unix-like systems.
chgrp: This command changes the group ownership of files and directories, not passwords.
19.
Which of the following commands will display the current date and time?
Correct Answer
C. Date /t
Explanation
echo will display a message. logtime will log the date and time in a file. date will set the system date
20.
Which command will search for a text string in a file?
Correct Answer
C. Findstr
Explanation
find is for searching for a file. grep is the linux command for searching for a text string in a file. awk is the linux command for Ffinding and replacing text in a file
21.
Which of the following is NOT a file system?
Correct Answer
D. FTP
Explanation
NTFS is New Technology File System, a file system that replaced FAT (FIle Allocation Table). UDF is Universal Disk Format used for optical media. FTP is File Transport Protocol.
22.
Which command will list system information?
Correct Answer
D. Systeminfo
Explanation
The systeminfo command displays detailed system information in Windows, including the operating system version, system architecture, memory, network adapter details, and other hardware and software configurations. This command is useful for diagnosing system issues or checking system specifications.
23.
Which of the following will execute a program under another user account?
Correct Answer
A. Runas
Explanation
su will switch user. Sudo is the linux command for executing a program as another user. psexec will execute process remotely.
24.
Which command is used to import registry settings?
Correct Answer
C. Regedit
Explanation
regini will change registry permissions. regsvr32 will register or unregister a DLL. reg will read, set, export, delete keys and values.
25.
Which command will delay execution for 5 seconds?
Correct Answer
D. Sleep 5
Explanation
waitfor is used to synchronize events between one or more networked computers. at is used to schedule a command at specific time. start is used to start a program