Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Command CLI for Files in Windows 10

Total questions: 25

Worksheet time: 50mins

Name
Class
Date
1.

Makes a directory (folder). The MKDIR command also works here.

a)

MD

b)

RD

c)

CD

d)

DIR

e)

DEL

2.

Removes a directory. RMDIR will also work. Two important switches for this command are:

/s: Removes subdirectories. This switch must be used if there are files and/or folders in the directory one is trying to remove.

/q: Removes directories without prompting the user for confirmation.

a)

MD

b)

RD

c)

CD

d)

DIR

e)

DEL

3.

Changes the directory one is working in. CHDIR also works here.

Some ways to use this include:

__..: Moves up a folder in a folder structure. For example, when focused on C:\HR\Docs

__\: Moves back to the root of the drive (C: for example)

a)

MD

b)

RD

c)

CD

d)

DIR

e)

DEL

4.

Lists the contents of a folder. Wildcards can be used to filter a file list.

a)

MD

b)

RD

c)

CD

d)

DIR

e)

DEL

5.

Deletes individual files. Wildcards can be used to delete multiple files. Some important switches include:

/p: Prompts before deletion.

/f: Forces deletion of read-only files.

/s: Deletes file in all subdirectories.

/q: Suppresses confirmation when using wildcards. For example, the DEL . /q command removes all files in a folder without confirmation.

a)

MD

b)

RD

c)

CD

d)

DIR

e)

DEL

6.

How do I go to Desktop from Admin folder?

a)

Desktop

b)

cd..

c)

cd Desktop

d)

mkdir desktop

7.

How do I look around?

a)

cls

b)

cd

c)

cd..

d)

dir

8.

How do I make a folder called Waffles?

a)

cd Waffles

b)

mkdir Waffles

c)

cd.. Waffles

d)

notepad Waffles

9.

how do I go back one step (directory)

a)

cd..

b)

cd \

c)

cd back

d)

with my left foot?

10.

how do I go to the C drive in one command?

a)

cd \

b)

cd..

c)

cd back

d)

mkdir C drive

11.

Which command is used to create a directory called `Projects` in the `C:\Users\Documents` path?

a)

mkdir Projects C:\Users\Documents

b)

mkdir C:\Users\Documents\Projects

c)

create C:\Users\Documents\Projects

d)

dir C:\Users\Documents Projects

12.

What does the `dir` command do in the Windows Command Prompt?

a)

Displays a file's content

b)

Lists the contents of the current directory

c)

Changes the current directory

d)

Deletes a directory

13.

What is the command to copy files in the Windows Command Prompt?

a)

move

b)

cp

c)

copy

d)

duplicate

14.
What can you do with the copy command that you can’t do with the xcopy command?
a)
Nothing. The xcopy command can do everything that the copy command can do.
b)
You can copy entire subdirectories.
c)
You can suppress prompts
d)
You can use wildcards.
15.

According to the text, what is the original name for 'folder'?

a)

Directory

b)

File

c)

Container

d)

Archive

16.

What is one advantage of using the command line over the GUI, as mentioned in the text?

a)

It is more visually appealing.

b)

It is faster if you can type quickly.

c)

It has more features.

d)

It is easier to use.

17.

Which command would you use to change the current position to the Pinball directory from C:\Office?

a)

cd c:\games\pinball

b)

md c:\games\pinball

c)

rd c:\games\pinball

d)

ls c:\games\pinball

18.

How would you create a directory called 'documents' within 'Word'?

a)

cd c:\office\word\documents

b)

md c:\office\word\documents

c)

rd c:\office\word\documents

d)

ls c:\office\word\documents

19.

Assume you have files within the 'pinball' directory and want to remove the directory. What command will you use?

a)

cd c:\games\pinball

b)

del c:\games\pinball

c)

rd c:\games\pinball

d)

rd /s c:\games\pinball

20.

Assume the directory "test1" is located at the root of the "F" drive. Which command would you use to change to the test1 directory in the F: drive from the C: drive?

a)

cd F:\test1

b)

md F:\test1

c)

rd F:\test1

d)

dir F:\test1

21.

Which command would you use to copy a file named 'test.txt' from the office directory to the excel directory?

a)

copy \office\test.txt \excel\

b)

xcopy \office\test.txt \excel\

c)

robocopy \office\test.txt \excel\

d)

del \office\test.txt \excel\

22.

What does robocopy do differently compared to xcopy?

a)

It copies individual files.

b)

It can tolerate network interruptions, skip past junctions, and preserve data attributes and timestamps.

c)

It deletes files once the copy completes.

d)

It only works when users are logged on to a system and therefore requires authenticated user accounts.

23.

What is the primary use of the shutdown command?

a)

To update system policies

b)

To turn off a computer

c)

To display system information

d)

To install software

24.

It offers graphical icons and visual indicators based interface.

a)

Graphical User Interface

b)

Command Line Interface

c)

Character User Interface

d)

Virtual Keyboard

25.

What is a User Interface (UI)?

a)

A type of software that runs in the background

b)

A way for users to interact with a computer system or software

c)

A hardware component of a computer

d)

A programming language