You are on page 1of 16

IITBombayX: LaTeX101x LaTeX for Students, Engineers, and S…

Course  Final Exam  Final Exam  Questions

Questions
 Bookmark this page

Instructions

1. The final exam is of 30 marks.

2. 'Save' button will ONLY SAVE your response. It will not be submitted.

3. 'Submit' button will submit and grade your response. You are required to click
the 'Submit' button for all the questions.

4. 'Show Answer' button will be displayed after you attempt the question. Click it, to view
the correct answer. 

5. Please note that this is a final exam, and the marks obtained, will be counted towards
the final grade. You will be able to see your score of this quiz in the bar chart on the
progress page.

Due Date to Submit this Final Exam: 02 December 2019, 18:00 UTC.

All the Best!

Q1
0.5/2.0 points (graded)
Consider the following LaTeX code and identify errors. Mark all the options that are
applicable.
\documentclass{article}
\begin{document}
\maketitle
\chapter{Overview}
\section{Introduction}
\subsection{Definitions}
\paragraph{}
In this ...
\end{document}

\chapter will display an error as it is not defined in the article documentclass 

\maketitle will display error as it should be written before \begin{document}

\section will display an error as it is not defined in the article documentclass

\maketitle will display error as \title{...} is not mentioned 

None of the choices

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q2
2.0/2.0 points (graded)
Rohan is new to LaTeX and wants to typeset a particular paragraph into 3 columns and the
columns should be separated using a vertical line of 1pt. Which code given below will do
the needful? Assume that document class (article) and other necessary packages are
already written.
\usepackage{multicol}
\begin{document}
\setlength{\columnseprule}{1pt}
\begin{multicols}{3}
content ...
\end{multicols}
\end{document}

\usepackage{multicol}
\begin{document}
\begin{multicols}{3}
content ...
\end{multicols}
\end{document}

\usepackage{multicol}
\begin{document}
\setlength{\columnseprule}{1pt}
\begin{multicolumn}{3}
content ...
\end{multicolumn}
\end{document}

None of the choices

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q3
0.0/2.0 points (graded)
What could be the possible reasons for running into an error? Mark all options that are
applicable.

Using an a5paper for book documentclass


Package is not included

Missing opening or closing curly braces (unbalanced) while writing LaTeX commands

Using \pagebreak without including the package

Mismatch in enviornments

None of the choices

Submit You have used 1 of 3 attempts

 Your answers have been saved but not graded. Click 'Submit'
to grade them.

Q4
1/1 point (graded)
Rohan has changed the font size to \Large. He wants to switch back to the original font size.
Which command will do the needful?

\normalsize 

\defaultsize

It is not possible to switch back to the original font size

None of the choices

Submit You have used 1 of 1 attempt


 Answers are displayed within the problem

Q5
2.0/2.0 points (graded)
Roses are red, Violets are blue, Sugar is sweet, And so are you.

Consider the text given above. Just to reiterate, Roses are red is colored 'red', Violets are
blue is colored 'blue', Sugar is sweet is made bold, while 'And so are you' is underlined.

Which code, from the options given below will achieve an output similar to the one shown
in the question. Assume that all the necessary packages are included. Please read the
commands carefully.

\color{red}{Roses are red,}\color{blue}{Violets are blue,}\textbf{Sugar


is sweet,}\underline{And so are you.}

\textcolor{red}{Roses are red,}\textcolor{blue}{Violets are


blue,}\textbf{Sugar is sweet,}\underline{And so are you.}

\textcolor{red}{Roses are red,}\textcolor{blue}{Violets are


blue,}\bold{Sugar is sweet,}\textline{And so are you.}

None of the choices generate an output similar to the one shown in the question

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q6
1/1 point (graded)
What is the difference between \flushleft command and flushleft environment? Choose the
option that best matches.

There is no difference.

\flushleft aligns only a certain part of the text while flushleft enviornment aligns the
entire document

The text followed by the \flushleft command is aligned as left while the flushleft
environment aligns only a certain part of the text 

None of the choices

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q7
2.0/2.0 points (graded)
In the image given below, the word 'Hello' is written in a few languages.

Which command will equally space out all the words horizontally in the same line?

\hfill 

\vfill

\hspace 

None of the choices


Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q8
1/1 point (graded)
The error 'Something's wrong--perhaps a missing \item.' is displayed when:

you define the itemize environment but do not write any item in it. 

you define the description enviornment but write \item ... instead of \item[...] ...

you define the description environment but do not write any item in it. 

None of the choices


Please mark all the options that are valid

Submit You have used 2 of 2 attempts

 Answers are displayed within the problem

Q9
1/1 point (graded)

In the textbox given below, write LaTeX code for typesetting the mathematical formula give
above. Please make sure that you do not enter any space in the textbox. Assume that
the mathematical expression that you write will be enclosed between $ and $ and it will be
displayed along with the text (inline). Do not consider the size the of the fraction displayed
above.
\frac{\frac{2}{3}+\frac{5}{7}}{9} 

Answer: \frac{\frac{2}{3}+\frac{5}{7}}{9} or $\frac{\frac{2}{3}+\frac{5}{7}}{9}$

Submit You have used 2 of 2 attempts

 Answers are displayed within the problem

Q10 - Problem Statement


Rohan is a LaTeX beginner and he wants to create the following table.

He has written the following code but he does not know how to merge rows and columns
of the table. Hence, he has left them blank and inserted some comments there.

\begin{tabular}{|l|l|l|}
\hline
%Line 1
\hline
Item & Qty & Cost \\
\hline
%Chunk 2
\hline
\end{tabular}

Q10 - Part 1
1.0/1.0 point (graded)
Part 1
With which of the following command should Rohan replace %Line 1 with, so that he can
achieve merging of 3 columns for displaying 'Whole Sale Items'.
\multicolumn{3}{|l|}{Whole Sale Items} \\

\multicolumn{3}{|r|}{Whole Sale Items} \\

\multicolumn{3}{|c|}{Whole Sale Items} \\

\multicolumn{3}{|*|}{Whole Sale Items} \\

None of the choices

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q10 - Part 2
0.0/2.0 points (graded)
Part 2
With which of the following command should Rohan replace %Chunk 2 with, so that he can
achieve merging of 3 rows and displaying Pencil 2B along with its quantity and cost.
Assume that all the necessary packages are included.
\multirow{3}{|l|}{Pencil 2B} & 10 & 50 \\
\cline{2-3}
& 20 & 70 \\
\cline{2-3}
& 50 & 100 \\

\multirow{3}{*}{Pencil 2B} & 10 & 50 \\


\cline{2-3}
& 20 & 70 \\
\cline{2-3}
& 50 & 100 \\

\multirow{3}{*}{Pencil 2B} & 10 & 50 \\


\cline{2-3}
20 & 70 \\
\cline{2-3}
50 & 100 \\

None of the choices

Submit You have used 2 of 2 attempts

 Answers are displayed within the problem

Q11
1/1 point (graded)
Which command will generate a list, similar to Table of Contents, that will display all the
table captions and their respective page numbers.
\listoftables 

\listoftable

\displaycaptions

None of these

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q12
2.0/2.0 points (graded)
The following image has 5pt border and the space between the border and image is 15pt.
Which commands given below will do the needful?

\fboxsep{15pt}
\fboxrule{5pt}
\setlength{\fboxsep}{15pt}
\setlength{\fboxrule}{5pt}

\setlength{\space}{15pt}
\setlength{\thickness}{5pt}

None of the choices

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q13
2.0/2.0 points (graded)
In \begin{table}[position] or \begin{figure}[position] enviornments, we specify the
position of where the table or figure should appear on the page. Look at the table given
below and match Position column with the Description column.

Position Description
1. h A. top
2. b B. here
3. t C. bottom

Match the columns: Match the left column (position) with the correct description. Note the
number of the left column and the alphabet in the right column. Mention the correct
alphabet in the text boxes given below, next to the position number. For example, if 'h'
position denotes 'bottom' as the description, then my answer next to 1 would be C.

Please do not enter any space in the textbox and enter the alphabet in capitals
1 B  Answer: B

2 C  Answer: C

3 A  Answer: A

Submit You have used 1 of 2 attempts

 Answers are displayed within the problem

Q14
1/1 point (graded)
Consider the sentence: For more information visit the Wiki article!

Nagesh wants the readers to read more about Falkirk wheel, in one of his documents, such
that when clicked on the word Wiki in the sentence given above, it should redirect to
'https://en.wikipedia.org/wiki/Falkirk_Wheel'

Which command given below will do the needful?

\href{Wiki}{https://en.wikipedia.org/wiki/Falkirk_Wheel}

\href{https://en.wikipedia.org/wiki/Falkirk_Wheel}{Wiki}

\url{https://en.wikipedia.org/wiki/Falkirk_Wheel}

None of the choices


Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q15
1/2 points (graded)
Consider the following sentence:

Figure 3.2 on page 78 displays the relation between children and parents.

Assume that the key is (fig:relation) and the label is defined at the appropriate place.
Choose the correct option from the dropdown that will do the needful.

Figure \ ref{fig:relation}  Answer: ref{fig:relation}


on page \

page{fig:relation}  Answer: pageref{fig:relation}


displays the relation between
children and parents.

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q16
1/1 point (graded)
All the necessary commands are written by Vishal to create and display an index. The only
issue is that the title 'Back Index' should be visible in the table of contents. Which command
will do the needful?

\makeindex[title=Back Index, intoc] 

\makeindex[title=Back Index, toc]

\index[title=Back Index, intoc]


an incorrect answer

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q17
0.0/2.0 points (graded)
In a beamer documentclass, Firuza wants to create 4 columns but she is confused in
mentioning the size of the columns with respect to the textwidth. Given below is her code

\begin{columns}
\column{ColumnSize}
Humpty Dumpty sat on a wall,

\column{ColumnSize}
Rock-a-bye baby on the tree top.

\column{ColumnSize}
Do you know the muffin man?

\column{ColumnSize}
Hickory, dickory, dock.
\end{columns}

With which of the commands given below, should she replace ColumnSize with? Choose
the most appropriate option that will display the content of all the 4 columns properly.

0.23\textwidth 

0.35\textwidth 

0.45\textwidth

None of the choices


Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

Q18
2.0/2.0 points (graded)
Choose the correct option for changing the background color of the slides to yellow.
Assume that all the necessary packages are included.

\setbeamercolor{background}{bg=yellow}

\setbeamercolor{background canvas}{yellow}

\setbeamercolor{background canvas}{bg=yellow} 

None of the choices

Submit You have used 1 of 1 attempt

 Answers are displayed within the problem

    Some Rights Reserved

You might also like