Tag: programming languages

Questions Related to programming languages

  1. Buffer overflows are eliminated

  2. Variables are renamed to provide more meaningful context

  3. Exception handlers are added to catch runtime errors

  4. New features are added based on the latest iterative design changes


Correct Option: B
  1. You couldn't type APL code using the characters on an ordinary typewriter keyboard

  2. As a Mac OS-only language you couldn't program in APL without using a GUI editor

  3. APL had no concept of strings; text had to be processed and output one character at a time

  4. As the world's only Albanian Programming Language all APL's keywords were based on Albanian


Correct Option: A
  1. Blaise Pascal

  2. Ada Lovelace

  3. Jean-Benoit Fortran

  4. William Henry Gates II


Correct Option: B
  1. Method calls may return only one value but objects may contain any number of methods

  2. The reference count of an object must reach zero for garbage collection to take place

  3. All classes must be declared in header files before they can be instantiated as objects

  4. None of the above


Correct Option: D
  1. A class that is instantiated exactly once producing just one object of that class

  2. A complete program that takes up only one line of code

  3. A data structure such as a linked list that contains only one member

  4. None of the above


Correct Option: A
  1. Race conditions can lead to data being corrupted in unexpected ways

  2. Inadequate memory management can lead to application deadlocks

  3. Too many threads or processes can actually decrease performance

  4. All of the above


Correct Option: D

Which of the following is NOT a characteristic of functional programming languages?

  1. Functions can take other functions as arguments and return them as results

  2. Algorithms are expressed in natural mathematical terms rather than as procedural steps

  3. Every function must modify some kind of state - either within the machine or in the outside world

  4. Recursion is encouraged


Correct Option: C
  1. An abstract device that can simulate the logic of any conceivable computer algorithm

  2. Any mechanism that can simulate human intelligence sufficiently to fool a human

  3. A device used by early programmers to input punch cards into the computer

  4. Any of a number of machines derived from the first mechanical computing devices


Correct Option: A
  1. To sort its data structures in memory so that they can be accessed more quickly

  2. To ensure that it is thread-safe by eliminating any deadlocks or race conditions

  3. To break it into simpler subobjects known as "episodes"

  4. To convert it into a form that can be saved to persistent storage


Correct Option: D