Windows Command Prompt

25 Questions

Settings
Please wait...
Windows Quizzes & Trivia

Test your knowledge of Windows OS


Questions and Answers
  • 1. 
    Which command do you use to change file extensions?
    • A. 

      Assoc

    • B. 

      Ftype

    • C. 

      Cacls

    • D. 

      Attrib

  • 2. 
    Which command do you use to relocate a file to another folder?
    • A. 

      Copy

    • B. 

      Move

    • C. 

      Mv

    • D. 

      Ren

  • 3. 
    What command do you use to delete folders?
    • A. 

      Del

    • B. 

      Rm

    • C. 

      Rd

    • D. 

      Rmdir

  • 4. 
    What does the echo command do?
    • A. 

      Display message on screen

    • B. 

      Display the contents of a text file

    • C. 

      Copy a file to another location

    • D. 

      Display output one screen at a time

  • 5. 
    What is the SC command?
    • A. 

      Schedule command

    • B. 

      System checker

    • C. 

      Screen clear

    • D. 

      Service control

  • 6. 
    Which command do you use to change file permissions?
    • A. 

      Perms

    • B. 

      Cacls

    • C. 

      Chmod

    • D. 

      Dir

  • 7. 
    Which command do you use to schedule a task?
    • A. 

      Crontab

    • B. 

      Exec

    • C. 

      Watch

    • D. 

      At

  • 8. 
    Which command do you use to clear the prompt screen?
    • A. 

      Cd

    • B. 

      Cls

    • C. 

      Clean

    • D. 

      Clear

  • 9. 
    Which registry stores file associations?
    • A. 

      HKEY_LOCAL_MACHINE

    • B. 

      HKEY_CURRENT_CONFIG

    • C. 

      HKEY_CURRENT_USER

    • D. 

      HKEY_CLASSES_ROOT

  • 10. 
    Which of the following are valid file attributes?
    • A. 

      Read, write, execute

    • B. 

      Full control, read & execute, modify, special permissions

    • C. 

      Hidden, read only, system, archive

    • D. 

      Owner, group, other

  • 11. 
    Which of the following commands will shutdown a computer with no time-out or warning?
    • A. 

      Shutdown /p

    • B. 

      Psshutdown

    • C. 

      Shutdown /r

    • D. 

      Poweroff

  • 12. 
    What does the hostname command do?
    • A. 

      Output the current username

    • B. 

      Display version information

    • C. 

      Display the name of the computer

    • D. 

      Switch user

  • 13. 
    Which of the following will display all hidden files in a folder?
    • A. 

      Dir -ah

    • B. 

      Ls -h

    • C. 

      Dir /a:a

    • D. 

      Dir /a:h

  • 14. 
    Which of the following commands would be used to set a file to read-only? 
    • A. 

      Chmod 444

    • B. 

      Attrib +r

    • C. 

      Cacls /r

    • D. 

      Attrib -r

  • 15. 
    What does the fc command do?
    • A. 

      Compare two files

    • B. 

      Copy file

    • C. 

      Check file

    • D. 

      Change format

  • 16. 
    What does the CMD command do?
    • A. 

      Clear the screen

    • B. 

      Start a new command shell

    • C. 

      Run a command

    • D. 

      Close the command shell

  • 17. 
    Which of the following changes folder permissions?
    • A. 

      Cacls

    • B. 

      Attrib

    • C. 

      Chmod

    • D. 

      Icacls

  • 18. 
    Which command will change account passwords?
    • A. 

      Pspasswd

    • B. 

      Net user

    • C. 

      Passwd

    • D. 

      Chgrp

  • 19. 
    Which of the following commands will display the current date and time?
    • A. 

      Date

    • B. 

      Logtime

    • C. 

      Date /t

    • D. 

      Echo

  • 20. 
    Which command will search for a text string in a file?
    • A. 

      Find

    • B. 

      Grep

    • C. 

      Findstr

    • D. 

      Awk

  • 21. 
    Which of the following is NOT a file system?
    • A. 

      NTFS

    • B. 

      UDF

    • C. 

      FAT

    • D. 

      FTP

  • 22. 
    Which command will list system information?
    • A. 

      Psinfo

    • B. 

      Whoami

    • C. 

      Ver

    • D. 

      Systeminfo

  • 23. 
    Which of the following will execute a program under another user account?
    • A. 

      Runas

    • B. 

      Su

    • C. 

      Sudo

    • D. 

      Psexec

  • 24. 
    Which command is used to import registry settings?
    • A. 

      Regini

    • B. 

      Reg

    • C. 

      Regedit

    • D. 

      Regsvr32

  • 25. 
    Which command will delay execution for 5 seconds?
    • A. 

      Waitfor 5

    • B. 

      At 5

    • C. 

      Start 5

    • D. 

      Sleep 5