aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMohit Agarwal <mohit.agarwal@sky.com>2021-10-09 19:07:24 +0100
committerMohit Agarwal <mohit.agarwal@sky.com>2021-10-09 19:07:24 +0100
commitcedb3eb5a58241d9d6079f07d5cd40e8ef81007d (patch)
treee5fb669e605395b18bb804d2493527bf671c5293 /tests
Initial commit. Started notes and data rep test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/1/Makefile11
-rw-r--r--tests/1/formatting.tex48
-rw-r--r--tests/1/paper.tex96
-rw-r--r--tests/1/questions.tex46
4 files changed, 201 insertions, 0 deletions
diff --git a/tests/1/Makefile b/tests/1/Makefile
new file mode 100755
index 0000000..024703d
--- /dev/null
+++ b/tests/1/Makefile
@@ -0,0 +1,11 @@
+default: build
+
+build:
+ ls target || mkdir target
+ cp *tex target
+ #cp -r images target
+ cd target && xelatex paper.tex
+clean:
+ rm -rf target
+read:
+ zathura target/paper.pdf&
diff --git a/tests/1/formatting.tex b/tests/1/formatting.tex
new file mode 100644
index 0000000..93af90f
--- /dev/null
+++ b/tests/1/formatting.tex
@@ -0,0 +1,48 @@
+\hyphenpenalty=10000
+\hbadness=10000
+
+\PassOptionsToPackage{hyphens}{url}
+\usepackage{titlesec}
+\usepackage{xcolor}
+\usepackage[top=1.3in, bottom=1.5in, right=1.7in, left=1.7in]{geometry}
+
+\usepackage[scale=0.82]{plex-mono}
+\usepackage{fontspec}
+\defaultfontfeatures{LetterSpace=1.05}
+\setmainfont{Sabon}
+
+\usepackage{titling}
+
+\setlength{\parskip}{0.5em}
+\renewcommand\refname{\bfseries Bibliography and references}
+
+\usepackage{hyperref}
+
+\hypersetup{
+ colorlinks,
+ citecolor=red,
+ filecolor=black,
+ linkcolor=teal,
+ urlcolor=teal
+}
+
+\newenvironment{myquote}
+{
+ \list{}
+ { \leftmargin=0.4in\rightmargin=0.4in}
+\item[]
+}
+{\endlist}
+
+\titleformat{\section}{\large\bfseries}{}{0em}{}
+
+
+
+\setlength{\droptitle}{-3cm}
+
+\pretitle{\vspace{0.3in}\begin{flushleft}\Large\bfseries}
+\posttitle{\par\end{flushleft}}
+\preauthor{\vspace{0.1in}\begin{flushleft}}
+\postauthor{\end{flushleft}}
+\predate{\begin{flushleft}}
+\postdate{\par\end{flushleft}}
diff --git a/tests/1/paper.tex b/tests/1/paper.tex
new file mode 100644
index 0000000..02bf96d
--- /dev/null
+++ b/tests/1/paper.tex
@@ -0,0 +1,96 @@
+\documentclass[12pt, addpoints]{exam}
+
+\hyphenpenalty=10000
+\hbadness=10000
+\widowpenalty=10000
+\clubpenalty=10000
+\sloppy
+
+\pagestyle{plain}
+\usepackage{titlesec}
+\usepackage{circuitikz}
+\usepackage{graphicx}
+\usepackage{svg}
+\usepackage[a4paper, right=1.5in, left=1.5in,
+top=0.5in, bottom=0.8in ]{geometry}
+\usepackage{lipsum}
+\usepackage{fix-cm}
+\usepackage{amsmath}
+
+\usepackage[scale=0.85]{plex-mono}
+\usepackage{plex-sans}
+
+\usepackage{fontspec}
+\defaultfontfeatures{LetterSpace=1.05}
+\setmainfont{Sabon}
+
+\ctikzset{resistor = european}
+
+\usetikzlibrary{calc,shapes.geometric,shapes.gates.logic.US,arrows}
+
+
+\setlength{\parskip}{0.5em}
+
+
+\PassOptionsToPackage{hyphens}{url}
+\usepackage{hyperref}
+\hypersetup{
+ colorlinks,
+ citecolor=black,
+ filecolor=black,
+ linkcolor=black,
+ urlcolor=black
+}
+
+\usepackage{titling}
+\newenvironment{myquote}{
+\list{}{\leftmargin=1in\rightmargin=0.6in}\item[]}%
+{\endlist}
+
+
+\setlength{\droptitle}{-3cm}
+
+\pretitle{\vspace{0.3in}\begin{flushleft}\Large\bfseries}
+\posttitle{\par\end{flushleft}}
+\preauthor{\vspace{0.1in}\begin{flushleft}}
+\postauthor{\end{flushleft}}
+\predate{\begin{flushleft}}
+\postdate{\par\end{flushleft}}
+
+\title{Computer Science Paper 1}
+\author{Mohit Agarwal}
+\date{2021}
+
+\begin{document}
+
+Computer Science Test: Data representation
+
+\vspace{5mm}
+\makebox[0.75\textwidth]{Name:\enspace\hrulefill}
+
+\vspace{5mm}
+\makebox[0.75\textwidth]{Instructor’s name:\enspace\hrulefill}
+
+\vspace{2cm}
+
+\begin{center}
+\gradetable[h][questions]
+\end{center}
+
+\vspace{2cm}
+
+\noindent Written by Mohit Agarwal (\url{https://mohit.uk}) for the
+Computing Department at William Perkin Church of England High School
+
+\begin{myquote}
+This work is licensed under the Creative Commons Attribution 4.0
+International License. To view a copy of this license, visit\\
+\url{http://creativecommons.org/licenses/by/4.0/} or send a letter to
+Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
+\end{myquote}
+
+
+\include{questions.tex}
+
+\end{document}
+
diff --git a/tests/1/questions.tex b/tests/1/questions.tex
new file mode 100644
index 0000000..62e1106
--- /dev/null
+++ b/tests/1/questions.tex
@@ -0,0 +1,46 @@
+\begin{questions}
+
+ \question Lucy records using her camera. The camera saves the
+ audio and video parts of the recording seperately. Lucy transfers
+ recording to her computer. The audio file has a size of 12.8 kB.
+ Audio is recorded at a sample rate of 320 kB per second. The audio
+ resolution is 32 bits.
+
+ \begin{parts}
+
+ \part[5] In minutes, how many seconds was the recording.
+ \vspace{\stretch{1}}
+
+ \part[5] A video file consists of many still frames. Each
+ frame is a normal image. The size of a video file can
+ therefore be expressed as:
+
+ \begin{align*}
+ \mbox{Video file size} = \mbox{Number of frames} \times
+ \mbox{Size of each frame}
+ \end{align*}
+
+ If each frame is 1920 pixels wide and 1080 pixels high in
+ resolution, and the bit depth of 24 bits, what is the file
+ size of the video file.
+ \vspace{\stretch{1}}
+
+ \pagebreak
+
+ \part[1] Lucy combines the audio and video to form a file. She
+ then runs a lossy compression algorithm on the resulting file.
+ What is lossy compression?
+ \vspace{\stretch{1}}
+
+ \part[3] The file size after compression is reduced by 20\%.
+ What is the final file size?
+ \vspace{\stretch{1}}
+
+ \part[1] State an assumption made for part (d).
+ \vspace{\stretch{1}}
+
+ \end{parts}
+ \droptotalpoints
+
+\end{questions}
+