Programming Languages — Set 4
Computers · प्रोग्रामिंग भाषाएं · Questions 31–40 of 60
In computer languages, which term describes the rules that govern the formation of valid statements?
Correct Answer: D. Syntax
Syntax is the specific set of rules regarding the arrangement of symbols and keywords in a language. If the syntax rules are violated, the compiler or interpreter will throw an error and fail to run the code. It is equivalent to the grammar of a human language.
Which of these languages is a 'Scripting' language often used for server-side web logic?
Correct Answer: D. PHP
PHP is a widely used open-source scripting language that is especially suited for web development. It is executed on the server and generates HTML which is then sent to the client's browser. Most content management systems like WordPress are built on PHP.
Which language was developed by JetBrains and is now the preferred language for Android development?
Correct Answer: A. Kotlin
Kotlin is a modern, concise language that is fully interoperable with Java. Google announced it as a first-class language for Android in 2017 and later made it the preferred choice. It reduces the amount of boilerplate code compared to traditional Java.
What is the primary function of an 'Assembler'?
Correct Answer: B. To convert assembly language to machine code
An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer's processor can use to perform its basic operations. This is a crucial step for low-level development. Each type of processor requires its own specific assembler.
Which language is frequently used in scientific research for statistical analysis and machine learning along with Python?
Correct Answer: B. R
R provides a wide variety of statistical and graphical techniques for data analysis. It is highly extensible and has a large community of users in academia and research. It is particularly strong in generating high-quality plots and charts.
Which programming language category does 'C++' fall into, given its focus on classes and objects?
Correct Answer: B. Object-Oriented
Object-oriented programming (OOP) allows data and methods to be bundled together into objects. C++ was one of the first languages to bring these capabilities to a high-performance system language. This paradigm promotes code reuse and easier maintenance of large projects.
Which language is the primary language used for programming iOS applications for iPhones?
Correct Answer: A. Swift
Swift is Apple's modern programming language designed for safe and powerful app development. It replaced the older Objective-C as the standard language for iOS and macOS. It is open-source and features a syntax that is easy for developers to learn.
Which of these is considered a 'High-Level' language?
Correct Answer: C. Python
High-level languages use English-like words and abstract logic, making them easy for humans to read and write. They are independent of the computer's internal hardware architecture. Python, Java, and C are all examples of high-level languages.
Which language was originally known as 'Oak' before it was renamed?
Correct Answer: B. Java
Java was initially developed by James Gosling for interactive television but was too advanced for the industry at that time. It was renamed because the name 'Oak' was already trademarked by another company. It eventually found massive success in web and mobile applications.
What does 'OOP' stand for in the context of programming methodologies?
Correct Answer: B. Object-Oriented Programming
Object-Oriented Programming is a paradigm based on the concept of 'objects' which can contain data and code. It revolves around four main principles: encapsulation, inheritance, polymorphism, and abstraction. This methodology has dominated modern software engineering for decades.