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. It is a high level language.

  2. It is a low level language.

  3. It is a machine level language.

  4. It is an assembly level language.

  5. It is a middle level language.

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

ALGOL is a high level language.

Multiple choice
  1. Machine-specific code

  2. Java code

  3. Machine-independent code

  4. None of the above is correct

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

Java bytecode is machine-independent code that runs on any platform with a JVM. It's an intermediate representation between Java source code and machine code, allowing Java's 'write once, run anywhere' capability. Option A is incorrect because bytecode is not machine-specific, and B is wrong because Java source code must be compiled to bytecode first.

Multiple choice
  1. Machine-specific code

  2. Java code

  3. Machine-independent code

  4. None of the above is correct

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

Java bytecode is an intermediate, machine-independent code that runs on the Java Virtual Machine (JVM). This 'write once, run anywhere' design allows Java programs to run on any platform with a JVM without recompilation. The JVM interprets or compiles bytecode into machine-specific instructions.