RankBoltRank higher. Grow faster.
Home › UGC-NET › Teaching & Research Aptitude › 8 January 2025 (Shift 2)

Which of the following statements are correct in the context of

UGC-NET · Teaching & Research Aptitude8 January 2025 (Shift 2)Question 30Answer key not yet verified

Which of the following statements are correct in the context of programming languages?
A. Algorithm solves a problem in a finite number of steps
B. Assembly language is a low level programming language
C. A code written in machine language is highly portable
D. Algorithms are implemented using programming languages
Choose the correct answer from the options given below:
  1. A
    A, B & C only
  2. B
    A, B & D only
    ✓ Correct
  3. C
    B, C & D only
  4. D
    A, C & D only

Answer: option B — A, B & D only

Detailed solution

Correct Answer

B. A, B & D only

Explanation

This question checks two ideas. One is the algorithm, which is the logic of a solution. The other is the level of a language (machine, assembly or high-level) in which that logic is written.

Here is each statement checked in turn.

StatementVerdictReason
A. Algorithm solves a problem in a finite number of stepstrueFiniteness is a basic property of an algorithm. The other properties are definiteness, input, output and effectiveness. A procedure that never stops is not an algorithm.
B. Assembly language is a low level programming languagetrueAssembly uses short codes called mnemonics, such as MOV and ADD. They are tied to the instruction set of one processor. An assembler turns them into machine code. Since it depends on the machine, it is called low-level. It sits one step above binary machine language.
C. A code written in machine language is highly portablefalseMachine code is binary and made for one CPU design and its instruction set. It will not run on a different processor family. Portability is a strength of high-level languages. Their programs are compiled or interpreted again for each platform.
D. Algorithms are implemented using programming languagestrueAn algorithm is logic that does not depend on any language. It is written as pseudocode or a flowchart. It becomes a working program only when you code it in some programming language.

A, B and D are true, and C is false. So the answer is option B.

Key Points
Why the other options are incorrect
A
A, B & C only→This includes the false statement C. It also leaves out the true statement D. Machine code is the least portable form of code, not the most.
C
B, C & D only→This wrongly includes C. It also leaves out A, which states finiteness, the basic property of an algorithm.
D
A, C & D only→This keeps the false statement C. It leaves out the true statement B. Assembly language is a low-level language because it is specific to one processor.
Remember

The higher the language level, the better the portability: machine → assembly → high-level. An algorithm is finite logic. A program is that logic written in a language.

Sit the whole UGC-NET 8 January 2025 (Shift 2) paper — in the printed order, on the official clock, with every answer explained when you submit.

Start this paper →

30 free practice questions every day. 1 real full-length paper free, no login to start.

⬇ Download this paper's solutions as a PDF — free

Every solved question of this paper with its answer and step-by-step solution, in one printable file. Free with a RankBolt account.

More questions from this paper

All questions of UGC-NET 8 January 2025 (Shift 2) →