1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Programming Languages

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Programming Languages

  • 63Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Programming Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is a programming language?

Tap to flipClick to flipspace

A language used to communicate instructions to a computer or other digital device.

Or swipe the card

63 cards

  1. What is a programming language?

    A language used to communicate instructions to a computer or other digital device.

  2. Why are programming languages needed?

    Computers cannot work independently; they need instructions expressed through a language they can process.

  3. What is an algorithm?

    A set of rules or a sequence of instructions for performing a specific task.

  4. How is a programming language related to algorithms?

    A programming language provides rules and structures for expressing algorithms that a computer can execute.

  5. What is syntax in a programming language?

    The structure and rules governing how commands and program instructions are written.

  6. What is semantics in a programming language?

    The meaning produced by syntactically written instructions.

  7. What two major components are commonly used to describe a programming language?

    Syntax and semantics.

  8. What is the formal definition of a programming language?

    A vocabulary and set of grammatical rules used to instruct a computer or computing device to perform a specific task.

  9. What kind of signals do computers directly understand?

    Electrical signals represented as high or low voltage levels.

  10. How are high and low electrical signals represented in computers?

    High voltage is represented by 111, and low voltage is represented by 000.

  11. What are binary digits?

    The digits 000 and 111 used to represent low and high electrical signals.

  12. What is machine language?

    A programming language consisting of combinations of binary digits that a computer understands directly.

  13. Why do machine-language programs generally execute quickly?

    The computer understands machine language directly, so no translator is required.

  14. Which computers were programmed using first-generation machine-level languages?

    First-generation vacuum-tube computers and early transistor computers.

  15. What were the main disadvantages of machine language?

    It was lengthy, difficult to understand, machine-dependent, nonportable, and time-consuming to write.

  16. Why were machine-language programs often very lengthy?

    Every part of the program had to be converted into binary digits, even for simple tasks.

  17. Why was machine language difficult for programmers to understand?

    Binary coding is complex and does not use familiar human-readable words.

  18. Why was machine language not portable?

    Machine code depends on the hardware and coding conventions of a specific computer.

  19. What is assembly language?

    A second-generation programming language that uses symbolic representations called mnemonics instead of binary codes.

  20. What are mnemonics in assembly language?

    Symbolic representations used to denote machine-level instructions or operations.

  21. What were the main advantages of assembly language over machine language?

    It was easier to understand and write, less error-prone, and required less programming time.

  22. Why does assembly language still require a translator?

    Computers cannot directly understand assembly language; it must be converted into machine language.

  23. What is the second generation of programming languages?

    Assembly language, used approximately from 195919591959 to 196519651965.

  24. Why are machine language and assembly language called low-level languages?

    They are closely tied to computer hardware and provide low-level representations of instructions.

  25. What is the third generation of programming languages?

    A group of higher-level languages developed around 196519651965 that use English-like instructions and are generally machine-independent.

  26. What problem led to the development of third-generation languages?

    The machine dependence and difficulty of programming separately for every computer.

  27. What does machine independence mean?

    A program can run on different computers without modification or with only minor modifications.

  28. Why are third-generation languages called high-level languages?

    They use English words to represent variables, commands, and programming structures.

  29. What is structured programming?

    A programming approach in which a large program is divided into smaller sections, each performing a specific task.

  30. Why are third-generation languages considered programmer-friendly?

    They are easier to learn and write, use English-like words, support structured programming, and are portable.

  31. Which languages were among the first third-generation programming languages?

    FORTRAN, ALGOL, and COBOL.

  32. Which modern languages were identified as examples of third-generation languages?

    C, C++, C#, and Java.

  33. What is a disadvantage of third-generation languages?

    They must be translated into machine language before execution, which adds translation time.

  34. How do fourth-generation languages differ from third-generation languages in their use of English?

    Fourth-generation languages use more common English-like syntax and phrases, rather than only a limited set of English words.

  35. What is a key advantage of fourth-generation languages?

    A single programmer-entered command can perform multiple common operations.

  36. What type of information do fourth-generation languages process effectively?

    Large collections of information rather than focusing mainly on individual bits and bytes.

  37. What are common uses of fourth-generation languages?

    Database management, report generation, mathematical optimization, graphical user-interface development, and web development.

  38. Why are fourth-generation languages described as nonprocedural?

    They specify what task should be performed while leaving the method of performing it to the language.

  39. What is a disadvantage of fourth-generation languages regarding programmer control?

    Because the language carries out much of the task automatically, the programmer has limited control over the program and resources.

  40. What resource disadvantages can fourth-generation language packages have?

    They can be lengthy and require more disk space and greater memory capacity.

  41. Which languages were given as examples of fourth-generation languages?

    SQL, NATURAL, M-POWER, and LANSA.

  42. What is the goal of fifth-generation programming languages?

    To enable computers to solve given problems with minimal or no direct programming by the user.

  43. When and where was the concept of fifth-generation languages first introduced?

    It was first introduced in Japan in the early 199019901990s.

  44. What is the primary application area of fifth-generation languages?

    Artificial intelligence research and development.

  45. What are disadvantages of fifth-generation languages?

    Their automated systems make development and maintenance more complicated and require more resources.

  46. Which languages were given as examples of fifth-generation languages?

    OPS5 and MERCURY.

  47. Which generations are classified as low-level languages?

    The first and second generations.

  48. Which generations are collectively classified as high-level languages?

    The third, fourth, and fifth generations.

  49. How do low-level and high-level languages differ in machine dependence?

    Low-level languages are machine-dependent, whereas high-level languages are machine-independent.

  50. How do low-level and high-level languages differ in representation?

    Low-level languages use binary digits or mnemonics; high-level languages use English-like words and phrases.

  51. How do low-level and high-level languages differ in portability?

    Low-level programs generally cannot run on different computers, while high-level programs can usually run on other computers with little or no modification.

  52. How do low-level and high-level languages differ in hardware interaction?

    Low-level programs can directly interact with hardware; high-level programs generally cannot.

  53. How do low-level and high-level languages differ in difficulty?

    Low-level languages are difficult to learn and implement, whereas high-level languages are easier to learn and use.

  54. What is a language translator?

    A program that converts source code written in another programming language into machine code, also called object code.

  55. What are language translators also called?

    Translators or language processors.

  56. What are the three main types of language translators?

    Assemblers, compilers, and interpreters.

  57. What does an assembler do?

    It converts assembly-language source code into machine-language object code.

  58. What does a compiler do?

    It translates an entire source program, generally written in a high-level language, into machine code as a whole.

  59. What does an interpreter do?

    It translates and executes a source program statement by statement.

  60. How do compiler and interpreter execution times generally differ?

    A compiler generally allows faster execution because it translates the whole program before it runs; an interpreter increases overall execution time by translating statement by statement.

  61. How do compilers and interpreters differ in error reporting?

    A compiler reports errors after scanning the entire program, while an interpreter stops when it encounters the first error.

  62. Which programming languages were identified as using compilers?

    C and C++.

  63. Which programming languages were identified as using interpreters?

    Python and Ruby.

Card 1 of 63
Card 1 of 63

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent