-
Notifications
You must be signed in to change notification settings - Fork 5
/
ti2-fragenkatalog.tex
186 lines (154 loc) · 6.3 KB
/
ti2-fragenkatalog.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
\documentclass[12pt,a4paper,ngerman]{scrartcl}
% Dateikodierung ist latin1%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{listings}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{verbatim}
\usepackage{soulutf8}
\usepackage{soul}
\usepackage[normalem]{ulem}
\usepackage{sectsty}
\usepackage{varwidth}
\usepackage{truncate}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{float}
\usepackage{framed}
\usepackage{mdframed}
\usepackage{array}
\usepackage{colortbl}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
% Setting the properties for links, urls etc.
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=blue
}
\lstset{ %
language=C++, % the language of the code
basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
numbers=left, % where to put the line-numbers
numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
numbersep=5pt, % how far the line-numbers are from the code
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
extendedchars=true %
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
frame=single, % adds a frame around the code
rulecolor=\color{gray}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
tabsize=4, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
title=\lstname, % show the filename of files included with \lstinputlisting; also try caption instead of title
keywordstyle=\color{blue}, % keyword style
commentstyle=\color{dkgreen}, % comment style
stringstyle=\color{mauve}, % string literal style
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
morekeywords={*,...} % if you want to add more keywords to the set
}
% Color definitions
\definecolor{crucial}{RGB}{0,60,0} % This color marks the portions of code that are crucial (see below)
\definecolor{cream}{RGB}{255,255,204} % highlighting color
\definecolor{blue}{RGB}{0,0,255}
\newcommand{\hlc}[2][cream]{{\sethlcolor{#1} \hl{#2}}}
\subsectionfont{\normalsize} % We change the sections to have a slightly smaller size
% Crucial marks keywords or statements that are crucial for passing the exam ;-)
\newcommand{\crucial}[1]{\hlc[cream]{#1}} % Optimized for online reading
%\newcommand{\crucial}[1]{\textbf{\textcolor{crucial}{\uline{#1}}}} % custom
%\newcommand{\crucial}[1]{\uline{#1}} % Optimized for print
% Question Command
\newcommand{\question}[1]{
\subsection[\truncate{0.80\textwidth}{#1}]{
\textcolor{blue}{#1}}}
\newenvironment{multilinequestion}[1][]
{\subsection[\truncate{0.80\textwidth}{#1}]{\textcolor{blue}{#1}} \color{blue}}
{}
% Used for the right vertical bar next to the answer blocks
% \newlength\RightBarWidth
% \setlength\RightBarWidth{1pt}
% \newenvironment{rightbar}
% {
% \def\FrameCommand##1{%
% \hspace{\textwidth}\hspace{-\RightBarWidth}%
% {\color{dkgreen}\vrule width \RightBarWidth}
% \hspace{-\textwidth}##1\hfill}%
% \MakeFramed{\addtolength\hsize{-\width-\RightBarWidth-\columnsep}%
% \FrameRestore}%
% }
% {\endMakeFramed}
% Make footnotes available inside frames
\makeatletter
\newcommand\mystuff@footnotebuffer{}
\newcounter{mystuff@footnote}
\newcommand\bufferfootnotes{
\let\mystuff@footnoteold\footnote
\setcounter{mystuff@footnote}{\thefootnote}
\renewcommand\mystuff@footnotebuffer{}
\renewcommand{\footnote}[1]{
\footnotemark
\g@addto@macro{\mystuff@footnotebuffer}{
\stepcounter{mystuff@footnote}
\protect\footnotetext[\themystuff@footnote]{##1}
}
}
}
\newcommand\stopbufferingfootnotes{%
\mystuff@footnotebuffer%
\renewcommand{\footnote}[1]{\mystuff@footnoteold{##1}}%
}
\makeatother
% Answer environment
\newenvironment{answer}
{\bufferfootnotes }
{\stopbufferingfootnotes}
\title{Technische Informatik 2 \\ Fragenkatalog \\ WiSe 2018/2019 \\[5pt] \Large{Universität Bremen}}
\date{\today}
\begin{document}
% Insert title here
\maketitle
% Abstract section
\begin{abstract}
Seit jeher gibt es auf den \textbf{Übungsblättern} des Kurses \textit{Technische Informatik 2} der Universität Bremen Zusatzfragen, die der Vorbereitung auf das \textbf{Fachgespräch} dienen sollen. Nachfolgend finden Sie die von freiwilligen Studenten und Tutoren zusammengetragenen Antworten auf diese Fragen.
\paragraph*{}
Jeder kann dazu beitragen, die Antworten zu erweitern, zu verbessern oder zu aktualisieren, indem er das Repository auf Github cloned, das Dokument überarbeitet und anschließend Merge-Requests einreicht. Das Repository befindet sich unter \url{https://github.com/momesana/ti2-fragenkatalog/}.
\end{abstract}
\newpage
% This inserts the table of contents
\tableofcontents
% Templates for question and answer pairs
%
% Simple question
%\question{}
%\begin{answer}
%\end{answer}
%
% Multilone question: To be used if the question contains images or blocks etc.
%\begin{multilinequestion}[text to appear in the subsection]
%\end{multilinequestion}
%the question that spans many lines
%\begin{answer}
%the answer
%\end{answer}
% This included Fragment contains questions regarding Operating Systems
\input{fragment_betriebssysteme}
% This included Fragment comprises of questions that revolve multithreading
\include{fragment_nebenlaeufigkeit}
% This includes network specific subjects
\include{fragment_netzwerke}
% This includes security specific subjects
\include{fragment_sicherheit}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: