Programming Languages — Set 6
Computers · प्रोग्रामिंग भाषाएं · Questions 51–60 of 60
Which generation of computer languages introduced the use of compilers and interpreters?
Correct Answer: C. 3rd Generation
The third generation (3GL) brought high-level languages like FORTRAN and COBOL that needed translation into machine code. Compilers and interpreters were developed to automate this translation process for humans. This era made programming much more accessible and efficient.
Which language is commonly used in data science and is a successor to the 'S' programming language?
Correct Answer: C. R
R is a specialized language for statistical computing and graphics. It is a major tool for data mining and statistical research globally. It was designed to be a modern and open-source implementation of the older S language.
Which language, developed by Apple, is the modern standard for iOS and macOS development?
Correct Answer: B. Swift
Swift was introduced by Apple in 2014 to provide a safer and more modern coding experience. It is much faster and easier to read than the older Objective-C. It has since become the primary language for building apps across all Apple devices.
What is the main advantage of using a 'High-Level Language'?
Correct Answer: B. It is easier for humans to read and write
High-level languages use English-like words and abstract logic, making them much more productive for programmers. They hide the complex hardware details of the computer from the user. However, they must be translated into machine code before they can be executed.
Which of these is a typical characteristic of 'Assembly Language'?
Correct Answer: B. Hardware-dependent
Assembly language is highly specific to a particular computer's CPU architecture. Code written for one type of processor will not run on a different one without being rewritten. This makes it very different from high-level languages which are generally portable.
The language 'BASIC' was designed in 1964 with what primary goal?
Correct Answer: A. Teaching beginners
BASIC was created at Dartmouth College to allow students who were not science specialists to use computers. Its simple commands and interactive nature made it the perfect tool for education. It later became the first language available for home personal computers.
Which computer language is famously known for its 'Indentation' rule to define code blocks?
Correct Answer: C. Python
In Python, the white space or indentation is not just for style; it is a mandatory part of the syntax. This forces developers to write code that is clean and consistently formatted. It eliminates the need for curly braces used in languages like C and Java.
What is the technical term for the '0s and 1s' code that a computer runs?
Correct Answer: C. Binary code
Binary code represents data and instructions as a sequence of two states: off (0) and on (1). It is the ultimate form that all programming languages must be converted into. This corresponds to the electronic switches inside the computer's processor.
Which programming paradigm is 'Java' primarily known for following?
Correct Answer: C. Object-Oriented
Java is a purely object-oriented language where everything is defined within 'classes'. This approach makes it excellent for building large-scale, modular software that is easy to manage. It helps developers model real-world concepts into code effectively.
Which language is the foundation for creating the content structure of web pages?
Correct Answer: A. HTML
HTML stands for HyperText Markup Language and is used to define elements on a web page like text, images, and buttons. Every web page you visit uses HTML as its base structure. It works together with CSS for styling and JavaScript for interactivity.