From 4d32410ba6d2bdf9b994bd889f698ba6b090c91d Mon Sep 17 00:00:00 2001 From: Mohit Agarwal Date: Sat, 9 Oct 2021 19:08:24 +0100 Subject: Changed in structure. --- tests/1-data-rep/Makefile | 11 +++++ tests/1-data-rep/formatting.tex | 48 +++++++++++++++++++++ tests/1-data-rep/paper.tex | 96 +++++++++++++++++++++++++++++++++++++++++ tests/1-data-rep/questions.tex | 46 ++++++++++++++++++++ tests/1/Makefile | 11 ----- tests/1/formatting.tex | 48 --------------------- tests/1/paper.tex | 96 ----------------------------------------- tests/1/questions.tex | 46 -------------------- 8 files changed, 201 insertions(+), 201 deletions(-) create mode 100755 tests/1-data-rep/Makefile create mode 100644 tests/1-data-rep/formatting.tex create mode 100644 tests/1-data-rep/paper.tex create mode 100644 tests/1-data-rep/questions.tex delete mode 100755 tests/1/Makefile delete mode 100644 tests/1/formatting.tex delete mode 100644 tests/1/paper.tex delete mode 100644 tests/1/questions.tex diff --git a/tests/1-data-rep/Makefile b/tests/1-data-rep/Makefile new file mode 100755 index 0000000..024703d --- /dev/null +++ b/tests/1-data-rep/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-data-rep/formatting.tex b/tests/1-data-rep/formatting.tex new file mode 100644 index 0000000..93af90f --- /dev/null +++ b/tests/1-data-rep/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-data-rep/paper.tex b/tests/1-data-rep/paper.tex new file mode 100644 index 0000000..02bf96d --- /dev/null +++ b/tests/1-data-rep/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-data-rep/questions.tex b/tests/1-data-rep/questions.tex new file mode 100644 index 0000000..62e1106 --- /dev/null +++ b/tests/1-data-rep/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} + diff --git a/tests/1/Makefile b/tests/1/Makefile deleted file mode 100755 index 024703d..0000000 --- a/tests/1/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index 93af90f..0000000 --- a/tests/1/formatting.tex +++ /dev/null @@ -1,48 +0,0 @@ -\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 deleted file mode 100644 index 02bf96d..0000000 --- a/tests/1/paper.tex +++ /dev/null @@ -1,96 +0,0 @@ -\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 deleted file mode 100644 index 62e1106..0000000 --- a/tests/1/questions.tex +++ /dev/null @@ -1,46 +0,0 @@ -\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} - -- cgit v1.2.3