quiz Flashcards

1
Q

What are the three great virtues of a programmer?

A
  1. Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
  2. Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
  3. Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name at least one use case for each of the commands listed in this exercise

A
cat- display file
ls- list files in directory
pwd- show current directory
echo- print stuff
touch- create empty file
mkdir-create directory
mv- move/rename files
rm- remove files
cp - copy files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a GUI?

A

Graphical user interface : allows user to interact with a computer using graphical icons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a CLI?

A

Command line interface: allows user to interact with a computer using lines of texts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly