Sail E0 Webinar

Computer Aptitude

PROGRAMMING LANGUAGES MCQs

Total Questions : 19 | Page 2 of 2 pages
Question 11.

The language used for development of various games is

  1.    C
  2.    LOGO
  3.    Java
  4.    SOL
  5.    C+ +
 Discuss Question
Answer: Option E. -> C+ +
C++ is a general-purpose programming language used for the development of various games. It is an extension of the C language and offers features such as object-oriented programming, generic programming, etc. It is a compiled language and is therefore faster than other programming languages.

Definition of C++:
C++ is a general-purpose, middle-level programming language. It is an extension of the C language and provides features such as object-oriented programming, generic programming, etc. It is a compiled language and is therefore faster than other programming languages.

Reasons why C++ is used for game development:
It provides object-oriented programming which allows developers to structure their code in an organized way.
It provides a wide range of libraries which can be used for game development.
It is a compiled language which means that the code is compiled before it is executed, making it faster than other languages.
It provides support for low-level programming which allows developers to access hardware resources such as memory, I/O, etc.
It provides extensive support for graphics and audio programming which is essential for game development.
It provides support for various platforms such as Windows, Mac, Linux, etc.
It is a platform-independent language which allows developers to port their games to different platforms easily.

Conclusion:
C++ is a general-purpose programming language which is used for the development of various games. It provides features such as object-oriented programming, generic programming, low-level programming, extensive support for graphics and audio programming, support for various platforms, and platform-independence.
Question 12.

Which of the following is not true in context of FORTRAN?

  1.    It was developed for scientific and mathematical applications
  2.    It is one of the oldest high level languages
  3.    It is a problem oriented language
  4.    It requires extensive internal documentation
  5.    None of the above
 Discuss Question
Answer: Option B. -> It is one of the oldest high level languages

FORTRAN (Formula Translator) is a third-generation programming language developed in the late 1950s by John Backus and his team at IBM for scientific and mathematical applications. It is one of the oldest high-level languages and has been used to program computers since 1957.

Although FORTRAN is an old language, it is still widely used in scientific and engineering applications because of its ability to efficiently process numerical data. FORTRAN is a problem-oriented language, meaning that it is designed to solve specific types of problems, such as numerical and scientific problems. This is in contrast to other languages, such as C, which is a procedural language, meaning that it is designed to solve general-purpose problems.

FORTRAN requires extensive internal documentation, which means that programs written in FORTRAN must be thoroughly commented so that other programmers can understand the code. This is an important feature of FORTRAN, as it allows for the easy maintenance and modification of programs.

In conclusion, FORTRAN was developed for scientific and mathematical applications, is one of the oldest high level languages, is a problem oriented language, and requires extensive internal documentation. Therefore, Option B (It is one of the oldest high level languages) is not true in the context of FORTRAN.
Question 13.

Which of the following is not characteristic of COBOL?

  1.    It is a very standardized language
  2.    It is a very efficient in terms of coding and execution
  3.    It has limited facilities for mathematical notation
  4.    It is very readable language
  5.    None of the above
 Discuss Question
Answer: Option B. -> It is a very efficient in terms of coding and execution
A. It is a very standardized language:COBOL stands for "COmmon Business-Oriented Language." It is a programming language that was designed for business applications. COBOL is a very standardized language, which means that it has a well-defined syntax and structure that programmers must follow. This standardization makes it easier to write, read, and maintain COBOL programs, as there are clear guidelines to follow.
B. It is very efficient in terms of coding and execution:This option is incorrect, as COBOL is not known for being very efficient in terms of coding and execution. In fact, compared to more modern programming languages, COBOL can be relatively slow and resource-intensive. However, COBOL's focus on readability and maintainability makes it an ideal language for business applications that require long-term support and maintenance.
C. It has limited facilities for mathematical notation:COBOL is primarily designed for business applications, and as such, it has limited facilities for mathematical notation. While it is possible to perform mathematical operations in COBOL, the language is not optimized for complex mathematical calculations.
D. It is a very readable language:One of COBOL's key strengths is its readability. COBOL code is designed to be easily read and understood by humans, even those without programming experience. This makes COBOL an ideal language for business applications that require long-term maintenance and support, as it is easy for new programmers to understand existing code.
E. None of the above:This option is incorrect, as we have already established that option B is not characteristic of COBOL. The correct answer is B.
In conclusion, COBOL is a standardized and readable programming language designed for business applications, but it is not known for its efficiency in terms of coding and execution.
Question 14.

Which of the following is an example of problem oriented language?

  1.    BASIC
  2.    PL/1
  3.    FORTRAN
  4.    All of these
  5.    None of these
 Discuss Question
Answer: Option D. -> All of these
Question 15.

In the evaluation of a computer language, all of the following characteristics should be considered except

  1.    application oriented features
  2.    efficiency 
  3.    readability
  4.    hardware maintenance costs
  5.    None of the above
 Discuss Question
Answer: Option D. -> hardware maintenance costs
Question 16.

A factor in the selection of a source language is

  1.    programmer skill
  2.    language availability
  3.    program compatibility with other software
  4.    All of the above
  5.    None of the above
 Discuss Question
Answer: Option D. -> All of the above
When choosing a source language, there are several factors that need to be taken into consideration. Let's examine each of the options to understand why all of the above are important:
A. Programmer skill: The knowledge and expertise of the programmer in a particular programming language can have a significant impact on the choice of source language. If the programmer has strong skills in a particular language, it may be more efficient and practical to use that language for the project. On the other hand, if the programmer is not familiar with a language, it may take more time and resources to complete the project.
B. Language availability: Availability of a particular programming language is another crucial factor in selecting a source language. Some languages are more widely available and supported than others, which can make them more accessible and easier to work with. Language availability can also affect the availability of development tools, libraries, and community support for the language.
C. Program compatibility with other software: Compatibility with other software can be important in determining the choice of source language. The language used should be compatible with other software systems used in the project, such as database systems, web servers, or other libraries. If the language used is not compatible with other software, it may result in issues during integration, resulting in delays and increased costs.
In conclusion, all of the above factors - programmer skill, language availability, and program compatibility with other software - are important considerations when choosing a source language. Each factor can have a significant impact on the development process and the success of the project. Therefore, option D is the correct answer.
Question 17.

All computers execute

  1.    BASIC programs
  2.    COBOL programs
  3.    Machine language programs
  4.    FORTRAN programs
  5.    None of the above
 Discuss Question
Answer: Option C. -> Machine language programs
Question 18.

Which of the following is not one of the process that a high level language program must go through before it is ready to be executed?

  1.    Translation 
  2.    Controlling
  3.    Loading
  4.    Linking
  5.    None of these
 Discuss Question
Answer: Option A. -> Translation 
Translation is not one of the processes that a high level language program must go through before it is ready to be executed. The other processes required to prepare a high level language program for execution are:

Controlling: Controlling is the process of organizing the program code into a sequence of instructions that can be executed by the computer. The controlling process ensures that the program code is written in a format that the computer can understand and follow.

Loading: Loading is the process of transferring the program code from the storage device to the main memory. The loaded program code is then ready to be executed by the computer.

Linking: Linking is the process of combining the program code with code from other programs or libraries. The linked program code is then ready to be executed by the computer.

In summary, translation is not one of the processes that a high level language program must go through before it is ready to be executed. The other processes required are controlling, loading, and linking.
Question 19.

............ are words that a programming language has set aside for its own use.

  1.    Control words
  2.    Control structures
  3.    Reserved words
  4.    Reserved keys
  5.    None of these
 Discuss Question
Answer: Option B. -> Control structures

Latest Videos

Latest Test Papers