muh
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1,344 +0,0 @@
|
|||||||
\documentclass[a4paper,11pt]{report}
|
|
||||||
%\usepackage{isolatin1}
|
|
||||||
%\usepackage{german}
|
|
||||||
\usepackage{float}
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{lastpage}
|
|
||||||
\usepackage{fancyhdr}
|
|
||||||
\usepackage{soul}
|
|
||||||
|
|
||||||
\usepackage{lmodern} % Latin Modern
|
|
||||||
|
|
||||||
\usepackage[ngerman]{babel, translator}
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage{amssymb}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[ngerman]{babel, translator}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[utf8x]{inputenc}
|
|
||||||
\usepackage[left=2.5cm,top=2cm,right=2cm,bottom=4cm]{geometry}
|
|
||||||
|
|
||||||
%Code listings
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{minted}
|
|
||||||
\usepackage{etoolbox}
|
|
||||||
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
|
|
||||||
|
|
||||||
|
|
||||||
\usepackage[]{hyperref}
|
|
||||||
\hypersetup{
|
|
||||||
linkcolor=blue,
|
|
||||||
pagecolor= blue,
|
|
||||||
urlcolor= blue,
|
|
||||||
colorlinks=true,
|
|
||||||
pdfborder=0 0 0
|
|
||||||
}
|
|
||||||
\usepackage[
|
|
||||||
nonumberlist, %keine Seitenzahlen anzeigen
|
|
||||||
acronym, %ein Abk<62>rzungsverzeichnis erstellen
|
|
||||||
toc, %Eintr<EFBFBD>ge im Inhaltsverzeichnis
|
|
||||||
section] %im Inhaltsverzeichnis auf section-Ebene erscheinen
|
|
||||||
{glossaries}
|
|
||||||
|
|
||||||
|
|
||||||
\usepackage{hyperref}
|
|
||||||
|
|
||||||
%Ein eigenes Symbolverzeichnis erstellen
|
|
||||||
\newglossary[slg]{symbolslist}{syi}{syg}{Symbolverzeichnis}
|
|
||||||
|
|
||||||
%Den Punkt am Ende jeder Beschreibung deaktivieren
|
|
||||||
\renewcommand*{\glspostdescription}{}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%Glossar-Befehle anschalten
|
|
||||||
\makeglossaries
|
|
||||||
|
|
||||||
%Diese Befehle sortieren die Eintr<74>ge in den
|
|
||||||
%einzelnen Listen:
|
|
||||||
%makeindex -s datei.ist -t datei.alg -o datei.acr datei.acn
|
|
||||||
%makeindex -s datei.ist -t datei.glg -o datei.gls datei.glo
|
|
||||||
%makeindex -s datei.ist -t datei.slg -o datei.syi datei.syg
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% define acronyms here
|
|
||||||
\newacronym{PDF}{PDF}{Portable Document Format}
|
|
||||||
\newacronym{APDU}{APDU}{Application Protocol Data Unit}
|
|
||||||
\newacronym{AGPL}{AGPL}{Affero General Public License}
|
|
||||||
\newacronym{GPL}{GPL}{General Public License}
|
|
||||||
\newacronym{LGPL}{LGPL}{Lesser General Public License}
|
|
||||||
|
|
||||||
|
|
||||||
\newacronym{DCT}{DCT}{Discrete Cosine Transform}
|
|
||||||
\newacronym{TTA}{TTA}{Trusted Timestamp Authority}
|
|
||||||
\newacronym{OCSP}{OCSP}{Online Certificate Status Protocol}
|
|
||||||
\newacronym{PKI}{PKI}{Public Key Infrastructure}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%\newacronym{BDD}{BDD}{Behaviour Driven Development\protect\glsadd{glos:BDD}}
|
|
||||||
|
|
||||||
\newglossaryentry{Application Protocol Data Unit}
|
|
||||||
{
|
|
||||||
name={Application Protocol Data Unit},
|
|
||||||
description={blablabla}
|
|
||||||
}
|
|
||||||
|
|
||||||
\newglossaryentry{Copyleft}
|
|
||||||
{
|
|
||||||
name={Copyleft},
|
|
||||||
description={The copyleft ist the obligation required by the GLP (or AGPL) license to offer the source code of a work (and every derivative of it) to the public (open source). Copy{\bf{left}} can also be considered as the opposite of copy{\bf{right}}. }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
%Befehle f<>r Glossar
|
|
||||||
|
|
||||||
\usepackage{helvet}
|
|
||||||
\renewcommand{\familydefault}{\sfdefault}
|
|
||||||
|
|
||||||
\renewcommand\contentsname{Inhaltsverzeichnis}
|
|
||||||
|
|
||||||
|
|
||||||
%Einstellungen f??r code listings
|
|
||||||
\lstset{inputencoding=utf8, language=Java,tabsize=2, basicstyle=\small,breaklines=true,showstringspaces=false}
|
|
||||||
\pagestyle{fancy}
|
|
||||||
\setlength{\headheight}{38pt}
|
|
||||||
\setlength{\headwidth}{470pt}
|
|
||||||
\renewcommand{\headrule}{\hskip -\leftskip{\bf \quad \quad}\vbox to 5pt{\hbox to 455pt{\hrulefill}}}
|
|
||||||
\renewcommand{\footrule}{\hskip-\leftskip{\bf \quad \quad}{\hbox to 450 pt{\hrulefill}\newline}}
|
|
||||||
\fancyhf{}
|
|
||||||
\fancyheadoffset[L]{1cm}
|
|
||||||
\fancyfootoffset[L]{1cm}
|
|
||||||
%Kopfzeile links bzw. innen
|
|
||||||
\fancyhead[L]{\includegraphics[height=0.6in]{img/bfsulogo.jpg}}
|
|
||||||
%Kopfzeile mittig
|
|
||||||
\fancyhead[C]{}
|
|
||||||
%Kopfzeile rechts bzw. au??????????<3F>?en
|
|
||||||
\fancyhead[R]{\hspace{10pt} \\M122 - Prüfung 1\\ M.Bischof\rightmark }
|
|
||||||
\fancyheadoffset[L]{1cm}
|
|
||||||
\fancyfootoffset[L]{1cm}
|
|
||||||
%Linie oben
|
|
||||||
\renewcommand{\headrulewidth}{0.7pt}
|
|
||||||
%Fu??????????<3F>?zeile mittig
|
|
||||||
\cfoot{\vspace*{6mm}page:\ \thepage\ of \pageref{LastPage}}
|
|
||||||
\fancyfoot[R]{}
|
|
||||||
% footnote in footer
|
|
||||||
\newcommand{\fancyfootnotetext}[2]{%
|
|
||||||
\fancypagestyle{dingens}{%
|
|
||||||
\fancyfoot[LO,RE]{\parbox{12cm}{\footnotemark[#1]\footnotesize #2}}%
|
|
||||||
}%
|
|
||||||
\thispagestyle{dingens}%
|
|
||||||
}
|
|
||||||
%Linie unten
|
|
||||||
\renewcommand{\footrulewidth}{0.5pt}
|
|
||||||
|
|
||||||
\vspace*{15mm}
|
|
||||||
\textwidth 450pt
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\setcounter{tocdepth}{5}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%\thispagestyle{empty}
|
|
||||||
|
|
||||||
\begin{center}
|
|
||||||
|
|
||||||
\vspace{48pt}
|
|
||||||
|
|
||||||
|
|
||||||
\vspace{15pt}
|
|
||||||
\begin{huge}
|
|
||||||
M122 - Powershell - Prüfung 1 Serie a
|
|
||||||
\end{huge}
|
|
||||||
\vspace{10pt}\\
|
|
||||||
\begin{quote}
|
|
||||||
\end{quote}
|
|
||||||
|
|
||||||
\vspace{20pt}
|
|
||||||
{\bf{Erlaubte Hilfsmittel :}}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Alle Hilfsmittel ausser Netzwerkkommunikation ({\bf{LAN-Kabel entfernen!}})
|
|
||||||
\end{itemize}
|
|
||||||
{\bf{Generell nicht erlaubt ist:}}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Abschreiben von der Nachbarprüfung oder Weitergeben von Prüfungen/Prüfungsresultaten innerhalb der Klasse. Kommunikation über Handy oder Computernetzwerk.
|
|
||||||
\end{itemize}
|
|
||||||
Jeglicher Verstoss gegen diese Regeln führt umgehend zum Ausschluss aus der Prüfung und der Note 1.
|
|
||||||
\vspace{30pt}
|
|
||||||
\\
|
|
||||||
Name: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\hspace{30pt}
|
|
||||||
Klasse: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\vspace{50pt}
|
|
||||||
Datum: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
\begin{tabular}{||p{3 cm}@{}|c|r||}
|
|
||||||
& & \\
|
|
||||||
Aufgabe & max. Punkte & erreichte Punkte \\
|
|
||||||
& & \\
|
|
||||||
|
|
||||||
1a & 1 & \\
|
|
||||||
1b & 1 & \\
|
|
||||||
1c & 1 & \\
|
|
||||||
1d & 1 & \\
|
|
||||||
1e & 1 & \\
|
|
||||||
|
|
||||||
2a & 4 & \\
|
|
||||||
2b & 2 & \\
|
|
||||||
2c & 2 & \\
|
|
||||||
2d & 4 & \\
|
|
||||||
|
|
||||||
3a & 2 & \\
|
|
||||||
3b & 3 & \\
|
|
||||||
3c & 13 & \\
|
|
||||||
|
|
||||||
|
|
||||||
& & \\
|
|
||||||
Total & 35 & \\
|
|
||||||
|
|
||||||
\end{tabular}
|
|
||||||
\end{center}
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 1 - Kurzaufgaben}}}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 1a (1 Punkt)}} Verzeichnisinhalt auflisten -
|
|
||||||
Kreuzen sie {\bf{alle richtigen Aussagen}} an.\\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Mit welchen Befehlen können sie den Inhalt eines Verzeichnisses auflisten? \\
|
|
||||||
\begin{itemize}
|
|
||||||
\item \verb|Get-ChildItem| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|Get-Children| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|Get-Child| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|dir| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
{\bf{Aufgabe - 1b (1 Punkt)}} Wildcards -
|
|
||||||
Kreuzen sie {\bf{die richtige Aussage}} an \\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Wofür steht das \verb|?|-Zeichen in Verbindung mit einem Commandlet?
|
|
||||||
\begin{itemize}
|
|
||||||
\item Beliebige viele Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item 0 oder beliebig viele Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item genau 1 beliebiges Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Dieses Zeichen kann man mit Commandlets nicht verwenden \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1c (1 Punkt)}} [abc]* -
|
|
||||||
Kreuzen sie {\bf{die richtige Aussage}} an \\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Was bedeutet [abc]* in der Verwendung mit einem Commandlet?\begin{itemize}
|
|
||||||
\item Es muss zu Beginn {\bf{genau}} der Zeichenfolge \verb|abc| entsprechen, danach dürfen beliebig viele Zeichen kommen. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Dies ist eine Auswahl. Es dürfen zu Beginn die Zeichen \verb|a, b| oder \verb|c| vorkommen, aber jeweils nur eines davon. Danach dürfen beliebig viele Zeichen kommen. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Es dürfen beliebig viele Kombinationen aus den Zeichen \verb|a, b| und \verb|c| kommen, also zB. \verb|ab|, \verb|bac|, \verb|aaa|, usw. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1d (1 Punkt)}} - Get-Process -
|
|
||||||
Was macht folgendes Commandlet?
|
|
||||||
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
||||||
\begin{minted}[frame=none,mathescape]{java}
|
|
||||||
Get-Process s*e
|
|
||||||
\end{minted}
|
|
||||||
Antwort: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\
|
|
||||||
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\newpage
|
|
||||||
\noindent{\bf{Aufgabe - 1e (1 Punkt)}} - Alias -
|
|
||||||
Geben sie den Befehl an, welcher ein Alias \verb|editor| auf das Programm \verb|notepad.exe| erstellt.\\\\
|
|
||||||
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
||||||
Antwort: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\vspace{20pt}
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 2 - Codestücke}}}\\
|
|
||||||
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2a (4 Punkte, 1 Punkt pro Zeile)}} - Pipelineausdruck\\\\
|
|
||||||
Nachfolgend ist eine Pipelineausdruck gegeben. Geben sie bei jeder Zeile an, was genau gemacht wird.\\\\
|
|
||||||
\vspace{9pt}
|
|
||||||
\begin{minted}[linenos=true,frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-ChildItem "C:\" -r
|
|
||||||
| Where-Object { $_.Name -like "*pic*" }
|
|
||||||
| Select-Object Name, Length
|
|
||||||
| Sort-Object Length
|
|
||||||
\end{minted}
|
|
||||||
\\
|
|
||||||
{\bf{Hinweise: }} Aus Platzgründen und zur Vereinfachung der Aufgabenstellung ist der Ausdruck auf mehrere Zeilen verteilt. Es versteht sich aber von selbst, dass dieser bei der Ausführung auf eine zusammenhängende Zeile gehört. Erklären sie exakt (auch Parameter beachten, usw.) und unmissverständlich.\\\\
|
|
||||||
Antwort: \\\\
|
|
||||||
1: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
2: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
3: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
4: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\\\
|
|
||||||
\noindent{\bf{Aufgabe - 2b (2 Punkte)}} - Pipelineausdruck\\\\
|
|
||||||
Erklären sie in Ihren eigenen Worten, was folgeder Pipelineausdruck macht:\\\\
|
|
||||||
\begin{minted}[frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-Process | Where-Object { $_.Id -gt 500 -and $_.ws -gt 50MB}
|
|
||||||
\end{minted}
|
|
||||||
\\\\Antwort: \\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
\newpage
|
|
||||||
\noindent{\bf{Aufgabe - 2c (2 Punkte)}} - Prozess abschiessen\\\\
|
|
||||||
Folgender Pipelineausdruck findet den Prozess mit der Id 1234. Sie möchten diesen Prozess abschiessen (kill). Ergänzen sie den Ausdruck, so dass der Prozess abgeschossen wird. \\\\
|
|
||||||
\begin{minted}[frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-Process | Where-Object { $_.Id -eq "1234" }
|
|
||||||
\end{minted}
|
|
||||||
\\\\{\bf{Hinweise: }} Sie können ihre Lösung direkt in den Ausdruck hineinschreiben. Es gibt mehrere korrekte Lösungen.\\\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2d (4 Punkte, Zeile 1 = 2 Punkte, Zeile 2 und 3 je 1 Punkt)}} - Parameter validieren\\\\
|
|
||||||
Nachfolgen haben sie ein kleines Skript. Sie sollen den Skriptinhalt nun ergänzen, so dass folgende Punkte gewährleistet sind:
|
|
||||||
\begin{itemize}
|
|
||||||
\item \verb|zahl1| kann nur Werte von 10 bis 1000 annehmen
|
|
||||||
\item \verb|zahl2| kann nur Werte von -1000 bis 10 annehmen
|
|
||||||
\item Auf den Zeilen 2 und 3 soll nach der Ausgabe (\emph{Die ... Zahl ist: }) auch noch der Wert der entsprechenden Variable ausgegeben werden
|
|
||||||
\end{itemize}
|
|
||||||
\begin{minted}[linenos=true,frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
param( [int] $zahl1, [int] $zahl2)
|
|
||||||
"Die erste Zahl ist: "
|
|
||||||
"Die zweite Zahl ist: "
|
|
||||||
\end{minted}
|
|
||||||
\\\\\\{\bf{Hinweise: }} Sie können ihre Lösung direkt in das Skript hineinschreiben. \\\\
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 3 - Programmieraufgaben}}}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3a (2 Punkte)}} - Prozesse finden\\\\
|
|
||||||
Finden sie alle laufenden Prozesse, welche mit dem Buchstaben e enden und aus insgesamt exakt 8 Zeichen bestehen (Geben sie den Befehl an).\\\\
|
|
||||||
Lösung:\\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\\\
|
|
||||||
\noindent{\bf{Aufgabe - 3b (3 Punkte)}} - dll Dateien finden\\\\
|
|
||||||
Formulieren sie einen Pipelineausdruck, welcher alle .dll Dateien im Ordner \verb|C:\windows| (inkl. aller Unterordner) findet und die Suchresultate in der Datei \verb|C:\windows\resultate.txt| abspeichert.\\\\
|
|
||||||
Lösung:\\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3c (13 Punkte)}} - Skript Zahlen\\\\
|
|
||||||
Schreiben sie ein Skript, welches folgende Punkte erfüllt:
|
|
||||||
\begin{itemize}
|
|
||||||
\item Drei Zahlen können über Parameter eingegeben werden. Die Parameter heissen \verb|z1|, \verb|z2| und \verb|z3| (2 Punkte)
|
|
||||||
\item Das Skript überprüft, ob \verb|z1| grösser, kleiner oder gleich gross ist wie \verb|z2| und gibt eine entsprechende Information aus (\emph{z1 ist grösser als z2}, usw.). (4 Punkte)
|
|
||||||
\item Das Skript berechnet den Durchschnitt aller drei Zahlen und gibt diesen aus (Durchschnitt = Summe aller Zahlen / Anzahl Zahlen) (2 Punkte)
|
|
||||||
\item Das Skript beinhaltet einen Array \verb|$infoArray| (5 Punkte) . Dieser Array soll 4 Werte abspeichern:
|
|
||||||
\begin{enumerate}
|
|
||||||
\item Summe der drei Zahlen (1P)
|
|
||||||
\item Summe der drei Zahlen negiert (alle Zahlen negativ machen und aufsummieren) (1P)
|
|
||||||
\item Durchschnitt (siehe vorherige Teilaufgabe) (1P)
|
|
||||||
\item Den Wert 1 falls \verb|z1| grösser als \verb|z2| ist, 0 falls gleich gross und -1 falls kleiner (Siehe auch 2. Teilaufgabe) (2P)
|
|
||||||
\end{enumerate}
|
|
||||||
Die Werte sollen in der angegebenen Reihenfolge abgespeichert werden. D.h. an der Stelle \verb|$infoArray[0]| befindet sich die Summe der drei Zahlen, usw.
|
|
||||||
\end{itemize}
|
|
||||||
Lösung (ganzes Skript hier aufschreiben) :
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}ChildItem} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}C:\PYGdefaultZbs{}\PYGdefaultZdq{}} \PYGdefault{n}{\PYGdefaultZhy{}r}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Name} \PYGdefault{o}{\PYGdefaultZhy{}like} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}*pic*\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Select\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}\PYGdefault{p}{,} \PYGdefault{n}{Length}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Sort\PYGdefaultZhy{}Object} \PYGdefault{n}{Length}
|
|
||||||
\end{Verbatim}
|
|
@ -1,6 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}ChildItem} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}C:\PYGdefaultZbs{}Program Files\PYGdefaultZbs{}\PYGdefaultZdq{}} \PYGdefault{n}{\PYGdefaultZhy{}r} \PYGdefault{n}{\PYGdefaultZhy{}filter} \PYGdefault{p}{*.}\PYGdefault{n}{jpg} \PYGdefault{err}{‘}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Length} \PYGdefault{o}{\PYGdefaultZhy{}lt} \PYGdefault{n}{30000} \PYGdefault{p}{\PYGdefaultZcb{}} \PYGdefault{err}{‘}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Select\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}\PYGdefault{p}{,} \PYGdefault{n}{Length} \PYGdefault{err}{‘}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Sort\PYGdefaultZhy{}Object} \PYGdefault{n}{Name} \PYGdefault{err}{‘}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}gt} \PYGdefault{n}{500} \PYGdefault{o}{\PYGdefaultZhy{}and} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{ws} \PYGdefault{o}{\PYGdefaultZhy{}gt} \PYGdefault{n}{50MB}\PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n}{Get}\PYGdefault{o}{\PYGdefaultZhy{}}\PYGdefault{n}{Process} \PYGdefault{n}{s}\PYGdefault{o}{*}\PYGdefault{n}{e}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}eq} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}1234\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k}{param}\PYGdefault{p}{(} \PYGdefault{n+no}{[int]} \PYGdefault{n+nv}{\PYGdefaultZdl{}zahl1}\PYGdefault{p}{,} \PYGdefault{n+no}{[int]} \PYGdefault{n+nv}{\PYGdefaultZdl{}zahl2}\PYGdefault{p}{)}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die erste Zahl ist: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die zweite Zahl ist: \PYGdefaultZdq{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
|
|
||||||
\end{Verbatim}
|
|
@ -1,10 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{o}{[]} \PYGdefault{n}{fourNumbers} \PYGdefault{o}{=} \PYGdefault{k}{new} \PYGdefault{k+kt}{int}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{4}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{n}{ende} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{4}\PYGdefault{o}{;}
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{n}{index} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{;}
|
|
||||||
|
|
||||||
\PYGdefault{k}{do}\PYGdefault{o}{\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{fourNumbers}\PYGdefault{o}{[}\PYGdefault{n}{index}\PYGdefault{o}{]} \PYGdefault{o}{=} \PYGdefault{n}{index}\PYGdefault{o}{;}
|
|
||||||
\PYGdefault{n}{index}\PYGdefault{o}{++;}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}\PYGdefault{k}{while}\PYGdefault{o}{(}\PYGdefault{n}{index} \PYGdefault{o}{!=} \PYGdefault{n}{ende}\PYGdefault{o}{)}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kd}{public} \PYGdefault{k+kd}{static} \PYGdefault{k+kt}{void} \PYGdefault{n+nf}{main}\PYGdefault{o}{(}\PYGdefault{n}{String}\PYGdefault{o}{[]} \PYGdefault{n}{args}\PYGdefault{o}{)}
|
|
||||||
\end{Verbatim}
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{double}\PYGdefault{o}{[][]} \PYGdefault{n}{coordinates} \PYGdefault{o}{=}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZob{}\PYGdefaultZob{}}\PYGdefault{l+s}{\PYGdefaultZdq{}34.3433 \PYGdefaultZdq{}}\PYGdefault{o}{,} \PYGdefault{l+s}{\PYGdefaultZdq{}56.34534\PYGdefaultZdq{}}\PYGdefault{o}{\PYGdefaultZcb{},}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZob{}}\PYGdefault{l+s}{\PYGdefaultZdq{}33.2342\PYGdefaultZdq{}}\PYGdefault{o}{,} \PYGdefault{l+s}{\PYGdefaultZdq{}60.34544\PYGdefaultZdq{}}\PYGdefault{o}{\PYGdefaultZcb{}\PYGdefaultZcb{};}
|
|
||||||
\end{Verbatim}
|
|
@ -1,7 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{o}{[]} \PYGdefault{n}{noten} \PYGdefault{o}{=} \PYGdefault{o}{\PYGdefaultZob{}}\PYGdefault{l+m+mf}{6.0}\PYGdefault{o}{,} \PYGdefault{l+m+mi}{3}\PYGdefault{o}{,} \PYGdefault{l+m+mf}{5.5}\PYGdefault{o}{,} \PYGdefault{l+m+mf}{4.5}\PYGdefault{o}{,} \PYGdefault{l+m+mi}{5}\PYGdefault{o}{\PYGdefaultZcb{};}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{i} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{\PYGdefaultZlt{}=}\PYGdefault{n}{noten}\PYGdefault{o}{.}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{durchschnitt} \PYGdefault{o}{+=} \PYGdefault{n}{noten}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{n}{System}\PYGdefault{o}{.}\PYGdefault{n+na}{out}\PYGdefault{o}{.}\PYGdefault{n+na}{println}\PYGdefault{o}{(}\PYGdefault{l+s}{\PYGdefaultZdq{}Notendurchschnitt: \PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{durchschnitt} \PYGdefault{o}{/} \PYGdefault{o}{(}\PYGdefault{n}{noten}\PYGdefault{o}{.}\PYGdefault{n+na}{length} \PYGdefault{o}{\PYGdefaultZhy{}} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{));}
|
|
||||||
\end{Verbatim}
|
|
@ -1,13 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{double} \PYGdefault{o}{[][]} \PYGdefault{n}{coordinates} \PYGdefault{o}{=} \PYGdefault{k}{new} \PYGdefault{k+kt}{double}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{10}\PYGdefault{o}{][}\PYGdefault{l+m+mi}{2}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{c+cm}{/**}
|
|
||||||
\PYGdefault{c+cm}{** Array wird mit zufaelligen Koordinaten gefuellt, zB.}
|
|
||||||
\PYGdefault{c+cm}{** 34.53434 und 56.9345 Laengen\PYGdefaultZhy{} und Breitengrad}
|
|
||||||
\PYGdefault{c+cm}{**/}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{i} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{0}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{\PYGdefaultZlt{}}\PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{0}\PYGdefault{o}{].}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{y} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{0}\PYGdefault{o}{;} \PYGdefault{n}{y} \PYGdefault{o}{\PYGdefaultZlt{}} \PYGdefault{n}{coordinates}\PYGdefault{o}{.}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{y}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{System}\PYGdefault{o}{.}\PYGdefault{n+na}{out}\PYGdefault{o}{.}\PYGdefault{n+na}{println}\PYGdefault{o}{(}\PYGdefault{l+s}{\PYGdefaultZdq{}Die coordinaten Nr.\PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{i} \PYGdefault{o}{+} \PYGdefault{l+s}{\PYGdefaultZdq{} lauten: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{o}{+} \PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{][}\PYGdefault{n}{y}\PYGdefault{o}{]} \PYGdefault{o}{+} \PYGdefault{l+s}{\PYGdefaultZdq{} und: \PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{][}\PYGdefault{n}{y}\PYGdefault{o}{]);}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
Before Width: | Height: | Size: 74 KiB |
BIN
m122/LB1/Pruefung1b/.DS_Store
vendored
@ -1,336 +0,0 @@
|
|||||||
\documentclass[a4paper,11pt]{report}
|
|
||||||
%\usepackage{isolatin1}
|
|
||||||
%\usepackage{german}
|
|
||||||
\usepackage{float}
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{lastpage}
|
|
||||||
\usepackage{fancyhdr}
|
|
||||||
\usepackage{soul}
|
|
||||||
|
|
||||||
\usepackage{lmodern} % Latin Modern
|
|
||||||
|
|
||||||
\usepackage[ngerman]{babel, translator}
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage{amssymb}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[ngerman]{babel, translator}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[utf8x]{inputenc}
|
|
||||||
\usepackage[left=2.5cm,top=2cm,right=2cm,bottom=4cm]{geometry}
|
|
||||||
|
|
||||||
%Code listings
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{minted}
|
|
||||||
\usepackage{etoolbox}
|
|
||||||
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
|
|
||||||
|
|
||||||
|
|
||||||
\usepackage[]{hyperref}
|
|
||||||
\hypersetup{
|
|
||||||
linkcolor=blue,
|
|
||||||
pagecolor= blue,
|
|
||||||
urlcolor= blue,
|
|
||||||
colorlinks=true,
|
|
||||||
pdfborder=0 0 0
|
|
||||||
}
|
|
||||||
\usepackage[
|
|
||||||
nonumberlist, %keine Seitenzahlen anzeigen
|
|
||||||
acronym, %ein Abk<62>rzungsverzeichnis erstellen
|
|
||||||
toc, %Eintr<EFBFBD>ge im Inhaltsverzeichnis
|
|
||||||
section] %im Inhaltsverzeichnis auf section-Ebene erscheinen
|
|
||||||
{glossaries}
|
|
||||||
|
|
||||||
|
|
||||||
\usepackage{hyperref}
|
|
||||||
|
|
||||||
%Ein eigenes Symbolverzeichnis erstellen
|
|
||||||
\newglossary[slg]{symbolslist}{syi}{syg}{Symbolverzeichnis}
|
|
||||||
|
|
||||||
%Den Punkt am Ende jeder Beschreibung deaktivieren
|
|
||||||
\renewcommand*{\glspostdescription}{}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%Glossar-Befehle anschalten
|
|
||||||
\makeglossaries
|
|
||||||
|
|
||||||
%Diese Befehle sortieren die Eintr<74>ge in den
|
|
||||||
%einzelnen Listen:
|
|
||||||
%makeindex -s datei.ist -t datei.alg -o datei.acr datei.acn
|
|
||||||
%makeindex -s datei.ist -t datei.glg -o datei.gls datei.glo
|
|
||||||
%makeindex -s datei.ist -t datei.slg -o datei.syi datei.syg
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% define acronyms here
|
|
||||||
\newacronym{PDF}{PDF}{Portable Document Format}
|
|
||||||
\newacronym{APDU}{APDU}{Application Protocol Data Unit}
|
|
||||||
\newacronym{AGPL}{AGPL}{Affero General Public License}
|
|
||||||
\newacronym{GPL}{GPL}{General Public License}
|
|
||||||
\newacronym{LGPL}{LGPL}{Lesser General Public License}
|
|
||||||
|
|
||||||
|
|
||||||
\newacronym{DCT}{DCT}{Discrete Cosine Transform}
|
|
||||||
\newacronym{TTA}{TTA}{Trusted Timestamp Authority}
|
|
||||||
\newacronym{OCSP}{OCSP}{Online Certificate Status Protocol}
|
|
||||||
\newacronym{PKI}{PKI}{Public Key Infrastructure}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%\newacronym{BDD}{BDD}{Behaviour Driven Development\protect\glsadd{glos:BDD}}
|
|
||||||
|
|
||||||
\newglossaryentry{Application Protocol Data Unit}
|
|
||||||
{
|
|
||||||
name={Application Protocol Data Unit},
|
|
||||||
description={blablabla}
|
|
||||||
}
|
|
||||||
|
|
||||||
\newglossaryentry{Copyleft}
|
|
||||||
{
|
|
||||||
name={Copyleft},
|
|
||||||
description={The copyleft ist the obligation required by the GLP (or AGPL) license to offer the source code of a work (and every derivative of it) to the public (open source). Copy{\bf{left}} can also be considered as the opposite of copy{\bf{right}}. }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
%Befehle f<>r Glossar
|
|
||||||
|
|
||||||
\usepackage{helvet}
|
|
||||||
\renewcommand{\familydefault}{\sfdefault}
|
|
||||||
|
|
||||||
\renewcommand\contentsname{Inhaltsverzeichnis}
|
|
||||||
|
|
||||||
|
|
||||||
%Einstellungen f??r code listings
|
|
||||||
\lstset{inputencoding=utf8, language=Java,tabsize=2, basicstyle=\small,breaklines=true,showstringspaces=false}
|
|
||||||
\pagestyle{fancy}
|
|
||||||
\setlength{\headheight}{38pt}
|
|
||||||
\setlength{\headwidth}{470pt}
|
|
||||||
\renewcommand{\headrule}{\hskip -\leftskip{\bf \quad \quad}\vbox to 5pt{\hbox to 455pt{\hrulefill}}}
|
|
||||||
\renewcommand{\footrule}{\hskip-\leftskip{\bf \quad \quad}{\hbox to 450 pt{\hrulefill}\newline}}
|
|
||||||
\fancyhf{}
|
|
||||||
\fancyheadoffset[L]{1cm}
|
|
||||||
\fancyfootoffset[L]{1cm}
|
|
||||||
%Kopfzeile links bzw. innen
|
|
||||||
\fancyhead[L]{\includegraphics[height=0.6in]{img/bfsulogo.jpg}}
|
|
||||||
%Kopfzeile mittig
|
|
||||||
\fancyhead[C]{}
|
|
||||||
%Kopfzeile rechts bzw. au??????????<3F>?en
|
|
||||||
\fancyhead[R]{\hspace{10pt} \\M122 - Prüfung 1\\ M.Bischof\rightmark }
|
|
||||||
\fancyheadoffset[L]{1cm}
|
|
||||||
\fancyfootoffset[L]{1cm}
|
|
||||||
%Linie oben
|
|
||||||
\renewcommand{\headrulewidth}{0.7pt}
|
|
||||||
%Fu??????????<3F>?zeile mittig
|
|
||||||
\cfoot{\vspace*{6mm}page:\ \thepage\ of \pageref{LastPage}}
|
|
||||||
\fancyfoot[R]{}
|
|
||||||
% footnote in footer
|
|
||||||
\newcommand{\fancyfootnotetext}[2]{%
|
|
||||||
\fancypagestyle{dingens}{%
|
|
||||||
\fancyfoot[LO,RE]{\parbox{12cm}{\footnotemark[#1]\footnotesize #2}}%
|
|
||||||
}%
|
|
||||||
\thispagestyle{dingens}%
|
|
||||||
}
|
|
||||||
%Linie unten
|
|
||||||
\renewcommand{\footrulewidth}{0.5pt}
|
|
||||||
|
|
||||||
\vspace*{15mm}
|
|
||||||
\textwidth 450pt
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\setcounter{tocdepth}{5}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%\thispagestyle{empty}
|
|
||||||
|
|
||||||
\begin{center}
|
|
||||||
|
|
||||||
\vspace{48pt}
|
|
||||||
|
|
||||||
|
|
||||||
\vspace{15pt}
|
|
||||||
\begin{huge}
|
|
||||||
M122 - Powershell - Prüfung 1 Serie b
|
|
||||||
\end{huge}
|
|
||||||
\vspace{10pt}\\
|
|
||||||
|
|
||||||
\vspace{20pt}
|
|
||||||
{\bf{Erlaubte Hilfsmittel :}}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Alle Hilfsmittel ausser Netzwerkkommunikation ({\bf{LAN-Kabel entfernen!}})
|
|
||||||
\end{itemize}
|
|
||||||
{\bf{Generell nicht erlaubt ist:}}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Abschreiben von der Nachbarprüfung oder Weitergeben von Prüfungen/Prüfungsresultaten innerhalb der Klasse. Kommunikation über Handy oder Computernetzwerk.
|
|
||||||
\end{itemize}
|
|
||||||
Jeglicher Verstoss gegen diese Regeln führt umgehend zum Ausschluss aus der Prüfung und der Note 1.
|
|
||||||
\vspace{30pt}
|
|
||||||
\\
|
|
||||||
Name: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\hspace{30pt}
|
|
||||||
Klasse: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\vspace{50pt}
|
|
||||||
Datum: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
\begin{tabular}{||p{3 cm}@{}|c|r||}
|
|
||||||
& & \\
|
|
||||||
Aufgabe & max. Punkte & erreichte Punkte \\
|
|
||||||
& & \\
|
|
||||||
|
|
||||||
1a & 1 & \\
|
|
||||||
1b & 1 & \\
|
|
||||||
1c & 1 & \\
|
|
||||||
1d & 1 & \\
|
|
||||||
1e & 1 & \\
|
|
||||||
|
|
||||||
2a & 2 & \\
|
|
||||||
2b & 4 & \\
|
|
||||||
2c & 4 & \\
|
|
||||||
2d & 2 & \\
|
|
||||||
|
|
||||||
3a & 3 & \\
|
|
||||||
3b & 2 & \\
|
|
||||||
3c & 13 & \\
|
|
||||||
|
|
||||||
|
|
||||||
& & \\
|
|
||||||
Total & 35 & \\
|
|
||||||
|
|
||||||
\end{tabular}
|
|
||||||
\end{center}
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 1 - Kurzaufgaben}}}\\
|
|
||||||
{\bf{Aufgabe - 1a (1 Punkt)}} Wildcards -
|
|
||||||
Kreuzen sie {\bf{die richtige Aussage}} an \\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Wofür steht das \verb|?|-Zeichen in Verbindung mit einem Commandlet?
|
|
||||||
\begin{itemize}
|
|
||||||
\item genau 1 beliebiges Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Dieses Zeichen kann man mit Commandlets nicht verwenden \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Beliebige viele Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item 0 oder beliebig viele Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1b (1 Punkt)}} Verzeichnisinhalt auflisten -
|
|
||||||
Kreuzen sie {\bf{alle richtigen Aussagen}} an.\\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Mit welchen Befehlen können sie den Inhalt eines Verzeichnisses auflisten? \\
|
|
||||||
\begin{itemize}
|
|
||||||
\item \verb|Get-Child| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|dir| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|Get-Children| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|Get-ChildItem| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1c (1 Punkt)}} [cde]* -
|
|
||||||
Kreuzen sie {\bf{die richtige Aussage}} an \\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Was bedeutet [cde]* in der Verwendung mit einem Commandlet?\begin{itemize}
|
|
||||||
\item Dies ist eine Auswahl. Es dürfen zu Beginn die Zeichen \verb|c, d| oder \verb|e| vorkommen, aber jeweils nur eines davon. Danach dürfen beliebig viele Zeichen kommen. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Es dürfen beliebig viele Kombinationen aus den Zeichen \verb|c, d| und \verb|e| kommen, also zB. \verb|cd|, \verb|dec|, \verb|ccc|, usw. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Es muss zu Beginn {\bf{genau}} der Zeichenfolge \verb|cde| entsprechen, danach dürfen beliebig viele Zeichen kommen. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1d (1 Punkt)}} - Alias -
|
|
||||||
Geben sie den Befehl an, welcher ein Alias \verb|ed| auf das Programm \verb|notepad.exe| erstellt.\\\\
|
|
||||||
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
||||||
Antwort: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\newpage
|
|
||||||
\noindent{\bf{Aufgabe - 1e (1 Punkt)}} - Get-Process -
|
|
||||||
Was macht folgendes Commandlet?
|
|
||||||
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
||||||
\begin{minted}[frame=none,mathescape]{java}
|
|
||||||
Get-Process t*e
|
|
||||||
\end{minted}
|
|
||||||
Antwort: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\
|
|
||||||
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\\\
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 2 - Codestücke}}}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2a (2 Punkte)}} - Pipelineausdruck\\\\
|
|
||||||
Erklären sie in Ihren eigenen Worten, was folgeder Pipelineausdruck macht:\\\\
|
|
||||||
\begin{minted}[frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-Process | Where-Object { $_.Id -lt 2000 -and $_.ws -lt 100MB}
|
|
||||||
\end{minted}
|
|
||||||
\\\\Antwort: \\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2b (4 Punkte, 1 Punkt pro Zeile)}} - Pipelineausdruck\\\\
|
|
||||||
Nachfolgend ist eine Pipelineausdruck gegeben. Geben sie bei jeder Zeile an, was genau gemacht wird.\\\\
|
|
||||||
\vspace{9pt}
|
|
||||||
\begin{minted}[linenos=true,frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-ChildItem "C:\" -r
|
|
||||||
| Where-Object { $_.Name -like "*alt*" }
|
|
||||||
| Select-Object Name, Length
|
|
||||||
| Sort-Object Name
|
|
||||||
\end{minted}
|
|
||||||
\\
|
|
||||||
{\bf{Hinweise: }} Aus Platzgründen und zur Vereinfachung der Aufgabenstellung ist der Ausdruck auf mehrere Zeilen verteilt. Es versteht sich aber von selbst, dass dieser bei der Ausführung auf eine zusammenhängende Zeile gehört. Erklären sie exakt (auch Parameter beachten, usw.) und unmissverständlich.\\\\
|
|
||||||
Antwort: \\\\
|
|
||||||
1: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
2: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
3: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
4: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\\\
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2c (4 Punkte, Zeile 1 = 2 Punkte, Zeile 2 und 3 je 1 Punkt)}} - Parameter validieren\\\\
|
|
||||||
Nachfolgen haben sie ein kleines Skript. Sie sollen den Skriptinhalt nun ergänzen, so dass folgende Punkte gewährleistet sind:
|
|
||||||
\begin{itemize}
|
|
||||||
\item \verb|str1| darf nur 2 bis 10 Zeichen lang sein
|
|
||||||
\item \verb|str2| darf nur 11 bis 20 Zeichen lang sein
|
|
||||||
\item Auf den Zeilen 2 und 3 soll nach der Ausgabe (\emph{Die ... Zeichenkette ist: }) auch noch der Wert der entsprechenden Variable ausgegeben werden.
|
|
||||||
\end{itemize}
|
|
||||||
\begin{minted}[linenos=true,frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
param( [string] $str1, [string] $str2)
|
|
||||||
"Die erste Zeichenkette ist: "
|
|
||||||
"Die zweite Zeichenkette ist: "
|
|
||||||
\end{minted}
|
|
||||||
\\\\\\{\bf{Hinweise: }} Sie können ihre Lösung direkt in das Skript hineinschreiben. \\\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2d (2 Punkte)}} - Prozess abschiessen\\\\
|
|
||||||
Folgender Pipelineausdruck findet den Prozess mit den Namen snippingtool. Sie möchten diesen Prozess abschiessen (kill). Ergänzen sie den Ausdruck, so dass der Prozess abgeschossen wird. \\\\
|
|
||||||
\begin{minted}[frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-Process | Where-Object { $_.Name -eq "snippingtool" }
|
|
||||||
\end{minted}
|
|
||||||
\\\\{\bf{Hinweise: }} Sie können ihre Lösung direkt in den Ausdruck hineinschreiben. Es gibt mehrere korrekte Lösungen.\\\\
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 3 - Programmieraufgaben}}}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3a (3 Punkte)}} - Exe Dateien finden\\\\
|
|
||||||
Formulieren sie einen Pipelineausdruck, welcher alle exe Dateien im Ordner \verb|C:\windows| (inkl. aller Unterordner) findet und die Suchresultate in der Datei \verb|C:\windows\resultate.txt| abspeichert.\\\\
|
|
||||||
Lösung:\\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3b (2 Punkte)}} - Prozesse finden\\\\
|
|
||||||
Finden sie alle laufenden Prozesse, welche mit dem Buchstaben s beginnen und aus insgesamt 6 Zeichen bestehen (Geben sie den Befehl an).\\\\
|
|
||||||
Lösung:\\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3c (13 Punkte)}} - Skript Zahlen\\\\
|
|
||||||
Schreiben sie ein Skript, welches folgende Punkte erfüllt:
|
|
||||||
\begin{itemize}
|
|
||||||
\item Drei Zahlen können über Parameter eingegeben werden. Die Parameter heissen \verb|z1|, \verb|z2| und \verb|z3| (2 Punkte)
|
|
||||||
\item Das Skript überprüft, ob \verb|z1| grösser, kleiner oder gleich gross ist wie \verb|z2| und gibt eine entsprechende Information aus (\emph{z1 ist grösser als z2}, usw.). (4 Punkte)
|
|
||||||
\item Das Skript berechnet den Durchschnitt aller drei Zahlen und gibt diesen aus (Durchschnitt = Summe aller Zahlen / Anzahl Zahlen) (2 Punkte)
|
|
||||||
\item Das Skript beinhaltet einen Array \verb|$infoArray| (5 Punkte) . Dieser Array soll 4 Werte abspeichern:
|
|
||||||
\begin{enumerate}
|
|
||||||
\item Summe der drei Zahlen (1P)
|
|
||||||
\item Summe der drei Zahlen negiert (alle Zahlen negativ machen und aufsummieren) (1P)
|
|
||||||
\item Durchschnitt (siehe vorherige Teilaufgabe) (1P)
|
|
||||||
\item Den Wert 1 falls \verb|z1| grösser als \verb|z2| ist, 0 falls gleich gross und -1 falls kleiner (Siehe auch 2. Teilaufgabe) (2P)
|
|
||||||
\end{enumerate}
|
|
||||||
Die Werte sollen in der angegebenen Reihenfolge abgespeichert werden. D.h. an der Stelle \verb|$infoArray[0]| befindet sich die Summe der drei Zahlen, usw.
|
|
||||||
\end{itemize}
|
|
||||||
Lösung (ganzes Skript hier aufschreiben) :
|
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k}{param}\PYGdefault{p}{(} \PYGdefault{n+no}{[string]} \PYGdefault{n+nv}{\PYGdefaultZdl{}str1}\PYGdefault{p}{,} \PYGdefault{n+no}{[string]} \PYGdefault{n+nv}{\PYGdefaultZdl{}str2}\PYGdefault{p}{)}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die erste Zeichenkette ist: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die zweite Zeichenkette ist: \PYGdefaultZdq{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,6 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}ChildItem} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}C:\PYGdefaultZbs{}\PYGdefaultZdq{}} \PYGdefault{n}{\PYGdefaultZhy{}r}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Name} \PYGdefault{o}{\PYGdefaultZhy{}like} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}*alt*\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Select\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}\PYGdefault{p}{,} \PYGdefault{n}{Length}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Sort\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n}{Get}\PYGdefault{o}{\PYGdefaultZhy{}}\PYGdefault{n}{Process} \PYGdefault{n}{t}\PYGdefault{o}{*}\PYGdefault{n}{e}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}lt} \PYGdefault{n}{2000} \PYGdefault{o}{\PYGdefaultZhy{}and} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{ws} \PYGdefault{o}{\PYGdefaultZhy{}lt} \PYGdefault{n}{100MB}\PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Name} \PYGdefault{o}{\PYGdefaultZhy{}eq} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}snippingtool\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,95 +0,0 @@
|
|||||||
|
|
||||||
\makeatletter
|
|
||||||
\def\PYGdefault@reset{\let\PYGdefault@it=\relax \let\PYGdefault@bf=\relax%
|
|
||||||
\let\PYGdefault@ul=\relax \let\PYGdefault@tc=\relax%
|
|
||||||
\let\PYGdefault@bc=\relax \let\PYGdefault@ff=\relax}
|
|
||||||
\def\PYGdefault@tok#1{\csname PYGdefault@tok@#1\endcsname}
|
|
||||||
\def\PYGdefault@toks#1+{\ifx\relax#1\empty\else%
|
|
||||||
\PYGdefault@tok{#1}\expandafter\PYGdefault@toks\fi}
|
|
||||||
\def\PYGdefault@do#1{\PYGdefault@bc{\PYGdefault@tc{\PYGdefault@ul{%
|
|
||||||
\PYGdefault@it{\PYGdefault@bf{\PYGdefault@ff{#1}}}}}}}
|
|
||||||
\def\PYGdefault#1#2{\PYGdefault@reset\PYGdefault@toks#1+\relax+\PYGdefault@do{#2}}
|
|
||||||
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gu\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gs\endcsname{\let\PYGdefault@bf=\textbf}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cm\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vg\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@m\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@go\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ge\endcsname{\let\PYGdefault@it=\textit}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@il\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cs\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gh\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ni\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nl\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@no\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ne\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@si\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s2\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nt\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nv\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s1\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kd\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sx\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@bp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c1\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@err\endcsname{\def\PYGdefault@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ss\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mo\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gp\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@o\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kr\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@w\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ow\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@k\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@se\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sd\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
|
|
||||||
\def\PYGdefaultZbs{\char`\\}
|
|
||||||
\def\PYGdefaultZus{\char`\_}
|
|
||||||
\def\PYGdefaultZob{\char`\{}
|
|
||||||
\def\PYGdefaultZcb{\char`\}}
|
|
||||||
\def\PYGdefaultZca{\char`\^}
|
|
||||||
\def\PYGdefaultZam{\char`\&}
|
|
||||||
\def\PYGdefaultZlt{\char`\<}
|
|
||||||
\def\PYGdefaultZgt{\char`\>}
|
|
||||||
\def\PYGdefaultZsh{\char`\#}
|
|
||||||
\def\PYGdefaultZpc{\char`\%}
|
|
||||||
\def\PYGdefaultZdl{\char`\$}
|
|
||||||
\def\PYGdefaultZhy{\char`\-}
|
|
||||||
\def\PYGdefaultZsq{\char`\'}
|
|
||||||
\def\PYGdefaultZdq{\char`\"}
|
|
||||||
\def\PYGdefaultZti{\char`\~}
|
|
||||||
% for compatibility with earlier versions
|
|
||||||
\def\PYGdefaultZat{@}
|
|
||||||
\def\PYGdefaultZlb{[}
|
|
||||||
\def\PYGdefaultZrb{]}
|
|
||||||
\makeatother
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{o}{[]} \PYGdefault{n}{fourNumbers} \PYGdefault{o}{=} \PYGdefault{k}{new} \PYGdefault{k+kt}{int}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{4}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{n}{ende} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{4}\PYGdefault{o}{;}
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{n}{index} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{;}
|
|
||||||
|
|
||||||
\PYGdefault{k}{do}\PYGdefault{o}{\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{fourNumbers}\PYGdefault{o}{[}\PYGdefault{n}{index}\PYGdefault{o}{]} \PYGdefault{o}{=} \PYGdefault{n}{index}\PYGdefault{o}{;}
|
|
||||||
\PYGdefault{n}{index}\PYGdefault{o}{++;}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}\PYGdefault{k}{while}\PYGdefault{o}{(}\PYGdefault{n}{index} \PYGdefault{o}{!=} \PYGdefault{n}{ende}\PYGdefault{o}{)}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kd}{public} \PYGdefault{k+kd}{static} \PYGdefault{k+kt}{void} \PYGdefault{n+nf}{main}\PYGdefault{o}{(}\PYGdefault{n}{String}\PYGdefault{o}{[]} \PYGdefault{n}{args}\PYGdefault{o}{)}
|
|
||||||
\end{Verbatim}
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{double}\PYGdefault{o}{[][]} \PYGdefault{n}{coordinates} \PYGdefault{o}{=}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZob{}\PYGdefaultZob{}}\PYGdefault{l+s}{\PYGdefaultZdq{}34.3433 \PYGdefaultZdq{}}\PYGdefault{o}{,} \PYGdefault{l+s}{\PYGdefaultZdq{}56.34534\PYGdefaultZdq{}}\PYGdefault{o}{\PYGdefaultZcb{},}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZob{}}\PYGdefault{l+s}{\PYGdefaultZdq{}33.2342\PYGdefaultZdq{}}\PYGdefault{o}{,} \PYGdefault{l+s}{\PYGdefaultZdq{}60.34544\PYGdefaultZdq{}}\PYGdefault{o}{\PYGdefaultZcb{}\PYGdefaultZcb{};}
|
|
||||||
\end{Verbatim}
|
|
@ -1,7 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{o}{[]} \PYGdefault{n}{noten} \PYGdefault{o}{=} \PYGdefault{o}{\PYGdefaultZob{}}\PYGdefault{l+m+mf}{6.0}\PYGdefault{o}{,} \PYGdefault{l+m+mi}{3}\PYGdefault{o}{,} \PYGdefault{l+m+mf}{5.5}\PYGdefault{o}{,} \PYGdefault{l+m+mf}{4.5}\PYGdefault{o}{,} \PYGdefault{l+m+mi}{5}\PYGdefault{o}{\PYGdefaultZcb{};}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{i} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{\PYGdefaultZlt{}=}\PYGdefault{n}{noten}\PYGdefault{o}{.}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{durchschnitt} \PYGdefault{o}{+=} \PYGdefault{n}{noten}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{n}{System}\PYGdefault{o}{.}\PYGdefault{n+na}{out}\PYGdefault{o}{.}\PYGdefault{n+na}{println}\PYGdefault{o}{(}\PYGdefault{l+s}{\PYGdefaultZdq{}Notendurchschnitt: \PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{durchschnitt} \PYGdefault{o}{/} \PYGdefault{o}{(}\PYGdefault{n}{noten}\PYGdefault{o}{.}\PYGdefault{n+na}{length} \PYGdefault{o}{\PYGdefaultZhy{}} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{));}
|
|
||||||
\end{Verbatim}
|
|
@ -1,13 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{double} \PYGdefault{o}{[][]} \PYGdefault{n}{coordinates} \PYGdefault{o}{=} \PYGdefault{k}{new} \PYGdefault{k+kt}{double}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{10}\PYGdefault{o}{][}\PYGdefault{l+m+mi}{2}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{c+cm}{/**}
|
|
||||||
\PYGdefault{c+cm}{** Array wird mit zufaelligen Koordinaten gefuellt, zB.}
|
|
||||||
\PYGdefault{c+cm}{** 34.53434 und 56.9345 Laengen\PYGdefaultZhy{} und Breitengrad}
|
|
||||||
\PYGdefault{c+cm}{**/}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{i} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{0}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{\PYGdefaultZlt{}}\PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{0}\PYGdefault{o}{].}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{y} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{0}\PYGdefault{o}{;} \PYGdefault{n}{y} \PYGdefault{o}{\PYGdefaultZlt{}} \PYGdefault{n}{coordinates}\PYGdefault{o}{.}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{y}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{System}\PYGdefault{o}{.}\PYGdefault{n+na}{out}\PYGdefault{o}{.}\PYGdefault{n+na}{println}\PYGdefault{o}{(}\PYGdefault{l+s}{\PYGdefaultZdq{}Die coordinaten Nr.\PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{i} \PYGdefault{o}{+} \PYGdefault{l+s}{\PYGdefaultZdq{} lauten: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{o}{+} \PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{][}\PYGdefault{n}{y}\PYGdefault{o}{]} \PYGdefault{o}{+} \PYGdefault{l+s}{\PYGdefaultZdq{} und: \PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{][}\PYGdefault{n}{y}\PYGdefault{o}{]);}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,95 +0,0 @@
|
|||||||
|
|
||||||
\makeatletter
|
|
||||||
\def\PYGdefault@reset{\let\PYGdefault@it=\relax \let\PYGdefault@bf=\relax%
|
|
||||||
\let\PYGdefault@ul=\relax \let\PYGdefault@tc=\relax%
|
|
||||||
\let\PYGdefault@bc=\relax \let\PYGdefault@ff=\relax}
|
|
||||||
\def\PYGdefault@tok#1{\csname PYGdefault@tok@#1\endcsname}
|
|
||||||
\def\PYGdefault@toks#1+{\ifx\relax#1\empty\else%
|
|
||||||
\PYGdefault@tok{#1}\expandafter\PYGdefault@toks\fi}
|
|
||||||
\def\PYGdefault@do#1{\PYGdefault@bc{\PYGdefault@tc{\PYGdefault@ul{%
|
|
||||||
\PYGdefault@it{\PYGdefault@bf{\PYGdefault@ff{#1}}}}}}}
|
|
||||||
\def\PYGdefault#1#2{\PYGdefault@reset\PYGdefault@toks#1+\relax+\PYGdefault@do{#2}}
|
|
||||||
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gu\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gs\endcsname{\let\PYGdefault@bf=\textbf}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cm\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vg\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@m\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@go\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ge\endcsname{\let\PYGdefault@it=\textit}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@il\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cs\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gh\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ni\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nl\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@no\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ne\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@si\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s2\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nt\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nv\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s1\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kd\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sx\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@bp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c1\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@err\endcsname{\def\PYGdefault@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ss\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mo\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gp\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@o\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kr\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@w\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ow\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@k\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@se\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sd\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
|
|
||||||
\def\PYGdefaultZbs{\char`\\}
|
|
||||||
\def\PYGdefaultZus{\char`\_}
|
|
||||||
\def\PYGdefaultZob{\char`\{}
|
|
||||||
\def\PYGdefaultZcb{\char`\}}
|
|
||||||
\def\PYGdefaultZca{\char`\^}
|
|
||||||
\def\PYGdefaultZam{\char`\&}
|
|
||||||
\def\PYGdefaultZlt{\char`\<}
|
|
||||||
\def\PYGdefaultZgt{\char`\>}
|
|
||||||
\def\PYGdefaultZsh{\char`\#}
|
|
||||||
\def\PYGdefaultZpc{\char`\%}
|
|
||||||
\def\PYGdefaultZdl{\char`\$}
|
|
||||||
\def\PYGdefaultZhy{\char`\-}
|
|
||||||
\def\PYGdefaultZsq{\char`\'}
|
|
||||||
\def\PYGdefaultZdq{\char`\"}
|
|
||||||
\def\PYGdefaultZti{\char`\~}
|
|
||||||
% for compatibility with earlier versions
|
|
||||||
\def\PYGdefaultZat{@}
|
|
||||||
\def\PYGdefaultZlb{[}
|
|
||||||
\def\PYGdefaultZrb{]}
|
|
||||||
\makeatother
|
|
||||||
|
|
BIN
m122/LB1/Pruefung1c/.DS_Store
vendored
@ -1,346 +0,0 @@
|
|||||||
\documentclass[a4paper,11pt]{report}
|
|
||||||
%\usepackage{isolatin1}
|
|
||||||
%\usepackage{german}
|
|
||||||
\usepackage{float}
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{lastpage}
|
|
||||||
\usepackage{fancyhdr}
|
|
||||||
\usepackage{soul}
|
|
||||||
|
|
||||||
\usepackage{lmodern} % Latin Modern
|
|
||||||
|
|
||||||
\usepackage[ngerman]{babel, translator}
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage{amssymb}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[ngerman]{babel, translator}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[utf8x]{inputenc}
|
|
||||||
\usepackage[left=2.5cm,top=2cm,right=2cm,bottom=4cm]{geometry}
|
|
||||||
|
|
||||||
%Code listings
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{minted}
|
|
||||||
\usepackage{etoolbox}
|
|
||||||
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
|
|
||||||
|
|
||||||
|
|
||||||
\usepackage[]{hyperref}
|
|
||||||
\hypersetup{
|
|
||||||
linkcolor=blue,
|
|
||||||
pagecolor= blue,
|
|
||||||
urlcolor= blue,
|
|
||||||
colorlinks=true,
|
|
||||||
pdfborder=0 0 0
|
|
||||||
}
|
|
||||||
\usepackage[
|
|
||||||
nonumberlist, %keine Seitenzahlen anzeigen
|
|
||||||
acronym, %ein Abk<62>rzungsverzeichnis erstellen
|
|
||||||
toc, %Eintr<EFBFBD>ge im Inhaltsverzeichnis
|
|
||||||
section] %im Inhaltsverzeichnis auf section-Ebene erscheinen
|
|
||||||
{glossaries}
|
|
||||||
|
|
||||||
|
|
||||||
\usepackage{hyperref}
|
|
||||||
|
|
||||||
%Ein eigenes Symbolverzeichnis erstellen
|
|
||||||
\newglossary[slg]{symbolslist}{syi}{syg}{Symbolverzeichnis}
|
|
||||||
|
|
||||||
%Den Punkt am Ende jeder Beschreibung deaktivieren
|
|
||||||
\renewcommand*{\glspostdescription}{}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%Glossar-Befehle anschalten
|
|
||||||
\makeglossaries
|
|
||||||
|
|
||||||
%Diese Befehle sortieren die Eintr<74>ge in den
|
|
||||||
%einzelnen Listen:
|
|
||||||
%makeindex -s datei.ist -t datei.alg -o datei.acr datei.acn
|
|
||||||
%makeindex -s datei.ist -t datei.glg -o datei.gls datei.glo
|
|
||||||
%makeindex -s datei.ist -t datei.slg -o datei.syi datei.syg
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% define acronyms here
|
|
||||||
\newacronym{PDF}{PDF}{Portable Document Format}
|
|
||||||
\newacronym{APDU}{APDU}{Application Protocol Data Unit}
|
|
||||||
\newacronym{AGPL}{AGPL}{Affero General Public License}
|
|
||||||
\newacronym{GPL}{GPL}{General Public License}
|
|
||||||
\newacronym{LGPL}{LGPL}{Lesser General Public License}
|
|
||||||
|
|
||||||
|
|
||||||
\newacronym{DCT}{DCT}{Discrete Cosine Transform}
|
|
||||||
\newacronym{TTA}{TTA}{Trusted Timestamp Authority}
|
|
||||||
\newacronym{OCSP}{OCSP}{Online Certificate Status Protocol}
|
|
||||||
\newacronym{PKI}{PKI}{Public Key Infrastructure}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%\newacronym{BDD}{BDD}{Behaviour Driven Development\protect\glsadd{glos:BDD}}
|
|
||||||
|
|
||||||
\newglossaryentry{Application Protocol Data Unit}
|
|
||||||
{
|
|
||||||
name={Application Protocol Data Unit},
|
|
||||||
description={blablabla}
|
|
||||||
}
|
|
||||||
|
|
||||||
\newglossaryentry{Copyleft}
|
|
||||||
{
|
|
||||||
name={Copyleft},
|
|
||||||
description={The copyleft ist the obligation required by the GLP (or AGPL) license to offer the source code of a work (and every derivative of it) to the public (open source). Copy{\bf{left}} can also be considered as the opposite of copy{\bf{right}}. }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
%Befehle f<>r Glossar
|
|
||||||
|
|
||||||
\usepackage{helvet}
|
|
||||||
\renewcommand{\familydefault}{\sfdefault}
|
|
||||||
|
|
||||||
\renewcommand\contentsname{Inhaltsverzeichnis}
|
|
||||||
|
|
||||||
|
|
||||||
%Einstellungen f??r code listings
|
|
||||||
\lstset{inputencoding=utf8, language=Java,tabsize=2, basicstyle=\small,breaklines=true,showstringspaces=false}
|
|
||||||
\pagestyle{fancy}
|
|
||||||
\setlength{\headheight}{38pt}
|
|
||||||
\setlength{\headwidth}{470pt}
|
|
||||||
\renewcommand{\headrule}{\hskip -\leftskip{\bf \quad \quad}\vbox to 5pt{\hbox to 455pt{\hrulefill}}}
|
|
||||||
\renewcommand{\footrule}{\hskip-\leftskip{\bf \quad \quad}{\hbox to 450 pt{\hrulefill}\newline}}
|
|
||||||
\fancyhf{}
|
|
||||||
\fancyheadoffset[L]{1cm}
|
|
||||||
\fancyfootoffset[L]{1cm}
|
|
||||||
%Kopfzeile links bzw. innen
|
|
||||||
\fancyhead[L]{\includegraphics[height=0.6in]{img/bfsulogo.jpg}}
|
|
||||||
%Kopfzeile mittig
|
|
||||||
\fancyhead[C]{}
|
|
||||||
%Kopfzeile rechts bzw. au??????????<3F>?en
|
|
||||||
\fancyhead[R]{\hspace{10pt} \\M122 - Prüfung 1\\ M.Bischof\rightmark }
|
|
||||||
\fancyheadoffset[L]{1cm}
|
|
||||||
\fancyfootoffset[L]{1cm}
|
|
||||||
%Linie oben
|
|
||||||
\renewcommand{\headrulewidth}{0.7pt}
|
|
||||||
%Fu??????????<3F>?zeile mittig
|
|
||||||
\cfoot{\vspace*{6mm}page:\ \thepage\ of \pageref{LastPage}}
|
|
||||||
\fancyfoot[R]{}
|
|
||||||
% footnote in footer
|
|
||||||
\newcommand{\fancyfootnotetext}[2]{%
|
|
||||||
\fancypagestyle{dingens}{%
|
|
||||||
\fancyfoot[LO,RE]{\parbox{12cm}{\footnotemark[#1]\footnotesize #2}}%
|
|
||||||
}%
|
|
||||||
\thispagestyle{dingens}%
|
|
||||||
}
|
|
||||||
%Linie unten
|
|
||||||
\renewcommand{\footrulewidth}{0.5pt}
|
|
||||||
|
|
||||||
\vspace*{15mm}
|
|
||||||
\textwidth 450pt
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\setcounter{tocdepth}{5}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%\thispagestyle{empty}
|
|
||||||
|
|
||||||
\begin{center}
|
|
||||||
|
|
||||||
\vspace{48pt}
|
|
||||||
|
|
||||||
|
|
||||||
\vspace{15pt}
|
|
||||||
\begin{huge}
|
|
||||||
M122 - Powershell - Prüfung 1 Serie c
|
|
||||||
\end{huge}
|
|
||||||
\vspace{10pt}\\
|
|
||||||
\begin{quote}
|
|
||||||
\end{quote}
|
|
||||||
|
|
||||||
\vspace{20pt}
|
|
||||||
{\bf{Erlaubte Hilfsmittel :}}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Alle Hilfsmittel ausser Netzwerkkommunikation ({\bf{LAN-Kabel entfernen!}})
|
|
||||||
\end{itemize}
|
|
||||||
{\bf{Generell nicht erlaubt ist:}}
|
|
||||||
\begin{itemize}
|
|
||||||
\item Abschreiben von der Nachbarprüfung oder Weitergeben von Prüfungen/Prüfungsresultaten innerhalb der Klasse. Kommunikation über Handy oder Computernetzwerk.
|
|
||||||
\end{itemize}
|
|
||||||
Jeglicher Verstoss gegen diese Regeln führt umgehend zum Ausschluss aus der Prüfung und der Note 1.
|
|
||||||
\vspace{30pt}
|
|
||||||
\\
|
|
||||||
Name: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\hspace{30pt}
|
|
||||||
Klasse: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\vspace{50pt}
|
|
||||||
Datum: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
\begin{tabular}{||p{3 cm}@{}|c|r||}
|
|
||||||
& & \\
|
|
||||||
Aufgabe & max. Punkte & erreichte Punkte \\
|
|
||||||
& & \\
|
|
||||||
|
|
||||||
1a & 1 & \\
|
|
||||||
1b & 1 & \\
|
|
||||||
1c & 1 & \\
|
|
||||||
1d & 1 & \\
|
|
||||||
1e & 1 & \\
|
|
||||||
|
|
||||||
2a & 4 & \\
|
|
||||||
2b & 2 & \\
|
|
||||||
2c & 2 & \\
|
|
||||||
2d & 4 & \\
|
|
||||||
|
|
||||||
3a & 2 & \\
|
|
||||||
3b & 3 & \\
|
|
||||||
3c & 8 & \\
|
|
||||||
3d & 7 & \\
|
|
||||||
|
|
||||||
|
|
||||||
& & \\
|
|
||||||
Total & 37 & \\
|
|
||||||
|
|
||||||
\end{tabular}
|
|
||||||
\end{center}
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 1 - Kurzaufgaben}}}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 1a (1 Punkt)}} Verzeichnisinhalt auflisten -
|
|
||||||
Kreuzen sie {\bf{alle richtigen Aussagen}} an.\\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Mit welchen Befehlen können sie den Inhalt eines Verzeichnisses auflisten? \\
|
|
||||||
\begin{itemize}
|
|
||||||
\item \verb|Get-ChildItem| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|Get-Children| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|Get-Child| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item \verb|dir| \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
{\bf{Aufgabe - 1b (1 Punkt)}} Wildcards -
|
|
||||||
Kreuzen sie {\bf{die richtige Aussage}} an \\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Wofür steht das \verb|?|-Zeichen in Verbindung mit einem Commandlet?
|
|
||||||
\begin{itemize}
|
|
||||||
\item Beliebige viele Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item 0 oder beliebig viele Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item genau 1 beliebiges Zeichen \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Dieses Zeichen kann man mit Commandlets nicht verwenden \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1c (1 Punkt)}} [abc]* -
|
|
||||||
Kreuzen sie {\bf{die richtige Aussage}} an \\ {\small(pro fehlende richtige oder falsche angekreuzte Aussage 1 Punkt Abzug)} \\\\ Was bedeutet [abc]* in der Verwendung mit einem Commandlet?\begin{itemize}
|
|
||||||
\item Es muss zu Beginn {\bf{genau}} der Zeichenfolge \verb|abc| entsprechen, danach dürfen beliebig viele Zeichen kommen. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Dies ist eine Auswahl. Es dürfen zu Beginn die Zeichen \verb|a, b| oder \verb|c| vorkommen, aber jeweils nur eines davon. Danach dürfen beliebig viele Zeichen kommen. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\item Es dürfen beliebig viele Kombinationen aus den Zeichen \verb|a, b| und \verb|c| kommen, also zB. \verb|ab|, \verb|bac|, \verb|aaa|, usw. \makebox[4pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$ $}
|
|
||||||
\end{itemize}
|
|
||||||
\vspace{9pt}
|
|
||||||
\noindent{\bf{Aufgabe - 1d (1 Punkt)}} - Get-Process -
|
|
||||||
Was macht folgendes Commandlet?
|
|
||||||
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
||||||
\begin{minted}[frame=none,mathescape]{java}
|
|
||||||
Get-Process s*e
|
|
||||||
\end{minted}
|
|
||||||
Antwort: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\
|
|
||||||
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\newpage
|
|
||||||
\noindent{\bf{Aufgabe - 1e (1 Punkt)}} - Alias -
|
|
||||||
Geben sie den Befehl an, welcher ein Alias \verb|editor| auf das Programm \verb|notepad.exe| erstellt.\\\\
|
|
||||||
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
||||||
Antwort: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
\vspace{20pt}
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 2 - Codestücke}}}\\
|
|
||||||
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2a (4 Punkte, 1 Punkt pro Zeile)}} - Pipelineausdruck\\\\
|
|
||||||
Nachfolgend ist eine Pipelineausdruck gegeben. Geben sie bei jeder Zeile an, was genau gemacht wird.\\\\
|
|
||||||
\vspace{9pt}
|
|
||||||
\begin{minted}[linenos=true,frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-ChildItem "C:\" -r
|
|
||||||
| Where-Object { $_.Name -like "*pic*" }
|
|
||||||
| Select-Object Name, Length
|
|
||||||
| Sort-Object Length
|
|
||||||
\end{minted}
|
|
||||||
\\
|
|
||||||
{\bf{Hinweise: }} Aus Platzgründen und zur Vereinfachung der Aufgabenstellung ist der Ausdruck auf mehrere Zeilen verteilt. Es versteht sich aber von selbst, dass dieser bei der Ausführung auf eine zusammenhängende Zeile gehört. Erklären sie exakt (auch Parameter beachten, usw.) und unmissverständlich.\\\\
|
|
||||||
Antwort: \\\\
|
|
||||||
1: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
2: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
3: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
4: \texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\\\
|
|
||||||
\noindent{\bf{Aufgabe - 2b (2 Punkte)}} - Pipelineausdruck\\\\
|
|
||||||
Erklären sie in Ihren eigenen Worten, was folgeder Pipelineausdruck macht:\\\\
|
|
||||||
\begin{minted}[frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-Process | Where-Object { $_.Id -gt 500 -and $_.ws -gt 50MB}
|
|
||||||
\end{minted}
|
|
||||||
\\\\Antwort: \\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\
|
|
||||||
\newpage
|
|
||||||
\noindent{\bf{Aufgabe - 2c (2 Punkte)}} - Prozess abschiessen\\\\
|
|
||||||
Folgender Pipelineausdruck findet den Prozess mit der Id 1234. Sie möchten diesen Prozess abschiessen (kill). Ergänzen sie den Ausdruck, so dass der Prozess abgeschossen wird. \\\\
|
|
||||||
\begin{minted}[frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
Get-Process | Where-Object { $_.Id -eq "1234" }
|
|
||||||
\end{minted}
|
|
||||||
\\\\{\bf{Hinweise: }} Sie können ihre Lösung direkt in den Ausdruck hineinschreiben. Es gibt mehrere korrekte Lösungen.\\\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 2d (4 Punkte, Zeile 1 = 2 Punkte, Zeile 2 und 3 je 1 Punkt)}} - Parameter validieren\\\\
|
|
||||||
Nachfolgen haben sie ein kleines Skript. Sie sollen den Skriptinhalt nun ergänzen, so dass folgende Punkte gewährleistet sind:
|
|
||||||
\begin{itemize}
|
|
||||||
\item \verb|zahl1| kann nur Werte von 10 bis 1000 annehmen
|
|
||||||
\item \verb|zahl2| kann nur Werte von -1000 bis 10 annehmen
|
|
||||||
\item Auf den Zeilen 2 und 3 soll nach der Ausgabe (\emph{Die ... Zahl ist: }) auch noch der Wert der entsprechenden Variable ausgegeben werden
|
|
||||||
\end{itemize}
|
|
||||||
\begin{minted}[linenos=true,frame=none,mathescape,bgcolor=bg]{powershell}
|
|
||||||
param( [int] $zahl1, [int] $zahl2)
|
|
||||||
"Die erste Zahl ist: "
|
|
||||||
"Die zweite Zahl ist: "
|
|
||||||
\end{minted}
|
|
||||||
\\\\\\{\bf{Hinweise: }} Sie können ihre Lösung direkt in das Skript hineinschreiben. \\\\
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\noindent {\Large{\bf{Teil 3 - Programmieraufgaben}}}\\
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3a (2 Punkte)}} - Prozesse finden\\\\
|
|
||||||
Finden sie alle laufenden Prozesse, welche mit dem Buchstaben e enden und aus insgesamt exakt 8 Zeichen bestehen (Geben sie den Befehl an).\\\\
|
|
||||||
Lösung:\\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}\\\\\\
|
|
||||||
\noindent{\bf{Aufgabe - 3b (3 Punkte)}} - dll Dateien finden\\\\
|
|
||||||
Formulieren sie einen Pipelineausdruck, welcher alle .dll Dateien im Ordner \verb|C:\windows| (inkl. aller Unterordner) findet und die Suchresultate in der Datei \verb|C:\windows\resultate.txt| abspeichert.\\\\
|
|
||||||
Lösung:\\
|
|
||||||
\texttt{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\noindent{\bf{Aufgabe - 3c (8 Punkte)}} - Skript Zahlen\\\\
|
|
||||||
Schreiben sie ein Skript, welches folgende Punkte erfüllt:
|
|
||||||
\begin{itemize}
|
|
||||||
\item Drei Zahlen können über Parameter eingegeben werden. Die Parameter heissen \verb|z1|, \verb|z2| und \verb|z3| (2 Punkte)
|
|
||||||
\item Das Skript überprüft, ob \verb|z1| grösser, kleiner oder gleich gross ist wie \verb|z2| und gibt eine entsprechende Information aus (\emph{z1 ist grösser als z2}, usw.). (4 Punkte)
|
|
||||||
\item Das Skript berechnet den Durchschnitt aller drei Zahlen und gibt diesen aus (Durchschnitt = Summe aller Zahlen / Anzahl Zahlen) (2 Punkte)
|
|
||||||
\end{itemize}
|
|
||||||
Lösung (ganzes Skript hier aufschreiben) :
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
\noindent{\bf{Aufgabe - 3d (7 Punkte)}} - Skript Schleife\\\\
|
|
||||||
Schreiben sie ein Skript, welches folgende Punkte erfüllt:
|
|
||||||
\begin{itemize}
|
|
||||||
\item Eine Zahl kann via Parameter eingegeben werden. Der Parameter heisst \verb|zahl| (1 Punkt)
|
|
||||||
\item Das Skript beinhaltet eine for-Schleife. Die for-schleife läuft von 0 bis \verb|zahl1 - 1|, die Schrittweite ist 1 (3 Punkte)
|
|
||||||
\item Innerhalb der Schleife wird jeweils die aktuelle Uhrzeit angezeigt und eine Sekunde lang gewartet (3 Punkte)
|
|
||||||
\end{itemize}
|
|
||||||
Lösung (ganzes Skript hier aufschreiben) :
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}ChildItem} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}C:\PYGdefaultZbs{}\PYGdefaultZdq{}} \PYGdefault{n}{\PYGdefaultZhy{}r}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Name} \PYGdefault{o}{\PYGdefaultZhy{}like} \PYGdefault{p}{*}\PYGdefault{n}{pic}\PYGdefault{p}{*} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Select\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}\PYGdefault{p}{,} \PYGdefault{n}{Length}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Sort\PYGdefaultZhy{}Object} \PYGdefault{n}{Length}
|
|
||||||
\end{Verbatim}
|
|
@ -1,6 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}ChildItem} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}C:\PYGdefaultZbs{}Program Files\PYGdefaultZbs{}\PYGdefaultZdq{}} \PYGdefault{n}{\PYGdefaultZhy{}r} \PYGdefault{n}{\PYGdefaultZhy{}filter} \PYGdefault{p}{*.}\PYGdefault{n}{jpg} \PYGdefault{err}{‘}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Length} \PYGdefault{o}{\PYGdefaultZhy{}lt} \PYGdefault{n}{30000} \PYGdefault{p}{\PYGdefaultZcb{}} \PYGdefault{err}{‘}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Select\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}\PYGdefault{p}{,} \PYGdefault{n}{Length} \PYGdefault{err}{‘}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Sort\PYGdefaultZhy{}Object} \PYGdefault{n}{Name} \PYGdefault{err}{‘}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}gt} \PYGdefault{n}{500} \PYGdefault{o}{\PYGdefaultZhy{}and} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{ws} \PYGdefault{o}{\PYGdefaultZhy{}gt} \PYGdefault{n}{50MB}\PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n}{Get}\PYGdefault{o}{\PYGdefaultZhy{}}\PYGdefault{n}{Process} \PYGdefault{n}{s}\PYGdefault{o}{*}\PYGdefault{n}{e}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}eq} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}1234\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k}{param}\PYGdefault{p}{(} \PYGdefault{n+no}{[int]} \PYGdefault{n+nv}{\PYGdefaultZdl{}zahl1}\PYGdefault{p}{,} \PYGdefault{n+no}{[int]} \PYGdefault{n+nv}{\PYGdefaultZdl{}zahl2}\PYGdefault{p}{)}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die erste Zahl ist: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die zweite Zahl ist: \PYGdefaultZdq{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
|
|
||||||
\end{Verbatim}
|
|
@ -1,95 +0,0 @@
|
|||||||
|
|
||||||
\makeatletter
|
|
||||||
\def\PYGdefault@reset{\let\PYGdefault@it=\relax \let\PYGdefault@bf=\relax%
|
|
||||||
\let\PYGdefault@ul=\relax \let\PYGdefault@tc=\relax%
|
|
||||||
\let\PYGdefault@bc=\relax \let\PYGdefault@ff=\relax}
|
|
||||||
\def\PYGdefault@tok#1{\csname PYGdefault@tok@#1\endcsname}
|
|
||||||
\def\PYGdefault@toks#1+{\ifx\relax#1\empty\else%
|
|
||||||
\PYGdefault@tok{#1}\expandafter\PYGdefault@toks\fi}
|
|
||||||
\def\PYGdefault@do#1{\PYGdefault@bc{\PYGdefault@tc{\PYGdefault@ul{%
|
|
||||||
\PYGdefault@it{\PYGdefault@bf{\PYGdefault@ff{#1}}}}}}}
|
|
||||||
\def\PYGdefault#1#2{\PYGdefault@reset\PYGdefault@toks#1+\relax+\PYGdefault@do{#2}}
|
|
||||||
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gu\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gs\endcsname{\let\PYGdefault@bf=\textbf}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cm\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vg\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@m\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@go\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ge\endcsname{\let\PYGdefault@it=\textit}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@il\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cs\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gh\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ni\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nl\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@no\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ne\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@si\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s2\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nt\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nv\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s1\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kd\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sx\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@bp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c1\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@err\endcsname{\def\PYGdefault@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ss\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mo\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gp\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@o\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kr\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@w\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ow\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@k\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@se\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sd\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
|
|
||||||
\def\PYGdefaultZbs{\char`\\}
|
|
||||||
\def\PYGdefaultZus{\char`\_}
|
|
||||||
\def\PYGdefaultZob{\char`\{}
|
|
||||||
\def\PYGdefaultZcb{\char`\}}
|
|
||||||
\def\PYGdefaultZca{\char`\^}
|
|
||||||
\def\PYGdefaultZam{\char`\&}
|
|
||||||
\def\PYGdefaultZlt{\char`\<}
|
|
||||||
\def\PYGdefaultZgt{\char`\>}
|
|
||||||
\def\PYGdefaultZsh{\char`\#}
|
|
||||||
\def\PYGdefaultZpc{\char`\%}
|
|
||||||
\def\PYGdefaultZdl{\char`\$}
|
|
||||||
\def\PYGdefaultZhy{\char`\-}
|
|
||||||
\def\PYGdefaultZsq{\char`\'}
|
|
||||||
\def\PYGdefaultZdq{\char`\"}
|
|
||||||
\def\PYGdefaultZti{\char`\~}
|
|
||||||
% for compatibility with earlier versions
|
|
||||||
\def\PYGdefaultZat{@}
|
|
||||||
\def\PYGdefaultZlb{[}
|
|
||||||
\def\PYGdefaultZrb{]}
|
|
||||||
\makeatother
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}ChildItem} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}C:\PYGdefaultZbs{}\PYGdefaultZdq{}} \PYGdefault{n}{\PYGdefaultZhy{}r}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Name} \PYGdefault{o}{\PYGdefaultZhy{}like} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}*pic*\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Select\PYGdefaultZhy{}Object} \PYGdefault{n}{Name}\PYGdefault{p}{,} \PYGdefault{n}{Length}
|
|
||||||
\PYGdefault{p}{|} \PYGdefault{n+nb}{Sort\PYGdefaultZhy{}Object} \PYGdefault{n}{Length}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}gt} \PYGdefault{n}{500} \PYGdefault{o}{\PYGdefaultZhy{}and} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{ws} \PYGdefault{o}{\PYGdefaultZhy{}gt} \PYGdefault{n}{50MB}\PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n}{Get}\PYGdefault{o}{\PYGdefaultZhy{}}\PYGdefault{n}{Process} \PYGdefault{n}{s}\PYGdefault{o}{*}\PYGdefault{n}{e}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{n+nb}{Get\PYGdefaultZhy{}Process} \PYGdefault{p}{|} \PYGdefault{n+nb}{Where\PYGdefaultZhy{}Object} \PYGdefault{p}{\PYGdefaultZob{}} \PYGdefault{n+nv}{\PYGdefaultZdl{}\PYGdefaultZus{}}\PYGdefault{p}{.}\PYGdefault{n}{Id} \PYGdefault{o}{\PYGdefaultZhy{}eq} \PYGdefault{l+s+s2}{\PYGdefaultZdq{}1234\PYGdefaultZdq{}} \PYGdefault{p}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k}{param}\PYGdefault{p}{(} \PYGdefault{n+no}{[int]} \PYGdefault{n+nv}{\PYGdefaultZdl{}zahl1}\PYGdefault{p}{,} \PYGdefault{n+no}{[int]} \PYGdefault{n+nv}{\PYGdefaultZdl{}zahl2}\PYGdefault{p}{)}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die erste Zahl ist: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{l+s+s2}{\PYGdefaultZdq{}Die zweite Zahl ist: \PYGdefaultZdq{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,95 +0,0 @@
|
|||||||
|
|
||||||
\makeatletter
|
|
||||||
\def\PYGdefault@reset{\let\PYGdefault@it=\relax \let\PYGdefault@bf=\relax%
|
|
||||||
\let\PYGdefault@ul=\relax \let\PYGdefault@tc=\relax%
|
|
||||||
\let\PYGdefault@bc=\relax \let\PYGdefault@ff=\relax}
|
|
||||||
\def\PYGdefault@tok#1{\csname PYGdefault@tok@#1\endcsname}
|
|
||||||
\def\PYGdefault@toks#1+{\ifx\relax#1\empty\else%
|
|
||||||
\PYGdefault@tok{#1}\expandafter\PYGdefault@toks\fi}
|
|
||||||
\def\PYGdefault@do#1{\PYGdefault@bc{\PYGdefault@tc{\PYGdefault@ul{%
|
|
||||||
\PYGdefault@it{\PYGdefault@bf{\PYGdefault@ff{#1}}}}}}}
|
|
||||||
\def\PYGdefault#1#2{\PYGdefault@reset\PYGdefault@toks#1+\relax+\PYGdefault@do{#2}}
|
|
||||||
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gu\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gs\endcsname{\let\PYGdefault@bf=\textbf}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cm\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vg\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@m\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@go\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ge\endcsname{\let\PYGdefault@it=\textit}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@il\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cs\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gh\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ni\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nl\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@no\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ne\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@si\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s2\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nt\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nv\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s1\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kd\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sx\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@bp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c1\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@err\endcsname{\def\PYGdefault@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ss\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mo\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gp\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@o\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kr\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@w\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ow\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@k\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@se\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sd\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
|
|
||||||
\def\PYGdefaultZbs{\char`\\}
|
|
||||||
\def\PYGdefaultZus{\char`\_}
|
|
||||||
\def\PYGdefaultZob{\char`\{}
|
|
||||||
\def\PYGdefaultZcb{\char`\}}
|
|
||||||
\def\PYGdefaultZca{\char`\^}
|
|
||||||
\def\PYGdefaultZam{\char`\&}
|
|
||||||
\def\PYGdefaultZlt{\char`\<}
|
|
||||||
\def\PYGdefaultZgt{\char`\>}
|
|
||||||
\def\PYGdefaultZsh{\char`\#}
|
|
||||||
\def\PYGdefaultZpc{\char`\%}
|
|
||||||
\def\PYGdefaultZdl{\char`\$}
|
|
||||||
\def\PYGdefaultZhy{\char`\-}
|
|
||||||
\def\PYGdefaultZsq{\char`\'}
|
|
||||||
\def\PYGdefaultZdq{\char`\"}
|
|
||||||
\def\PYGdefaultZti{\char`\~}
|
|
||||||
% for compatibility with earlier versions
|
|
||||||
\def\PYGdefaultZat{@}
|
|
||||||
\def\PYGdefaultZlb{[}
|
|
||||||
\def\PYGdefaultZrb{]}
|
|
||||||
\makeatother
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{o}{[]} \PYGdefault{n}{fourNumbers} \PYGdefault{o}{=} \PYGdefault{k}{new} \PYGdefault{k+kt}{int}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{4}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{n}{ende} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{4}\PYGdefault{o}{;}
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{n}{index} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{;}
|
|
||||||
|
|
||||||
\PYGdefault{k}{do}\PYGdefault{o}{\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{fourNumbers}\PYGdefault{o}{[}\PYGdefault{n}{index}\PYGdefault{o}{]} \PYGdefault{o}{=} \PYGdefault{n}{index}\PYGdefault{o}{;}
|
|
||||||
\PYGdefault{n}{index}\PYGdefault{o}{++;}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}\PYGdefault{k}{while}\PYGdefault{o}{(}\PYGdefault{n}{index} \PYGdefault{o}{!=} \PYGdefault{n}{ende}\PYGdefault{o}{)}
|
|
||||||
\end{Verbatim}
|
|
@ -1,3 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kd}{public} \PYGdefault{k+kd}{static} \PYGdefault{k+kt}{void} \PYGdefault{n+nf}{main}\PYGdefault{o}{(}\PYGdefault{n}{String}\PYGdefault{o}{[]} \PYGdefault{n}{args}\PYGdefault{o}{)}
|
|
||||||
\end{Verbatim}
|
|
@ -1,5 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{double}\PYGdefault{o}{[][]} \PYGdefault{n}{coordinates} \PYGdefault{o}{=}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZob{}\PYGdefaultZob{}}\PYGdefault{l+s}{\PYGdefaultZdq{}34.3433 \PYGdefaultZdq{}}\PYGdefault{o}{,} \PYGdefault{l+s}{\PYGdefaultZdq{}56.34534\PYGdefaultZdq{}}\PYGdefault{o}{\PYGdefaultZcb{},}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZob{}}\PYGdefault{l+s}{\PYGdefaultZdq{}33.2342\PYGdefaultZdq{}}\PYGdefault{o}{,} \PYGdefault{l+s}{\PYGdefaultZdq{}60.34544\PYGdefaultZdq{}}\PYGdefault{o}{\PYGdefaultZcb{}\PYGdefaultZcb{};}
|
|
||||||
\end{Verbatim}
|
|
@ -1,7 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{int} \PYGdefault{o}{[]} \PYGdefault{n}{noten} \PYGdefault{o}{=} \PYGdefault{o}{\PYGdefaultZob{}}\PYGdefault{l+m+mf}{6.0}\PYGdefault{o}{,} \PYGdefault{l+m+mi}{3}\PYGdefault{o}{,} \PYGdefault{l+m+mf}{5.5}\PYGdefault{o}{,} \PYGdefault{l+m+mf}{4.5}\PYGdefault{o}{,} \PYGdefault{l+m+mi}{5}\PYGdefault{o}{\PYGdefaultZcb{};}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{i} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{\PYGdefaultZlt{}=}\PYGdefault{n}{noten}\PYGdefault{o}{.}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{durchschnitt} \PYGdefault{o}{+=} \PYGdefault{n}{noten}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{n}{System}\PYGdefault{o}{.}\PYGdefault{n+na}{out}\PYGdefault{o}{.}\PYGdefault{n+na}{println}\PYGdefault{o}{(}\PYGdefault{l+s}{\PYGdefaultZdq{}Notendurchschnitt: \PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{durchschnitt} \PYGdefault{o}{/} \PYGdefault{o}{(}\PYGdefault{n}{noten}\PYGdefault{o}{.}\PYGdefault{n+na}{length} \PYGdefault{o}{\PYGdefaultZhy{}} \PYGdefault{l+m+mi}{1}\PYGdefault{o}{));}
|
|
||||||
\end{Verbatim}
|
|
@ -1,13 +0,0 @@
|
|||||||
\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}]
|
|
||||||
\PYGdefault{k+kt}{double} \PYGdefault{o}{[][]} \PYGdefault{n}{coordinates} \PYGdefault{o}{=} \PYGdefault{k}{new} \PYGdefault{k+kt}{double}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{10}\PYGdefault{o}{][}\PYGdefault{l+m+mi}{2}\PYGdefault{o}{];}
|
|
||||||
\PYGdefault{c+cm}{/**}
|
|
||||||
\PYGdefault{c+cm}{** Array wird mit zufaelligen Koordinaten gefuellt, zB.}
|
|
||||||
\PYGdefault{c+cm}{** 34.53434 und 56.9345 Laengen\PYGdefaultZhy{} und Breitengrad}
|
|
||||||
\PYGdefault{c+cm}{**/}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{i} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{0}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{\PYGdefaultZlt{}}\PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{l+m+mi}{0}\PYGdefault{o}{].}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{i}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{k}{for}\PYGdefault{o}{(}\PYGdefault{k+kt}{int} \PYGdefault{n}{y} \PYGdefault{o}{=} \PYGdefault{l+m+mi}{0}\PYGdefault{o}{;} \PYGdefault{n}{y} \PYGdefault{o}{\PYGdefaultZlt{}} \PYGdefault{n}{coordinates}\PYGdefault{o}{.}\PYGdefault{n+na}{length}\PYGdefault{o}{;} \PYGdefault{n}{y}\PYGdefault{o}{++)\PYGdefaultZob{}}
|
|
||||||
\PYGdefault{n}{System}\PYGdefault{o}{.}\PYGdefault{n+na}{out}\PYGdefault{o}{.}\PYGdefault{n+na}{println}\PYGdefault{o}{(}\PYGdefault{l+s}{\PYGdefaultZdq{}Die coordinaten Nr.\PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{i} \PYGdefault{o}{+} \PYGdefault{l+s}{\PYGdefaultZdq{} lauten: \PYGdefaultZdq{}}
|
|
||||||
\PYGdefault{o}{+} \PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{][}\PYGdefault{n}{y}\PYGdefault{o}{]} \PYGdefault{o}{+} \PYGdefault{l+s}{\PYGdefaultZdq{} und: \PYGdefaultZdq{}} \PYGdefault{o}{+} \PYGdefault{n}{coordinates}\PYGdefault{o}{[}\PYGdefault{n}{i}\PYGdefault{o}{][}\PYGdefault{n}{y}\PYGdefault{o}{]);}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\PYGdefault{o}{\PYGdefaultZcb{}}
|
|
||||||
\end{Verbatim}
|
|
@ -1,95 +0,0 @@
|
|||||||
|
|
||||||
\makeatletter
|
|
||||||
\def\PYGdefault@reset{\let\PYGdefault@it=\relax \let\PYGdefault@bf=\relax%
|
|
||||||
\let\PYGdefault@ul=\relax \let\PYGdefault@tc=\relax%
|
|
||||||
\let\PYGdefault@bc=\relax \let\PYGdefault@ff=\relax}
|
|
||||||
\def\PYGdefault@tok#1{\csname PYGdefault@tok@#1\endcsname}
|
|
||||||
\def\PYGdefault@toks#1+{\ifx\relax#1\empty\else%
|
|
||||||
\PYGdefault@tok{#1}\expandafter\PYGdefault@toks\fi}
|
|
||||||
\def\PYGdefault@do#1{\PYGdefault@bc{\PYGdefault@tc{\PYGdefault@ul{%
|
|
||||||
\PYGdefault@it{\PYGdefault@bf{\PYGdefault@ff{#1}}}}}}}
|
|
||||||
\def\PYGdefault#1#2{\PYGdefault@reset\PYGdefault@toks#1+\relax+\PYGdefault@do{#2}}
|
|
||||||
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gu\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gs\endcsname{\let\PYGdefault@bf=\textbf}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cm\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vg\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@m\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@go\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ge\endcsname{\let\PYGdefault@it=\textit}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@il\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cs\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@cp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gh\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ni\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nl\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@no\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nd\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ne\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@si\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s2\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@vi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nt\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@nv\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s1\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kd\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sh\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sc\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sx\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@bp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c1\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kc\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mf\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@err\endcsname{\def\PYGdefault@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ss\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sr\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mo\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kn\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@mi\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@gp\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@o\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kr\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@s\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kp\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@w\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@kt\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@ow\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sb\endcsname{\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@k\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@se\endcsname{\let\PYGdefault@bf=\textbf\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
|
|
||||||
\expandafter\def\csname PYGdefault@tok@sd\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
|
|
||||||
|
|
||||||
\def\PYGdefaultZbs{\char`\\}
|
|
||||||
\def\PYGdefaultZus{\char`\_}
|
|
||||||
\def\PYGdefaultZob{\char`\{}
|
|
||||||
\def\PYGdefaultZcb{\char`\}}
|
|
||||||
\def\PYGdefaultZca{\char`\^}
|
|
||||||
\def\PYGdefaultZam{\char`\&}
|
|
||||||
\def\PYGdefaultZlt{\char`\<}
|
|
||||||
\def\PYGdefaultZgt{\char`\>}
|
|
||||||
\def\PYGdefaultZsh{\char`\#}
|
|
||||||
\def\PYGdefaultZpc{\char`\%}
|
|
||||||
\def\PYGdefaultZdl{\char`\$}
|
|
||||||
\def\PYGdefaultZhy{\char`\-}
|
|
||||||
\def\PYGdefaultZsq{\char`\'}
|
|
||||||
\def\PYGdefaultZdq{\char`\"}
|
|
||||||
\def\PYGdefaultZti{\char`\~}
|
|
||||||
% for compatibility with earlier versions
|
|
||||||
\def\PYGdefaultZat{@}
|
|
||||||
\def\PYGdefaultZlb{[}
|
|
||||||
\def\PYGdefaultZrb{]}
|
|
||||||
\makeatother
|
|
||||||
|
|
BIN
m122/LB1/Pruefung1c/img/.DS_Store
vendored
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB |