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

What is the primary programming language used in Maple?

  1. Python

  2. C++

  3. Java

  4. Maple

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

Maple has its own proprietary programming language, also called Maple, which is specifically designed for symbolic computation.

Multiple choice

Which of the following is a type of formal language in the Chomsky hierarchy?

  1. Regular languages

  2. Context-free languages

  3. Context-sensitive languages

  4. Unrestricted languages

Reveal answer Fill a bubble to check yourself
Correct answer
Explanation

Regular languages, context-free languages, context-sensitive languages, and unrestricted languages are all types of formal languages in the Chomsky hierarchy.

Multiple choice

What is the most powerful type of formal language in the Chomsky hierarchy?

  1. Regular languages

  2. Context-free languages

  3. Context-sensitive languages

  4. Unrestricted languages

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

Unrestricted languages are the most powerful type of formal language in the Chomsky hierarchy.

Multiple choice

Which of the following is NOT a common type of language translation software?

  1. CAT Tools (Computer-Aided Translation Tools)

  2. Machine Translation Software

  3. Terminology Management Software

  4. Grammar Checkers

  5. Spell Checkers

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

Grammar Checkers are not specifically designed for language translation.

Multiple choice

What is the name of the first computer programming language?

  1. FORTRAN

  2. COBOL

  3. BASIC

  4. Pascal

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

FORTRAN, developed by John Backus in the 1950s, was the first computer programming language.

Multiple choice

Which of the following is a fundamental concept in computability theory?

  1. Turing Machine

  2. Lambda Calculus

  3. Regular Expression

  4. Finite State Machine

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

A Turing machine is a theoretical model of computation that defines an abstract machine that can be used to simulate any computer algorithm.

Multiple choice

Which programming language is commonly used for developing native iOS applications?

  1. Java

  2. Swift

  3. Kotlin

  4. C#

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

Swift is a programming language developed by Apple specifically for iOS, iPadOS, macOS, watchOS, and tvOS.

Multiple choice

Which programming language is commonly used for developing native Android applications?

  1. Java

  2. Swift

  3. Kotlin

  4. C#

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

Java is the primary programming language used for developing native Android applications.

Multiple choice

Which of the following languages is most commonly used for Artificial Intelligence and Machine Learning research in India?

  1. Python

  2. Java

  3. C++

  4. R

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

Python is a widely used programming language for Artificial Intelligence and Machine Learning due to its simplicity, readability, and extensive library support.

Multiple choice

What is the key feature of the GNU Radio library?

  1. High-Level Programming

  2. Real-Time Signal Processing

  3. Data Visualization

  4. Machine Learning Algorithms

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

GNU Radio is renowned for its capabilities in real-time signal processing, enabling the development of software-defined radios and other real-time signal processing systems.

Multiple choice

What was the first computer programming language?

  1. FORTRAN

  2. COBOL

  3. BASIC

  4. C

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

FORTRAN, developed by John Backus in the 1950s, was the first general-purpose computer programming language.

Multiple choice

Which programming language is commonly used for Big Data Analytics?

  1. Python

  2. Java

  3. R

  4. Scala

Reveal answer Fill a bubble to check yourself
Correct answer
Explanation

Python, Java, R, and Scala are popular programming languages used in Big Data Analytics. Python offers a wide range of libraries and frameworks specifically designed for data analysis and ML. Java is known for its scalability and performance. R is widely used for statistical analysis and data visualization. Scala is a powerful language designed for distributed computing and data processing.

Multiple choice

What is the difference between a compiler and an interpreter?

  1. A compiler translates high-level code into machine code, while an interpreter executes high-level code line by line.

  2. A compiler generates an intermediate code, while an interpreter generates machine code.

  3. A compiler is faster than an interpreter.

  4. All of the above

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

A compiler translates high-level code into machine code, while an interpreter executes high-level code line by line. A compiler generates an intermediate code, while an interpreter generates machine code. A compiler is faster than an interpreter.

Multiple choice

What is the primary function of the NumPy library in Python?

  1. Data Manipulation

  2. Statistical Analysis

  3. Machine Learning

  4. Data Visualization

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

NumPy is primarily used for numerical operations and data manipulation. It provides efficient data structures and functions for working with large multi-dimensional arrays and matrices.

Multiple choice

What is the main purpose of the Pandas library in Python?

  1. Data Manipulation

  2. Statistical Analysis

  3. Machine Learning

  4. Data Visualization

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

Pandas is primarily used for data manipulation and analysis. It provides data structures and operations for manipulating tabular data, including merging, filtering, grouping, and reshaping.