UGC-NET · Teaching & Research Aptitude6 January 2025 (Shift 1)Question 31Answer key not yet verified
Which of the following statements A-D are with reference to high-level computer programming languages? A. These need to be translated into machine code in order to run on a computer. B. These are written using mnemonic codes. C. These are specific to the computer's hardware. D. These are portable languages. Choose the correct answer from the options given below:
A
B and C only
B
A and B Only
C
A and D Only
✓ Correct
D
C and D only
Answer: option C — A and D Only
Detailed solution
Correct Answer
C. A and D Only
Explanation
Programming languages sit on a ladder. At the bottom is machine code. It is pure binary, and it is the only thing the CPU actually runs.
One step up is assembly language. It replaces binary opcodes with mnemonics (short code words like ADD, MOV, JMP). It is tied one-to-one to a particular processor's instruction set.
At the top are high-level languages (C, Java, Python, FORTRAN, COBOL). They use near-English syntax with variables, loops and functions. They are deliberately kept away from registers and memory addresses.
Two consequences define a high-level language. The two true statements state exactly these:
A. true — the CPU cannot run print(x). A compiler or interpreter must first translate the source code into machine code.
D. true — the code is not written in the hardware's own instruction set. So the same source can be recompiled for a different machine. This machine-independence is what portable means.
So the true set is A and D. That is option C.
Statement
Verdict
Reason
A. Need translation into machine code
True
Requires a compiler or interpreter
B. Written using mnemonic codes
False
Mnemonics belong to assembly language
C. Specific to the computer's hardware
False
That is machine and assembly language
D. Portable languages
True
Machine-independent source code
Key Points
Language ladder: machine code, then assembly, then high-level.
Mnemonics and hardware-dependence mark low-level (assembly) languages.
High-level languages are English-like, need a compiler or interpreter, and are portable.
Needing translation is not unique to high-level languages. Assembly needs an assembler.
Why the other options are incorrect
A
B and C only→Both describe low-level languages. Mnemonic codes (B) are the main feature of assembly. Hardware-specificity (C) is exactly what high-level languages were made to avoid. This option is the exact opposite of the right answer.
B
A and B Only→A is correct, but B brings in assembly's mnemonics. Also, needing translation is not unique to high-level languages. Assembly also needs an assembler. So A alone cannot settle the question. The feature that sets high-level languages apart is portability.
D
C and D only→C and D contradict each other. A language cannot be tied to one machine's hardware and also be portable across machines. Spotting this clash is enough to rule the option out.
Remember
Mnemonics and hardware-dependence = assembly (low-level). English-like syntax, needs a translator, runs anywhere = high-level.
Sit the whole UGC-NET 6 January 2025 (Shift 1) paper — in the printed order, on the official clock, with every answer explained when you submit.