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. Scratch

  2. Python

  3. HTML

  4. CSS

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

Python is a high-level, text-based programming language. Scratch is a visual block-based language, while HTML and CSS are markup and style sheet languages, respectively.

Multiple choice elements of accounts overview of computerised accounting system accounting software concepts and types of computerized accounting system types of accounting software

A software which checks the language syntax and eventually translates the source programme into machine language is called __________.

  1. operating software

  2. utility programmes

  3. application software

  4. language processors

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

Language processors, such as compilers and interpreters, are responsible for checking syntax and translating source code into machine language.

Multiple choice
  1. compiles source files into object files.

  2. compiles source files into machine code.

  3. translates bytecode into machine code.

  4. executes a java program and creates an executable file.

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

The JVM (Java Virtual Machine) is responsible for interpreting or JIT-compiling bytecode into machine-specific instructions.

Multiple choice
  1. Java is used only in web and mobile applications

  2. Java is used only in NASA's space related applications

  3. Java has a huge developer community

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

Java has a massive, global developer community and is widely used across many industries, not just specific domains.

Multiple choice
  1. Converts a program into machine code before it is run

  2. Converts a program into machine code when it is run

  3. Helps a programmer debug their code

  4. All of the above

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

A compiler translates the entire source code into machine code (an executable file) before the program is run, unlike an interpreter which translates code line-by-line during execution.