Computer Knowledge

Programming Languages and Compilers

1,170 Questions

Programming languages and compilers involve the rules, syntax, and semantics used to write and execute software programs. Key areas include scripting languages, object oriented concepts, and parsing algorithms like top down parsers. Practice these computer science questions to build proficiency for technical and computer knowledge exams.

Object oriented languagesScripting languagesCompilers and parsersProgramming syntax

Programming Languages and Compilers Questions

Multiple choice
  1. Machine

  2. Application Language

  3. Low-level Language

  4. High-level Language

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Functional languages, such as Lisp or Haskell, are often referred to as application languages because they are designed to solve problems by evaluating functions rather than executing a sequence of imperative commands.

Multiple choice
  1. low level languages

  2. high level languages

  3. both (1) and (2)

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Machine language and assembly language are considered low-level languages because they are very close to the hardware architecture and require little to no abstraction.

Multiple choice
  1. Is used to control a keyboard, CRT Screen, and disks.

  2. Became the Standard Programming Language for personal computers.

  3. Was initially designed to be used by non-programmers.

  4. Both (1) and (2).

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CP/M (Control Program for Microcomputers) was an operating system that provided a standardized way for software to interact with hardware like keyboards, screens, and disk drives.

Multiple choice
  1. a tool for analyzing a C program

  2. an interactive debugger

  3. a C interpreter

  4. a C compiler

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice
  1. A combination of computer hardware

  2. A program which translates from one high-level language to another

  3. A program which translates from one high-level to a machine level

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

null