2022-02-01
Max. 30 points
Name:
Task | Max. | Achieved |
---|---|---|
1 | 11 | |
2 | 13 | |
3 | 6 | |
Sum | 30 |
Statement | True | False |
---|---|---|
Individuals and interactions over processes and tools | ||
Comprehensive documentation over working software | ||
Contract negotiation over customer collaboration | ||
Responding to change over following a plan |
Statement | True | False |
---|---|---|
Our highest priority is to satisfy the developers through early and continuous delivery of pizza. | ||
Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale. | ||
Business people and developers must work together daily throughout the project. | ||
The most efficient and effective method of conveying information to and within a development team is a scrum board. | ||
Incoming payments are the primary measure of progress. | ||
Agile developers are willing to work long hours and through weekends to meet business deadlines. | ||
Continuous attention to technical excellence and good design is wasted development timed. | ||
Simplicity – the art of maximizing the amount of work not done – is essential. |
/var/log/apt
. Welche Befehle muss sie eingeben, damit der
folgende Verzeichnisbaum in Ihrem Home Verzeichnis angelegt wird?
(4 Punkte)└── repos ├── code ├── configuration └── github
mkdir -p ~/repos/code ~/repos/configuration ~/repos/github
Alternatively, switch to home via `cd` first and skip the `~/`.
It is also possible to create each directory on a separate line.
If ~/repos
is created separately first, the -p
flag can be omitted.
~/repos/configuration
nur mehr von ihrem Benutzer gelesen
oder verändert werden kann. Kein anderer Benutzer auf dem System,
egal in welcher Benutzergruppe, darf Zugriff darauf haben.
Schreibe einen Befehl, mit dem diese Änderung durchgeführt wird.
(2 Punkte)
chmod go-rwx ~/repos/configuration
~/repos/code
wechseln, um dort die C++ Datei
4ahel.cpp
zu kompilieren und damit ein Programm mit dem
Namen 4ahel
zu erstellen, welches Sie danach startet.
Welche Befehle gibt sie ein, um das Programm erfolgreich zu starten?
(4 Punkte)
cd ~/repos/code
clang++ 4ahel.cpp -o 4ahel
./4ahel
printf
oder cout
oder dergleichen aufgerufen
wird), so ist "-" als richtige Antwort zu verwenden.
#include <cmath>
#include <iostream>
int main() {
std::cout << area(1.0) << std::endl;
return 0;
}
double area(double radius) {
return radius * radius * M_PI;
}
#include <iostream>
#include <vector>
int main() {
std::vector<int> numbers = {3, 9, 1, 12};
std::cout << numbers[2] << std::endl;
return 0;
}
#include <iostream>
#include <vector>
void print_vector(vector<std::string> v);
int main() {
std::vector<std::string> names = {"Pat", "Chris", "Sue"};
std::vector<int> numbers = {3, 9, 1, 12};
print_vector(names);
print_vector(numbers);
return 0;
}
void print_vector(vector<std::string> v) {
for (auto it = v.begin(); it != v.end(); ++it) {
std::cout << *it << std::endl;
}
}