Computer Knowledge

Programming Languages and Compilers

2,284 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.

Multiple choice
  1. A way of representing characters as binary

  2. An IDE

  3. A protocol for internet communication

  4. An exclamation

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

ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns numeric values to characters, allowing computers to store and process text.

Multiple choice
  1. Data Manipulated Language

  2. Defined Manipulation Language

  3. data Morphed Language

  4. Data Manipulation Language

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

DML stands for Data Manipulation Language, which includes commands like INSERT, UPDATE, and DELETE used to manage and manipulate data within existing database structures.

Multiple choice
  1. To transform Java code into instructions usable by a web browser

  2. To transform Java code into instructions usable by the JVM

  3. To transform Java code into instructions usable by the operating system

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

The Java compiler (javac) translates human-readable Java source code into bytecode, which consists of instructions optimized for execution by the Java Virtual Machine (JVM). The JVM then translates this bytecode into machine-specific instructions for the host operating system.

Multiple choice
  1. A doctor in Java

  2. Source Code

  3. Documentation Generator

  4. A Code Compiler

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

Javadoc is a documentation generator tool created by Sun Microsystems. It parses the declarations and documentation comments in Java source files to produce standard HTML documentation pages.

Multiple choice
  1. Lexical Analysis

  2. Validation Analysis

  3. Syntactic Analysis

  4. Semantic Analysis

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

The standard stages of compilation include lexical analysis, syntactic analysis, and semantic analysis, which analyze the structure and meaning of the source code. Validation analysis is not a recognized stage in the compilation process. After these analysis phases, the compiler typically generates and optimizes machine code.