Конвертер валютUSD 2,9921EUR 3,3424Моя статистикаПройдите любой тест
Все записи блога →
Последние Новости
  • Тур Хейердал — путешественник, переплывший океан на плоту
    Шесть мужчин, бальсовый плот и бескрайний Тихий океан. Тур Хейердал хотел проверить смелую идею: могли ли жители Южной Америки в древности добраться до островов Полинезии. Чтобы узнать это, он сам отправился в путь.Путь к успехуТур Хейердал родился 6 октября 1914 года в городе Ларвик в Норвегии. С детства он увлекался зоологией и дикой природой. В 1937–1938 годах Тур с женой прожил около года на острове Фату-Хива в Полинезии. Именно там, наблюдая за ветрами и течениями, он задумался о происхожде...
  • Христофор Колумб — мореплаватель, открывший Европе Америку
    Утром 12 октября 1492 года матрос с корабля «Пинта» крикнул, что видит берег. Через несколько часов три небольших судна подошли к острову, который местные жители называли Гуанахани. Экспедиция Христофора Колумба завершила первый переход через Атлантический океан, после которого мир перестал быть прежним.Путь к экспедицииКолумб родился около 1451 года в Генуе в семье ткача. Он рано ушёл в море, плавал по Средиземному и Атлантическому океанам, жил в Португалии. Он был уверен, что до Индии и Китая ...
  • Фрэнк Синатра — «Голос» века, певший по-своему
    Шляпа с лентой, небрежно накинутый плащ, бархатный баритон — Фрэнк Синатра умел превратить трёхминутную песню в маленький спектакль. Прозвище «Голос» закрепилось за ним ещё в 1940-х, и за десятилетия его мало кто смог оспорить.Путь к успехуСинатра родился в декабре 1915 года в Хобокене, штат Нью-Джерси, в семье итальянских эмигрантов. Музыкального образования он почти не получил, зато с юности пел на радио и в клубах. Первые успехи пришли в оркестрах Гарри Джеймса и Томми Дорси. В начале 194...
  • Михаил Булгаков — мастер, которого прочли после смерти
    Автор, которого при жизни почти не печатали, оказался одним из самых читаемых писателей столетия. История Михаила Афанасьевича Булгакова — это история терпения, упорства и веры в свою книгу.Путь к успехуБулгаков родился в 1891 году в Киеве, в семье преподавателя духовной академии. В 1916 году он окончил медицинский факультет Киевского университета и сразу начал работать врачом, в том числе в земской больнице в селе Никольском Смоленской губернии. Эти годы позже отразились в «Записках юного врача...
  • Дмитрий Менделеев — химик, составивший карту всех элементов
    Дмитрий Иванович Менделеев родился 8 февраля 1834 года (27 января по старому стилю) в Тобольске, в большой семье директора гимназии. Рос он в трудное время, но мать, по семейным преданиям, сделала всё, чтобы младший сын получил образование. Так будущий учёный оказался в Петербурге.Путь к успехуОкончив Главный педагогический институт, Менделеев стажировался в Европе, а в 1860-х годах стал профессором Петербургского университета. Читая курс неорганической химии, он не нашёл подходящего учебника и ...
  • Роальд Амундсен — покоритель полюсов и северо-западного прохода
    Полярные льды веками хранили свои тайны. Роальд Амундсен разгадал сразу несколько из них. Он не искал лёгкой славы: каждый его поход был итогом долгой учёбы у местных народов и внимательного расчёта.Путь к успехуАмундсен родился 16 июля 1872 года недалеко от города Борге в Норвегии. Он собирался стать врачом, но, прочитав о полярных экспедициях, выбрал другую жизнь. В 1897–1899 годах он участвовал в бельгийской экспедиции на судне «Бельжика», которая стала первой, перезимовавшей в Антарктике. Та...
  • Франциск Скорина — первопечатник Беларуси и Восточной Европы
    В 1517 году в Праге вышла небольшая книга, которую можно держать в одной руке. Это была Псалтирь, а на её страницах стояло имя издателя: «Франциск Скорина из Полоцка, в лекарских науках доктор». Так началась история восточнославянского книгопечатания.Путь к книгеТочная дата рождения Скорины неизвестна, обычно называют около 1490 года. Он родился в Полоцке в семье купца. В 1504 году его имя записано среди студентов Краковского университета. В 1512 году в итальянской Падуе он получил степень докто...
  • Марк Шагал — художник, чьи герои парят над городом
    На картинах Марка Шагала люди летают над крышами, скрипач сидит на домике, а синяя корова смотрит на зрителя человеческими глазами. Это не просто фантазия: художник всю жизнь рисовал родной Витебск, каким его хранила память, — с поэтической логикой сна.Путь к успехуМарк Шагал (при рождении Мовша Шагал) родился в 1887 году в семье бедного еврейского рабочего недалеко от Витебска и вырос в самом Витебске. Он учился у местного художника Юделя Пэна, затем уехал в Санкт-Петербург. В 191...
  • Янка Купала — народный поэт Беларуси
    Когда в начале XX века молодой поэт из деревни под Минском подписал свои стихи псевдонимом «Янка Купала», он, возможно, и не думал, что станет голосом целого народа. Но именно так и произошло.Путь к успехуИван Доминикович Луцевич родился в 1882 году в фольварке Вязынка близ Молодечно. Семья была небогатой: родители арендовали землю. Учился он в народном училище, потом работал домашним учителем, писарем, помощником провизора, много читал и рано начал писать стихи. Первое стихотворение «Мужик» нап...
  • Луи Пастер — учёный, победивший невидимых врагов
    Луи Пастер родился 27 декабря 1822 года в городке Доль на востоке Франции, в семье кожевника. Он был прилежным, но не блестящим учеником и интересовался живописью. Однако судьбу решила химия: она повела его от кристаллов к микробам и спасению жизней.Путь к успехуПервое крупное открытие Пастер сделал в 1848 году, изучая кристаллы солей винной кислоты. Он заметил, что они бывают двух зеркально отражённых форм, и тем самым заложил основы стереохимии. Позже он занялся брожением и показал, что за нег...
МатематикаМоя статистика

Тест по LaTeX

100 вопросов в 11 темах (лёгкий — 35, средний — 40, сложный — 25). Выберите темы, уровень и количество вопросов — к каждому ответу есть объяснение.

Структура документа, формулы и окружения amsmath, выравнивание, матрицы, теоремы, таблицы и рисунки, ссылки и библиография, макросы и ошибки компиляции. Вопросы на английском.

Все вопросы теста 100

Нажмите на вариант ответа, чтобы проверить себя, или «Показать ответ».

Document structure9
1Лёгкий
Which command must come first in a LaTeX document, before any \usepackage lines?
  1. \begin{document}
  2. \usepackage{latex}
  3. \documentclass{article}
  4. \title{My paper}
2Лёгкий
Where do \usepackage commands belong?
  1. Right after \begin{document}, before the first paragraph
  2. In the preamble, between \documentclass and \begin{document}
  3. After \end{document}
  4. Anywhere, even in the middle of a paragraph
3Средний
The document compiles, but no title, author or date is shown. Why?
\documentclass{article}
\title{Lecture Notes}
\author{A. Smith}
\begin{document}
Some text.
\end{document}
  1. \title must be placed after \begin{document}
  2. The article class does not support titles
  3. \maketitle is never called
  4. \date is missing, so the whole title block is skipped
4Средний
Which sectioning command does NOT exist in the standard article class?
  1. \section
  2. \subsubsection
  3. \chapter
  4. \paragraph
5Сложный
How does \section*{Introduction} differ from \section{Introduction}?
  1. It is numbered, but not added to the table of contents
  2. It is unnumbered, but still added to the table of contents
  3. It always starts on a new page
  4. It is unnumbered and is not added to the table of contents
6Лёгкий
Which line sets a 12 pt base font and A4 paper for an article?
  1. \documentclass[12pt,a4paper]{article}
  2. \documentclass{article}[12pt,a4paper]
  3. \documentclass{article,12pt,a4paper}
  4. \usepackage[12pt]{a4paper}
7Лёгкий
In the report and book classes, which sectioning level comes directly below \part?
  1. \section
  2. \subsection
  3. \paragraph
  4. \chapter
8Средний
What is the optional argument [Short title] used for?
\section[Short title]{A very long section title that would not fit in the header}
  1. It is a label for \ref
  2. It replaces the title in the table of contents and in running headers
  3. It is printed as a subtitle under the section heading
  4. It is ignored
9Сложный
How is \appendix used in an article?
  1. As an environment: \begin{appendix} ... \end{appendix}
  2. It starts a separate document with its own page numbering
  3. As a declaration: after \appendix, the following \section commands are numbered A, B, C, ...
  4. It makes all following sections unnumbered
Text formatting9
10Лёгкий
How do you type typographic double quotes “like this” in plain LaTeX source?
  1. ``like this''
  2. "like this"
  3. ''like this``
  4. \"like this\"
11Лёгкий
Which input produces an en dash for a page range, as in “pages 10–20”?
  1. 10--20
  2. 10-20
  3. 10---20
  4. 10\dash20
12Средний
Which line typesets exactly “Price: $5 & 50% off” in normal text?
  1. Price: $5 & 50% off
  2. Price: \$5 & 50% off
  3. Price: \$5 \& 50\% off
  4. Price: \textdollar5 \& 50% off
13Средний
What does \emph{word} do inside text that is already italic?
  1. It makes “word” bold italic
  2. Nothing — “word” stays italic
  3. It underlines “word”
  4. It sets “word” upright (roman), so it still stands out
14Сложный
Why do careful authors write "Dr.\ Smith" or "e.g.\ the case" instead of a plain space after the period?
  1. The period is a special character and has to be escaped
  2. A period after a lowercase letter is treated as a sentence end and gets a wider space; "\ " forces a normal interword space
  3. It prevents the line from ever breaking at that space
  4. It makes the period come out in italics
15Лёгкий
Which command produces bold text?
  1. \bold{important}
  2. \textbf{important}
  3. \textit{important}
  4. \emph{important}
16Лёгкий
Which character makes a non-breaking space, as in “Figure 3” that should not be split across lines?
  1. \\ as in Figure\\\ref{fig:a}
  2. ~ as in Figure~\ref{fig:a}
  3. \newline as in Figure\newline\ref{fig:a}
  4. \nbsp as in Figure\nbsp\ref{fig:a}
17Средний
Only the word “Important” should be large, but everything after it in the paragraph is large too. Why?
\large{Important} notice: please read the rules.
  1. \large needs a size argument, such as \large[14pt]
  2. Braces after a size command are ignored only in the first word
  3. \large must be closed with \endlarge
  4. \large is a switch, not a command with an argument; write {\large Important}
18Сложный
You want an indent of 2 cm at the start of a line. Why does \hspace{2cm} placed right after a line break do nothing, while \hspace*{2cm} works?
  1. \hspace only accepts sizes in pt
  2. \hspace works only inside math mode
  3. The starred form doubles the requested space
  4. Horizontal space at the beginning of a line is discarded at a line break; the starred form keeps it
Inline and display math9
19Лёгкий
Which is the recommended LaTeX syntax for an unnumbered displayed equation?
  1. $$ E = mc^2 $$
  2. $ E = mc^2 $
  3. \[ E = mc^2 \]
  4. \( E = mc^2 \)
20Лёгкий
Which delimiters produce INLINE math, inside a running sentence?
  1. \[ x^2 \]
  2. \( x^2 \)
  3. \begin{equation} x^2 \end{equation}
  4. $$ x^2 $$
21Средний
With amsmath loaded, this equation gets number 3. What does the last line print?
\begin{equation}
  e^{i\pi} + 1 = 0
  \label{eq:euler}
\end{equation}
As shown in \eqref{eq:euler}, ...
  1. As shown in 3, ...
  2. As shown in Equation 3, ...
  3. As shown in eq:euler, ...
  4. As shown in (3), ...
22Средний
In $f(x) = 0 if x < 0$ the word "if" comes out as italic letters i f with no spaces around it. What is the fix (with amsmath)?
  1. $f(x) = 0 \text{ if } x < 0$
  2. $f(x) = 0 if x < 0$ — add more spaces
  3. $f(x) = 0 \mathit{if} x < 0$
  4. $f(x) = 0 \; if \; x < 0$
23Сложный
Section 2 contains the following, and the equation is numbered (5). What does \ref{eq:a} print?
\section{Results}
\label{eq:a}
\begin{equation}
  x = 1
\end{equation}
  1. 5
  2. 2
  3. (5)
  4. ??
24Лёгкий
Which amsmath environment produces a displayed equation WITHOUT a number?
  1. equation
  2. numbered
  3. equation*
  4. eqnarray
25Средний
What does \tag{$\star$} do inside an equation environment (amsmath)?
  1. It adds ⋆ after the automatic number
  2. It adds a label named ⋆ for \ref
  3. It replaces the automatic number with (⋆)
  4. It makes the equation unnumbered
26Сложный
What is the effect of the blank line before \begin{equation}?
... which gives the following identity.

