Q5 · BPSC Prelims 2023 · Set A · General Studies

Which of the following are computer languages?1.Cobra2.Python3.Squirrel4.JavaSelect the correct answer using the codes given below

A Only 1 and 2
B Only 3 and 4
C Only 1, 2 and 3
D All of the above

Correct answer: (d) All of the above

Explanation

  1. A

    Only 1 and 2

    Limiting the list to only Cobra and Python excludes Squirrel and Java. Java is one of the most widely taught and deployed general-purpose languages, and Squirrel is a real lightweight scripting language used in games and embedded applications. Therefore “only 1 and 2” is too narrow.

  2. B

    Only 3 and 4

    Choosing only Squirrel and Java leaves out Cobra and Python. Python is a mainstream language for science, web and automation, and Cobra is a known object-oriented language (CLR/.NET family) with Python- and C#-like features. Excluding them makes this option wrong.

  3. C

    Only 1, 2 and 3

    This option accepts Cobra, Python and Squirrel but drops Java. Java remains a core enterprise and Android-related language with decades of continuous use, so any list of “computer languages” among these four that omits Java is incomplete.

  4. D

    All of the above

    All four—Cobra, Python, Squirrel and Java—are computer programming languages. Python and Java are globally mainstream; Cobra is an object-oriented language targeting the .NET Common Language Runtime; Squirrel is a high-level imperative–OO scripting language designed for applications that need a small embeddable interpreter. The question asks which of the named items are computer languages, and the answer is all of them.

Summary. Official key is (d). Cobra, Python, Squirrel and Java are all programming languages, so the complete set is correct.

PDF
Daily news · PIB · quiz — Free