
Batch File Quiz
Authored by John Robinson
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the file extension for a batch file?
.doc
.bat
.exe
.txt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a new batch file in Windows?
Open a web browser and search for 'create batch file'
Use a spreadsheet program to write the batch commands
Ask someone else to create the batch file for you
Open a text editor like Notepad, write your batch commands, and save the file with a .bat extension
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to display a message on the screen in a batch file?
display
echo
show
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to create a new directory in a batch file?
makedir
mkdir
createdir
newdir
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in a batch file?
var variable_name=value
create variable_name=value
set variable_name=value
define variable_name=value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using variables in batch files?
To store and manipulate data
To send emails
To create animations
To play music
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for a for loop in a batch file?
for variable in set do command
for /variable in (set) do command
for variable in (set) do command
for %%variable in (set) do command
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?