Hands-on Computer Science
My learning DE

Quiz8 min

Quiz: The command line

Seven questions on paths, the commands of the command line and starting a Python program.

Topics:Working with the computer

In which folder is the file C:\Users\anna\Documents\uni\notizen.txt?

  • Documents
  • uni
  • notizen.txt
  • C:\

Which of these paths are absolute? (several are right)

  • C:\Users\anna\Documents
  • Documents\uni
  • /Users/anna/Documents
  • ..\pictures

The prompt reads PS C:\Users\anna\Documents\uni>. Where are you after cd ..?

  • In C:\Users\anna
  • In C:\Users\anna\Documents
  • Still in uni, because .. is not a folder name
  • In C:\

Which command shows you which files are in the current folder?

  • pwd
  • ls
  • cd
  • cat

What does mv report.txt report-final.txt do?

  • A copy called report-final.txt is created, and the original stays.
  • Afterwards the file is called report-final.txt, and there is no report.txt any more.
  • The file is moved into a folder called report-final.txt.

You deleted a file with rm by mistake. Where do you find it?

  • In the recycle bin
  • In the folder .trash of the current directory
  • Nowhere, it has been deleted directly

python hallo.py answers with can't open file … No such file or directory. What is the most likely cause?

  • There is a typo in the program.
  • Python is not installed.
  • You are not in the folder that hallo.py is in.

Download with answers: CSV Anki

Back
More on this
Details
Level
Beginner
Modules
Digitization and Programming
In learning paths
The command line
Code
4904
Updated
1 November 2026
Status
published

    A four-digit code takes you straight to the item.