![]() |
|
[Quiz] Small batch quiz. I may expand later. - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: [Quiz] Small batch quiz. I may expand later. (/Thread-Quiz-Small-batch-quiz-I-may-expand-later) |
[Quiz] Small batch quiz. I may expand later. - Inori - 12-28-2013 So, I got bored (again) (and hungry) and I made this! Hope you like! (There is a little bonus feature if you say I don't deserve a cookie ![]() Code: @echo off
color 02
title The Batch coding quiz!
:a
echo =================================
echo this little quiz I put together will
echo test your knowledge of batch coding
echo =================================
echo Question 1
echo what does "echo" do?
echo [1] hides unneeded info
echo [2] makes sandwiches :3
echo [3] closes the program
set /p a=
if %a%==1 goto b
if %a%==2 goto no
if %a%==3 goto no
:b
cls
echo Question 2
echo what does tskill do? (pretty obvious)
echo [1] closes the cmd console
echo [2] kills a listed task
echo [3] bakes a sheet of brownies
set /p b=
if %b%==1 goto no
if %b%==2 goto c
if %b%==3 goto no
:c
cls
echo Question 3
echo What does cls stand for?
echo [1] class
echo [2] clear screen
echo [3] chocolates
set /p c=
if %c%==1 goto no
if %c%==2 goto d
if %c%==3 goto no
:d
cls
echo Question 4
echo How hungry was I when writing this?
echo [1] fine
echo [2] moderately hungry
echo [3] fucking starving
set /p d=
if %d%==1 goto no
if %d%==2 goto no
if %d%==3 goto end
:no
cls
echo =========================
echo Sorry! That's the wrong
echo answer! Try again? (Y/N)
echo =========================
set /p e=
if %e%==y goto a
if %e%==Y goto a
if %e%==n goto end
if %e%==N goto end
:end
cls
echo =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
echo Well done! You finished! one more
echo question though, do I deserve a cookie?
echo =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
set /p f=
if %f%==y goto thanks
if %f%==Y goto thanks
if %f%==n goto shun
if %f%==N goto shun
:thanks
cls
echo =======================
echo :D you're awesome! Bye!
echo =======================
pause
exit
:shun
cls
echo xxxxxxxxxxxxxxxxxxxxxxxx
echo D: Well fuck you too!
echo xxxxxxxxxxxxxxxxxxxxxxxx
echo C:\ : Large shit detected in your Hard drive.
pause |