DSSSB TGT CS 2023 Shift 2 – Question 105

Question:

Which of the given options best describes the truthfulness of the following statements?
i) Assembly languages are machine dependent.
ii) A compiler is a program which produces a machine level program from the specifications of a high-level language.
iii) An interpreter translates and executes each program statement, one at a time.
iv) ‘BASIC’ language is an interactive programming language.

दिए गए विकल्पों में से कौन सा विकल्प निम्नलिखित कथनों की सत्यता का सबसे अच्छा वर्णन करता है?
i) असेम्बली लैंग्वेज मशीन पर निर्भर होती हैं।
ii) कम्पाइलर एक ऐसा प्रोग्राम है जो किसी उच्च-स्तरीय भाषा की विशिष्टताओं से एक मशीन लेवल प्रोग्राम तैयार करता है।
iii) इंटरप्रेटर एक बार में एक-एक करके प्रत्येक प्रोग्राम स्टेटमेंट को ट्रांसलेट और एग्जिक्यूट करता है।
iv) ‘BASIC’ लैंग्वेज एक इंटरैक्टिव प्रोग्रामिंग लैंग्वेज है।

Options:

  • i-True, ii-True, iii-True, iv-True
  • i-False, ii-True, iii-True, iv-True
  • i-True, ii-True, iii-False, iv-True
  • i-True, ii-False, iii-True, iv-True
  • i-सत्य, ii-सत्य, iii-सत्य, iv-सत्य
  • i-असत्य, ii-सत्य, iii-सत्य, iv-सत्य
  • i-सत्य, ii-सत्य, iii-असत्य, iv-सत्य
  • i-सत्य, ii-असत्य, iii-सत्य, iv-सत्य

Correct Answer: a)

Explanation:

Analyzing each statement:
– Statement i is True: Assembly language uses mnemonics that correspond directly to the instruction set architecture (ISA) of a specific processor; hence it is machine-dependent.
– Statement ii is True: A compiler is a language processor that translates the entire high-level language source code into machine code (object program) at once.
– Statement iii is True: An interpreter translates high-level instructions line-by-line (statement-by-statement) and executes each statement immediately.
– Statement iv is True: BASIC (Beginner’s All-purpose Symbolic Instruction Code), created by Kemeny and Kurtz in 1964, was designed as an interactive, time-sharing language.

Since all statements are true, the correct sequence is i-True, ii-True, iii-True, iv-True.

Hence, option 1 is the correct answer.

दिए गए कथनों का विश्लेषण:
– कथन i सत्य है: असेम्बली भाषा सीधे प्रोसेसर के आर्किटेक्चर (ISA) पर निर्भर होती है, इसलिए यह मशीन-निर्भर (machine dependent) होती है।
– कथन ii सत्य है: कम्पाइलर उच्च-स्तरीय भाषा (High-Level Language) के संपूर्ण कोड को एक साथ मशीन स्तर के प्रोग्राम (ऑब्जेक्ट कोड) में बदलता है।
– कथन iii सत्य है: इंटरप्रेटर प्रोग्राम के एक-एक स्टेटमेंट को क्रमिक रूप से ट्रांसलेट और एग्जिक्यूट करता है।
– कथन iv सत्य है: ‘BASIC’ भाषा को एक इंटरैक्टिव और सीखने में आसान प्रोग्रामिंग भाषा के रूप में डिज़ाइन किया गया था।

अतः सभी कथन सत्य हैं (i-सत्य, ii-सत्य, iii-सत्य, iv-सत्य)।

अतः सही उत्तर विकल्प 1 है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top