Vitorr Classes
Vitorr Classes
Learn • Practice • Improve
Home › Questions › Question solution
RRB NTPC 2026 Topic 2 – General Awareness Bilingual Quiz (150 Questions)

What is the main function of a compiler?

कंपाइलर का मुख्य कार्य क्या है?
Answer and explanation are free to read — no sign-in required. / उत्तर और व्याख्या पढ़ने के लिए साइन-इन आवश्यक नहीं है।
A
GNU Compiler Collection
जीएनयू कंपाइलर संग्रह
B
Lexical Analysis
शब्दीय विश्लेषण
C
To translate source code into target code
सोर्स कोड को लक्ष्य कोड में बदलना
✓
D
Assembler
असेंबलर

Correct Answer / सही उत्तर

C. To translate source code into target code
C. सोर्स कोड को लक्ष्य कोड में बदलना

Explanation / व्याख्या

Correct answer: To translate source code into target code.. A compiler is classified as system software because it translates high-level programming language source code into machine code or another lower-level form that can be executed or further processed by a computer. A compiler is a language translator that analyses the entire program, checks for lexical, syntax and semantic errors, and generates target code. It helps programmers develop software without writing instructions directly in machine language.

सही उत्तर: सोर्स कोड को लक्ष्य कोड में बदलना।। कंपाइलर को सिस्टम सॉफ्टवेयर की श्रेणी में रखा जाता है, क्योंकि यह उच्च-स्तरीय प्रोग्रामिंग भाषा में लिखे गए सोर्स कोड को मशीन कोड या अन्य निम्न-स्तरीय रूप में परिवर्तित करता है, जिसे कंप्यूटर निष्पादित कर सकता है या आगे संसाधित किया जा सकता है। कंपाइलर एक भाषा अनुवादक है, जो पूरे प्रोग्राम का विश्लेषण करता है, शब्दीय, वाक्य-विन्यास और अर्थ-संबंधी त्रुटियों की जाँच करता है तथा लक्ष्य कोड तैयार करता है। इसकी सहायता से प्रोग्रामर सीधे मशीन भाषा में निर्देश लिखे बिना सॉफ्टवेयर विकसित कर सकते हैं।

Continue to the Quiz Containing This Question

Open the complete quiz and continue practising the full question set.

Practice More Like This