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 general knowledge science & technology
  1. Machine language

  2. Application software

  3. System program

  4. All of the above

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

Machine language (binary code of 0s and 1s) is the only language computers can directly understand and execute. Application software and system programs are written in higher-level languages that must be translated to machine language first.

Multiple choice general knowledge science & technology
  1. processing

  2. kilobyte

  3. binary

  4. representational

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

Computers use binary language (base-2) to process data, representing all information as sequences of 0s and 1s. Binary is the fundamental language of digital computers. 'Processing' and 'representational' are not languages, and 'kilobyte' is a unit of digital storage measurement, not a processing language.

Multiple choice general knowledge science & technology
  1. Machine language

  2. Application software

  3. System program

  4. All of the above

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

Machine language (also called machine code) is the only language directly understood and executed by computers. It consists of binary instructions (0s and 1s) that the CPU can execute without translation. Application software and system programs are written in high-level languages that must be compiled or interpreted into machine language.

Multiple choice general knowledge science & technology
  1. Alain Colmerauer

  2. Nicklaus Wirth

  3. Seymour Papert

  4. John McCarthy

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

Alain Colmerauer led the team that developed PROLOG at the University of Marseilles in 1972. PROLOG uses predicate calculus for symbolic logic and reasoning, making it fundamental to AI programming. Nicklaus Wirth created Pascal, Seymour Papert developed LOGO, and John McCarthy invented LISP.

Multiple choice general knowledge science & technology
  1. Interpreter

  2. Compiler

  3. Operating system

  4. Assembler

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

Operating system is the odd one out because it's system software that manages computer resources. Interpreter, compiler, and assembler are all language translators that convert code from one form to another.

Multiple choice general knowledge science & technology
  1. Interpreter

  2. Loader

  3. Complier

  4. Assembler

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

An interpreter translates and executes high-level language code line by line, converting each statement to machine code before running it. A compiler converts the entire program at once, a loader loads programs into memory, and an assembler converts assembly language to machine code.

Multiple choice general knowledge science & technology
  1. well-formed

  2. well-documented

  3. non-validating and validating

  4. none of the above

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

The claimed answer C (non-validating and validating) is correct. XML parsers are classified into two main types: non-validating parsers (check only for well-formedness) and validating parsers (check both well-formedness and adherence to a DTD or schema). Options A, B, and D are incorrect as they don't represent actual parser classifications.

Multiple choice softskills creativity
  1. Java

  2. C/C++

  3. Python

  4. Pascal

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

C/C++ is faster than Java, Python, and Pascal because it's compiled to machine code without the overhead of a virtual machine or interpreter. Java uses JVM, Python is interpreted, and Pascal is generally slower than C. C/C++ gives the most direct hardware control.

Multiple choice softskills creativity
  1. Interpreter

  2. Operating system

  3. Compiler

  4. Assembler

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

An operating system is system software that manages hardware and software resources. Interpreters, compilers, and assemblers are all language translators used to convert source code into machine code.

Multiple choice technology programming languages
  1. True

  2. False

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

Java is strongly typed because every variable must be declared with a type, and the compiler performs strict type checking to ensure that values assigned to variables are compatible with their declared types, preventing many runtime errors.