\begin{equation}
  a^2 - b^2 = (a - b)(a + b)
\end{equation}
  1. None — blank lines are always ignored around displays
  2. The equation is printed inline
  3. The paragraph ends, so the equation starts after an empty line and gets extra space above it
  4. It is an error: a display cannot follow a blank line
27Сложный
With this preamble, which number does the third equation in section 2 get?
\usepackage{amsmath}
\numberwithin{equation}{section}
  1. (3)
  2. (2.3)
  3. (2-3)
  4. (3.2)
Math symbols and operators10
28Лёгкий
Which input typesets x to the power 10?
  1. x^10
  2. x^{10}
  3. x^(10)
  4. x**10
29Лёгкий
What does $\sqrt[3]{x}$ produce?
  1. Three times the square root of x
  2. The square root of x, cubed
  3. An error: \sqrt takes no optional argument
  4. The cube root of x
30Средний
Which input typesets “sin x” with an upright “sin” and correct spacing before x?
  1. $\sin x$
  2. $sin x$
  3. $\text{sin}x$
  4. $\mathrm{sin}x$
31Средний
You need an upright operator “tr” (trace) many times in a document, with correct operator spacing. What is the best way (amsmath loaded)?
  1. \newcommand{\tr}{tr} in the preamble, then $\tr A$
  2. \DeclareMathOperator{\tr}{tr} in the body, right before its first use
  3. \renewcommand{\tr}{\mathrm{tr}} in the preamble
  4. \DeclareMathOperator{\tr}{tr} in the preamble, then $\tr A$
32Сложный
Inside a paragraph you write $\sum_{i=1}^{n} i$. Where are the limits placed, and how can you force them above and below?
  1. Below and above, because \sum always places limits that way
  2. To the right of the sigma; \sum\limits_{i=1}^{n} puts them below and above
  3. To the right of the sigma; \sum\nolimits_{i=1}^{n} puts them below and above
  4. To the right of the sigma, and nothing can change that in inline math
33Лёгкий
Which input produces the capital Greek letter Γ?
  1. \gamma
  2. \capgamma
  3. \Gamma
  4. G
34Лёгкий
Which input typesets (a + b) divided by 2 as a built-up fraction?
  1. \frac{a+b, 2}
  2. \frac{a+b}{2}
  3. \frac(a+b)(2)
  4. \fraction{a+b}{2}
35Средний
In display math, which input puts “x → 0” centered BELOW “lim”?
  1. \lim{x \to 0}
  2. \lim_{x \to 0}
  3. \lim^{x \to 0}
  4. \operatorname{lim}_{x \to 0}
