top of page

ISS 2016 Statistics Paper-1 Solution: Question 69 (Functions, Compilation and Linking)

Oct 30
5 min read

We're continuing our question-by-question walk through the ISS Statistics Paper-1 previous year papers, and today we land on a question from the 2016 paper that has nothing to do with distributions or probability — it's about basic computer fundamentals. The ISS Paper-1 syllabus always has a handful of these, and they're easy marks once you know exactly what each term means, so let's slow down and go through it carefully.


Quick Summary


  • Topic:Computer Fundamentals — Functions/Subroutines and the Compile-Link-Execute cycle

  • Question Reference:ISS 2016, Statistics Paper-1, Question 69

  • Correct Answer:(c) Both 1 and 2

The Question As It Appeared

Consider the following statements:


  1. A function is a subroutine that may include one or more statements designed to perform a specific task.

  2. A compiled and linked program is called executable code.


Which of the above statements is/are correct?


  • (a) 1 only

  • (b) 2 only

  • (c) Both 1 and 2

  • (d) Neither 1 nor 2

Step 1: Breaking Down Statement 1 — What Is a Function?

Let's not rush past the vocabulary here, because the whole question hinges on precise definitions. In programming, a subroutine is simply a named, self-contained block of code that you can call from elsewhere in a program instead of rewriting the same instructions again and again. A function is one common name for exactly this idea — a subroutine that groups together one or more statements to carry out a specific, well-defined task, such as computing a mean, sorting a list, or validating an input.


So read Statement 1 again: "A function is a subroutine that may include one or more statements designed to perform a specific task." This is a textbook-accurate description. It does not claim a function must have exactly one statement, or that it can't take inputs or return values — it simply says a function is a subroutine built from statements aimed at one task. That matches the standard definition used in every introductory programming course, so Statement 1 is correct.

Step 2: Breaking Down Statement 2 — From Source Code to Executable

Now consider Statement 2: "A compiled and linked program is called executable code." To check this, walk through what actually happens when a program you write turns into something you can run by double-clicking it or typing its name at a prompt. There are three stages worth separating clearly:


  • Source code:the human-readable program you type, in a language like C, Java, or Python.

  • Compilation:a compiler translates that source code into object code — machine-level instructions — but this object code is not yet runnable on its own. It may reference functions or variables defined in other files or libraries that haven't been resolved yet.

  • Linking:a linker takes one or more object files, resolves all those outstanding references (for example, connecting a call to a library function with the actual compiled code of that function), and stitches everything into a single, self-contained file.


That final, self-contained file — the output of compiling and linking — is precisely what we call the executable code, because it is the one file the operating system can load directly into memory and run. So Statement 2 is also correct.


Pro Tip: The trap in this question is assuming "compiled" by itself already means "ready to run." It doesn't — a compiler alone can leave you with object code full of unresolved references to other files. Students who are drilled to always say the full phrase "compile, link, then run" rather than just "compile and run" tend to never fall for questions that quietly test whether you remember the linking step; it's a small habit, but it's exactly the kind of precision ISS examiners like to probe.

Step 3: Combining the Two Statements

Since Statement 1 correctly defines a function as a task-specific subroutine, and Statement 2 correctly describes a compiled-and-linked program as executable code, both statements hold up under scrutiny. Neither contains a subtle error, an overreach, or a swapped definition — they are each accurate, standard definitions from computer fundamentals.


Therefore, the correct option is (c) Both 1 and 2.

Confirming Against the Official Answer Key

The official ISS 2016 Statistics Paper-1 answer key (Series A) lists the answer to Question 69 as C, which corresponds to option (c) Both 1 and 2. Our independent, first-principles derivation above matches the official key exactly, so there is no discrepancy to flag here.

Why This Question Matters

It's tempting to treat the computer fundamentals portion of the Paper-1 syllabus as an afterthought compared to probability, distributions, or numerical methods, but questions like this one are pure definition-recall marks — if you know the vocabulary precisely, you lose no time and make no errors. The habit this question rewards, distinguishing "compiled" from "compiled and linked," is the same habit that pays off across the whole computer science section: reading each statement slowly enough to notice exactly which word changes the meaning, rather than skimming for a vaguely familiar term.

Frequently Asked Questions

Is a function the same thing as a subroutine, or are they different?

In most general programming contexts, "function" and "subroutine" are used interchangeably to mean a named, reusable block of code built to perform a task. Some languages distinguish a "function" (which returns a value) from a "procedure" or "subroutine" (which may not), but at the conceptual level tested here, a function is simply a kind of subroutine.

What exactly is object code, and why can't you run it directly?

Object code is the machine-language translation of your source code produced by a compiler, but it often contains unresolved references to functions or variables defined elsewhere, such as in a separate file or a library. Until a linker resolves these references and combines everything into one package, the operating system cannot load and run it as a complete program.

What does a linker actually do, step by step?

A linker takes one or more object files along with any required library code, matches up every function or variable call with where it is actually defined, and merges all of this into a single executable file with a consistent memory layout. Without this step, calls to external functions would be dangling references pointing nowhere.

Can a program be run without linking, if it uses no external libraries at all?

Even a program that calls no external library functions still typically needs to be linked, because the compiler and linker together also set up the program's entry point, memory segments, and startup code required by the operating system. In practice, compilers usually invoke the linker automatically as a final internal step, which is why many students don't notice it happening separately.

Why do ISS Paper-1 exams include computer fundamentals questions alongside statistics?

The ISS Paper-1 syllabus is designed to test general aptitude in quantitative and computing literacy, since statistical officers are expected to work with statistical software, databases, and computing systems as part of their day-to-day role. A handful of computer fundamentals questions each year ensures candidates have baseline familiarity with these concepts.

Is it worth spending preparation time on this topic given it's only a few marks?

Yes, because these are typically the fastest marks on the entire paper when you know the definitions cold, often taking under thirty seconds per question compared to several minutes for a numerical statistics problem. Spending a small, fixed amount of revision time on this section usually has a very favorable return relative to the rest of the syllabus.


If anything here felt unclear, or you solved it a different way, drop a comment below — and if you found this walkthrough useful, consider sharing it with a fellow ISS aspirant who's working through the same paper.

Recent Posts

See All

Comments


bottom of page