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

Multiple choice
  1. machine code into high level language

  2. interprets code one line at a time

  3. low level language into machine code

  4. changes one language into another language

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

An assembler is a utility program that translates low-level assembly language code into machine code that the computer's CPU can directly execute. Interpreters translate high-level code line by line, while compilers translate high-level code all at once.

Multiple choice

Which of these is not a common feature of mathematical software?

  1. Graphical user interface (GUI)

  2. Command-line interface (CLI)

  3. Scripting language

  4. Spreadsheets

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

Spreadsheets are not a common feature of mathematical software, which typically provides GUIs, CLIs, or scripting languages for user interaction.

Multiple choice

Which of the following is a popular programming language for web development?

  1. Python

  2. JavaScript

  3. Java

  4. All of the above

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

Python, JavaScript, and Java are all popular programming languages for web development. Python is a general-purpose language that is easy to learn and use, making it a good choice for beginners. JavaScript is a scripting language that is used to create interactive web pages. Java is a powerful and versatile language that is used to develop a wide variety of applications, including web applications.

Multiple choice

Which of the following is a popular programming language for data analysis in Hadoop?

  1. Java

  2. Python

  3. R

  4. All of the above

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

Java, Python, and R are all popular programming languages for data analysis in Hadoop.

Multiple choice

Which of the following is NOT a commonly used programming language?

  1. Python

  2. Java

  3. C++

  4. BASIC

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

BASIC (Beginner's All-purpose Symbolic Instruction Code) is an older programming language that is less commonly used in modern software development compared to Python, Java, and C++.

Multiple choice

What is the primary function of a compiler in computer programming?

  1. Translating high-level code into machine code

  2. Executing program instructions

  3. Managing memory allocation

  4. Providing user interface

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

A compiler is a computer program that translates high-level programming language code into machine code, which can be directly executed by a computer's processor.

Multiple choice

Which of the following is a widely used programming language for web development?

  1. Python

  2. Java

  3. C++

  4. JavaScript

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

JavaScript is a widely used programming language for web development. It is a client-side scripting language that allows developers to create interactive and dynamic web pages.