36Сложный
You need a left curly brace that grows to the height of the content, with NOTHING on the right side. Which input works?
  1. \left\{ ... \right.
  2. \left{ ... \right.
  3. \left\{ ... with no \right
  4. \left\{ ... \right\}
37Сложный
$x^2^3$ fails with "Double superscript". How do you write x raised to the power 2³?
  1. {x^2}^3
  2. x^{2}^{3}
  3. x^{2^3}
  4. x^(2^3)
Aligning equations9
38Лёгкий
In the align environment, what do & and \\ do?
  1. \\ marks the alignment point, & ends the line
  2. & ends the line, \\ starts a comment
  3. & marks the alignment point, \\ ends the line
  4. & adds a space, \\ marks the alignment point
39Лёгкий
How many equation numbers does this produce?
\begin{align}
  a &= b + c \\
    &= d
\end{align}
  1. One for the whole block
  2. Two — one per line
  3. None
  4. Three
40Средний
Why is eqnarray discouraged in favor of amsmath's align?
  1. eqnarray cannot number equations
  2. eqnarray needs the amsmath package, align does not
  3. eqnarray puts too much space around the relation symbol and its numbers can overlap long equations
  4. align compiles noticeably faster
41Средний
Inside a cases environment, what separates a value from its condition?
|x| = \begin{cases}
  x  & x \ge 0 \\
  -x & x < 0
\end{cases}
  1. A comma
  2. &
  3. \quad
  4. \\
42Сложный
How is this block numbered?
\begin{equation}
  \begin{aligned}
    f(x) &= (x+1)^2 \\
         &= x^2 + 2x + 1
  \end{aligned}
\end{equation}
  1. With a single number, vertically centered on the block
  2. With one number per line
  3. It is not numbered at all
  4. It does not compile: aligned can only be used inside align
43Лёгкий
Which environment aligns several equations at = WITHOUT numbering any of them?
  1. align
  2. align*
  3. equation
  4. gather
44Средний
How does gather differ from align?
  1. gather aligns at & like align, but numbers only the last line
  2. gather centers each line and does not align them; & is not used
  3. gather is the deprecated old name of align
  4. gather puts all equations on one line
45Средний
How many equation numbers are printed?
\begin{align}
  x &= 1 + 2 \\
    &= 3 \notag \\
  y &= 4
\end{align}
  1. 1
  2. 3
  3. 0
  4. 2
46Сложный
What does this produce?
\begin{align}
  a &= b & c &= d \\
  e &= f & g &= h
\end{align}
  1. One column with four alignment points per line
  2. An error: only one & is allowed per line in align
  3. Four lines, one equation per line
  4. Two columns of equations side by side, each aligned at =, one number per row
Matrices and arrays9
47Лёгкий
Which amsmath environment typesets a matrix in round parentheses?
  1. bmatrix
  2. vmatrix
  3. pmatrix
  4. matrix
48Лёгкий
What is the size of this matrix?
\begin{pmatrix}
  1 & 2 & 3 \\
  4 & 5 & 6
\end{pmatrix}
  1. 2 rows × 3 columns
  2. 3 rows × 2 columns
  3. 1 row × 6 columns
  4. It does not compile: matrices must be square
49Средний
In a general n×n matrix, which command draws the diagonal dots between a₁₁ and aₙₙ?
  1. \vdots
  2. \cdots
  3. \ldots
  4. \ddots
50Средний
What does this produce?
\left( \begin{array}{cc|c}
  1 & 2 & 3 \\
  4 & 5 & 6
\end{array} \right)
  1. An augmented matrix in parentheses with a vertical line before the last column
  2. A matrix with a vertical line after the first column
  3. A 2×3 matrix without any line — | is ignored in math mode
  4. An error: array requires the amsmath package
51Сложный
This pmatrix row has 12 entries and fails with "Extra alignment tab has been changed to \cr". Why?
\begin{pmatrix}
  1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12
\end{pmatrix}
  1. amsmath matrices allow at most 10 columns by default; raise the limit with \setcounter{MaxMatrixCols}{12}
  2. A single row matrix must be written with bmatrix
  3. Numbers above 9 must be put in braces, like {10}
  4. The row must end with \\ even if it is the last one
52Лёгкий
Which amsmath environment typesets a determinant, with vertical bars?
  1. pmatrix
  2. bmatrix
  3. matrix
  4. vmatrix
53Средний
This gives "Missing $ inserted". Why?
The matrix is
\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
and it is the identity.
  1. pmatrix must be used inside math mode, e.g. within \[ ... \] or $...$
  2. The rows must be separated by \cr, not \\
  3. pmatrix needs a column spec like {cc}
  4. A 2×2 matrix must be written with bmatrix
54Средний
Which environment, used inside math mode, lets you choose the alignment of each column separately (for example right-aligned numbers)?
  1. pmatrix
  2. bmatrix
  3. cases
  4. array
55Сложный
You need a small 2×2 matrix inside a line of text without ruining the line spacing. What is the amsmath solution?
  1. $\begin{smallpmatrix} a & b \\ c & d \end{smallpmatrix}$
  2. $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$
  3. $\small\begin{pmatrix} a & b \\ c & d \end{pmatrix}$
  4. $\bigl(\begin{smallmatrix} a & b \\ c & d \end{smallmatrix}\bigr)$
Theorems and proofs9
56Лёгкий
Which package provides the proof environment and theorem styles such as \theoremstyle{definition}?
  1. amsmath
  2. amssymb
  3. graphicx
  4. amsthm
57Средний
What does the optional argument [theorem] do here?
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
  1. Lemmas are numbered within theorems: Lemma 1.1, 1.2, ...
  2. Lemmas share the theorem counter: Theorem 1, Lemma 2, Theorem 3, ...
  3. Lemmas become unnumbered
  4. Lemmas copy the formatting of theorems but have their own counter
58Средний
With amsthm, what does \newtheorem*{remark}{Remark} define?
  1. An environment remark numbered “Remark 1.”, “Remark 2.”, ...
  2. An environment remark printed as an unnumbered “Remark.”
  3. Nothing — the star is not allowed and causes an error
  4. A remark that is numbered within the current section
59Сложный
The proof ends with a displayed equation, and the QED box appears alone on the next line. How do you put it at the end of the equation?
\begin{proof}
  Combining the bounds we get
  \[ a = b. \]
\end{proof}
  1. Write \[ a = b. \qedhere \]
  2. Write \qed after \end{proof}
  3. Add \hfill$\square$ before \end{proof}
  4. Remove the proof environment and draw the box by hand
60Лёгкий
With amsthm, how do you write a proof that ends with the QED box □ automatically?
  1. \begin{proof} ... \end{proof}
  2. \proof{...}
  3. \begin{theorem}[proof] ... \end{theorem}
  4. \begin{qed} ... \end{qed}
61Лёгкий
What does this preamble line define?
\newtheorem{thm}{Theorem}
  1. A command \thm{...} that prints “Theorem”
  2. An environment Theorem printed as “thm 1”
  3. An environment thm, used as \begin{thm}...\end{thm} and printed as “Theorem 1”
  4. A counter named Theorem without any environment
62Средний
How are theorems numbered after this definition?
\newtheorem{theorem}{Theorem}[section]
  1. Theorem 1, 2, 3, ... — continuously
  2. Theorem 1, 2, ... — but sharing the section counter
  3. Only one theorem is allowed per section
  4. Theorem 2.1, 2.2, ... — restarting in each section
63Средний
What heading does this proof get (amsthm)?
\begin{proof}[Proof of Theorem~\ref{thm:main}]
  ...
\end{proof}
  1. “Proof. Proof of Theorem 2”
  2. “Proof.” — the optional argument is ignored
  3. An error: proof takes no optional argument
  4. “Proof of Theorem 2.” instead of “Proof.”
64Сложный
With amsthm, the bodies of Definition environments are still italic. Why?
\newtheorem{defn}{Definition}
\theoremstyle{definition}
\newtheorem{example}{Example}
  1. \theoremstyle must be written inside each defn environment
  2. The definition style is italic by design
  3. \theoremstyle affects only the \newtheorem commands that follow it, so defn still has the default plain (italic) style
  4. \theoremstyle works only with \newtheorem*
Tables and figures9
65Лёгкий
How are the columns of \begin{tabular}{lcr} aligned?
  1. Right, centered, left
  2. All left, with column widths l, c, r
  3. Left, centered, right
  4. Lowercase, capitalized, roman
66Лёгкий
Which command draws a horizontal line across a tabular?
  1. \hrulefill
  2. \line
  3. \hline
  4. \horizontalline
67Средний
You wrote \begin{figure} ... \end{figure} in the middle of a paragraph, but the image appears on the next page. Why?
  1. The image file is too large to be shown where it is written
  2. figure always starts on a new page
  3. figure is a float: LaTeX moves it to a place allowed by its placement rules
  4. \includegraphics must be called before \begin{figure}
68Средний
In a figure, where must \label go so that \ref prints the figure number?
  1. Before \caption
  2. As an option of \includegraphics
  3. After \caption (or inside its argument)
  4. Anywhere inside the figure environment
69Лёгкий
Which package provides \includegraphics?
  1. amsmath
  2. hyperref
  3. booktabs
  4. graphicx
70Лёгкий
In a tabular row, what separates the cells and what ends the row?
  1. & separates cells, \\ ends the row
  2. | separates cells, \\ ends the row
  3. & separates cells, \hline ends the row
  4. Tab characters separate cells, a newline ends the row
71Средний
With the booktabs package, which set of commands draws the rules of a professional-looking table?
  1. \toprule, \midrule, \bottomrule — and no vertical lines
  2. \hline\hline at the top and bottom, plus | between all columns
  3. \toprule at the top and \hline everywhere else
  4. \cline between every row
72Средний
Which column spec makes the 2nd column 4 cm wide with automatic line wrapping?
  1. {l p{4cm} r}
  2. {l c{4cm} r}
  3. {l 4cm r}
  4. {l w r}
73Сложный
A figure uses \begin{figure}[h] and the log shows "LaTeX Warning: h' float specifier changed to ht'". What does that mean?
  1. The figure was converted into a table
  2. [h] is not a valid placement option
  3. “Here” alone was not possible, so LaTeX also allowed placing the float at the top of a page
  4. The float was forced to stay exactly here
References and bibliography9
74Лёгкий
Which command cites the bibliography entry with key knuth84 in the text?
  1. \ref{knuth84}
  2. \bibitem{knuth84}
  3. \label{knuth84}
  4. \cite{knuth84}
75Средний
A document uses BibTeX with a refs.bib file. Which run order produces correct citations?
  1. bibtex, pdflatex
  2. pdflatex once
  3. pdflatex, pdflatex, bibtex
  4. pdflatex, bibtex, pdflatex, pdflatex
76Средний
Where should hyperref usually be loaded in the preamble?
  1. Near the end, after (almost) all other packages
  2. As the first package, right after \documentclass
  3. Order does not matter for hyperref
  4. Before \documentclass
77Сложный
Which setup is correct for biblatex with a file refs.bib?
  1. \usepackage{biblatex}, then \bibliographystyle{plain} and \bibliography{refs} at the end
  2. \usepackage{biblatex} and \addbibresource{refs.bib} in the preamble, \printbibliography in the body, compile with biber
  3. \usepackage{biblatex} and \addbibresource{refs} in the preamble, compile with bibtex
  4. \addbibresource{refs.bib} and \printbibliography both in the preamble
78Лёгкий
The introduction is section 1. What does this text print (after compiling twice)?
\section{Introduction}\label{sec:intro}
...
See Section~\ref{sec:intro}.
  1. See Section Introduction.
  2. See Section sec:intro.
  3. See Section 1.
  4. See Section (1).
79Лёгкий
What does loading the hyperref package do?
  1. Turns \ref, \cite, table of contents entries and URLs into clickable links in the PDF
  2. Downloads cited papers from the internet
  3. Checks that all URLs in the document are reachable
  4. Creates the bibliography
80Средний
After several compilations a reference still prints “??”. What is the most likely reason?
  1. The key in \ref does not match any \label (typo or missing label)
  2. The document has not been compiled with bibtex
  3. hyperref is not loaded
  4. \ref only works for equations
81Сложный
With hyperref loaded, which command prints “Figure 3” (including the word) for \label{fig:plot}?
  1. \ref{fig:plot}
  2. \autoref{fig:plot}
  3. \eqref{fig:plot}
  4. \pageref{fig:plot}
82Сложный
Your .bib file has 40 entries, but the bibliography lists only the 12 you cite. How do you include all of them?
  1. Add \nocite{*}
  2. Add \cite{all}
  3. Run bibtex twice
  4. Use \bibliography{refs.bib}*
Macros and packages9
83Лёгкий
Which package provides \mathbb, as in $\mathbb{R}$?
  1. amssymb (or amsfonts)
  2. amsmath
  3. graphicx
  4. hyperref
84Средний
With amsmath loaded, what does $\norm{x}$ produce after this definition?
\newcommand{\norm}[1]{\lVert #1 \rVert}
  1. ‖#1‖
  2. ‖ ‖x — empty bars followed by x
  3. An error: \norm needs two arguments
  4. ‖x‖ — x between double bars
85Средний
\newcommand{\vec}[1]{\mathbf{#1}} stops with "Command \vec already defined". Why?
  1. \mathbf cannot be used inside \newcommand
  2. \vec is already a LaTeX command (the arrow accent); use \renewcommand or a different name
  3. \newcommand needs a star when the macro has arguments
  4. Commands with arguments must be defined with \def
86Сложный
What does $\pair{5}$ produce?
\newcommand{\pair}[2][0]{(#1, #2)}
  1. (0, 5)
  2. (5, 0)
  3. (5, )
  4. An error: \pair needs two arguments
87Лёгкий
Which package must be loaded to use the align environment?
  1. amssymb
  2. graphicx
  3. amsmath
  4. align
88Средний
The first use of $\R$ gives "Undefined control sequence". What is the most likely cause?
\documentclass{article}
\usepackage{amsmath}
\newcommand{\R}{\mathbb{R}}
\begin{document}
Let $x \in \R$.
\end{document}
  1. \newcommand needs [0] for a macro without arguments
  2. \R must be used outside math mode
  3. amssymb (or amsfonts) is not loaded, so \mathbb is undefined
  4. Macros defined in the preamble are not visible in the body
89Средний
What error does this give, assuming \myvec has never been defined?
\renewcommand{\myvec}[1]{\mathbf{#1}}
  1. "Command \myvec undefined" — \renewcommand only redefines existing commands
  2. No error — \renewcommand also defines new commands
  3. "Command \myvec already defined"
  4. "Missing $ inserted" because of \mathbf
90Средний
With \newcommand{\name}{Alice}, the text \name is great comes out as “Aliceis great”. Why?
  1. \newcommand removes the last character of its body
  2. The space after a command name like \name is eaten when the name is read; write \name{} or \name\ is
  3. Macros defined with \newcommand never output spaces
  4. The definition is missing a trailing \space argument
91Сложный
Why is \ensuremath used in this definition?
\newcommand{\Rn}{\ensuremath{\mathbb{R}^n}}
  1. To make \Rn bold
  2. Because \mathbb is not allowed directly in \newcommand
  3. So that \Rn is always shown as a displayed equation
  4. So that \Rn works both in text and inside $...$ without "Missing $ inserted"
Errors and compilation9
92Лёгкий
What typically causes the error "Missing $ inserted"?
  1. A math-only command such as ^, _ or \alpha used in normal text
  2. An unbalanced closing brace }
  3. A missing \end{document}
  4. A package that is not installed
93Средний
Why does \ref show "??" after the first compilation and the right number after the second?
  1. The first run is only a syntax check
  2. Labels are stored in the PDF and read back from it
  3. It is a bug that depends on the package order
  4. The first run writes label values to the .aux file; the next run reads them
94Средний
What is the most likely cause of this error?
% preamble: \newcommand*{\note}[1]{\textbf{Note:} #1}
\note{Check the bounds again

Next paragraph ...

Runaway argument?
! Paragraph ended before \note was complete.
  1. \textbf cannot be used inside a macro
  2. The argument contains a space
  3. \note is already defined in LaTeX
  4. The closing brace of the argument is missing, so the argument ran into a blank line
95Сложный
What causes "LaTeX Error: There's no line here to end."?
First paragraph.

\\ Second paragraph.
  1. A \\ in a tabular row with too many cells
  2. \\ is used where there is no current line, e.g. at the start of a paragraph
  3. A missing \end{document}
  4. \\ used inside math mode
96Лёгкий
What does "LaTeX Error: File `mathtool.sty' not found" mean?
  1. The .tex file is not saved
  2. The package name is misspelled or the package is not installed
  3. There is a syntax error inside the package
  4. The package must be loaded after \begin{document}
97Средний
What typically causes "LaTeX Error: Missing \begin{document}" when \begin{document} IS in the file?
  1. A missing \end{document}
  2. A package that is loaded twice
  3. An empty line between \documentclass and \usepackage
  4. Text or a stray character in the preamble, which LaTeX tries to typeset before \begin{document}
98Средний
What is wrong in a document that gives "\begin{itemize} on input line 5 ended by \end{enumerate}"?
  1. itemize and enumerate cannot be used in the same document
  2. itemize must contain at least two \item
  3. Environments are improperly nested or mismatched: the itemize opened on line 5 is closed with \end{enumerate}
  4. Line 5 has a missing $
99Сложный
What does "Overfull \hbox (25.3pt too wide) in paragraph at lines 12--14" mean?
  1. A fatal error: compilation stops at line 12
  2. A warning: a line sticks 25.3 pt into the right margin because no good break was found
  3. The paragraph has 25.3 pt of too much space between words
  4. An image on lines 12–14 is 25.3 pt too large and was cropped
100Сложный
Why does this fail with "LaTeX Error: \verb illegal in command argument"?
\section{Using \verb|\frac|}
  1. \verb changes how characters are read, which is impossible once they are already read as an argument of another command
  2. \verb can only be used in math mode
  3. The | delimiter is not allowed; \verb needs braces
  4. \section titles cannot contain any commands

Как проходить тест

  • Выберите темы и уровень — лёгкий уровень проверяет определения и задачи в одно действие, средний — стандартные вычисления, сложный — многошаговые задачи и теорию.
  • Отвечайте касанием или с клавиатуры: 1–4 или A–D, Enter — следующий вопрос.
  • Читайте объяснения — после ошибки разбор открывается сразу, после верного ответа его можно раскрыть кнопкой «Почему».
  • Работайте над ошибками — «Повторить ошибки» в конце теста или режим «Только мои ошибки» потом: ответы запоминаются в этом браузере.

Незавершённый тест сохраняется — после перезагрузки страницы можно продолжить с того же вопроса.

Темы теста

  • Document structure 9
  • Text formatting 9
  • Inline and display math 9
  • Math symbols and operators 10
  • Aligning equations 9
  • Matrices and arrays 9
  • Theorems and proofs 9
  • Tables and figures 9
  • References and bibliography 9
  • Macros and packages 9
  • Errors and compilation 9