Programming Languages — Set 2
Computers · प्रोग्रामिंग भाषाएं · Questions 11–20 of 60
What is the primary role of a 'Compiler' in the programming process?
Correct Answer: A. To translate source code to machine code
A compiler translates the entire high-level source code into a target language, usually binary machine code, at once. The resulting file can then be executed independently of the original source code. This generally leads to faster execution speeds compared to interpreted code.
Which language, named after a 19th-century mathematician, was developed for the US Department of Defense?
Correct Answer: D. Ada
Ada is named after Ada Lovelace, who is often regarded as the first computer programmer. The language was designed to be highly reliable and is used in safety-critical systems like aviation and space. It emphasizes strong typing and modularity.
Which of these is a low-level language that is directly understood by the computer's CPU?
Correct Answer: A. Machine Language
Machine language consists purely of binary strings (0s and 1s) that correspond to specific electronic signals. It is the only language that a computer's central processing unit can execute without any translation. Humans find it extremely difficult to write or debug code at this level.
Which language was developed by Niklaus Wirth as a tool for teaching structured programming?
Correct Answer: D. Pascal
Pascal was released in 1970 and named in honor of the French mathematician Blaise Pascal. It encouraged good programming practices by requiring a clear structure and data definitions. It was the standard teaching language in universities for several decades.
Which language is primarily used for system-level programming and game development due to its performance and efficiency?
Correct Answer: A. C++
C++ was created by Bjarne Stroustrup as an extension of the C language to include object-oriented features. It provides high-speed execution and direct hardware control, making it ideal for resource-intensive software. Most major operating systems and modern video games are built using C++.
What is the main purpose of the 'SQL' language in computing?
Correct Answer: A. Database Management
SQL stands for Structured Query Language and is used to communicate with relational databases. It allows users to create, retrieve, update, and delete data from large information systems. It is an industry-standard language used by almost all data-driven applications.
Which language was designed to be easy for beginners and was built into most early microcomputers?
Correct Answer: D. BASIC
BASIC stands for Beginners' All-purpose Symbolic Instruction Code and was developed at Dartmouth College. It allowed students from non-science backgrounds to use computers for the first time. In the 1980s, it became the default language for home computers.
Which type of language is 'PROLOG' generally categorized as, based on its focus on facts and rules?
Correct Answer: A. Logic Programming
PROLOG stands for Programming in Logic and is used for solving problems that involve complex relationships. Instead of defining a sequence of steps, the programmer defines a set of facts and rules. It is a major language in the fields of computational linguistics and AI.
Which markup language is the standard for creating the structure of web pages?
Correct Answer: C. HTML
HTML stands for HyperText Markup Language and uses tags to define elements like headings, paragraphs, and links. It provides the skeleton of every website viewed on the internet. While it is a language used for coding, it is not considered a 'programming language' in the logic-processing sense.
Which language was developed by Apple as a faster and safer replacement for Objective-C?
Correct Answer: C. Swift
Swift was introduced in 2014 for developing apps across Apple's ecosystem, including iOS and macOS. It was designed to eliminate common programming errors and improve app performance. It has quickly become the primary language for Apple platform development.