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

Which of the following is a popular programming language for data science?

  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 in data science due to its simplicity, versatility, and extensive library support.

Multiple choice

What was the first computer programming language specifically designed for mathematical computations?

  1. FORTRAN

  2. ALGOL

  3. APL

  4. LISP

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

FORTRAN (FORmula TRANslator) was the first computer programming language specifically designed for mathematical computations.

Multiple choice

What was the name of the mathematical software developed by IBM in the 1960s?

  1. FORTRAN

  2. ALGOL

  3. APL

  4. PL/I

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

APL (A Programming Language) was developed by IBM in the 1960s.

Multiple choice

What is the name of the library that provides number theory functions in C#?

  1. BouncyCastle

  2. Crypto++

  3. Math.NET Numerics

  4. NCalc

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

BouncyCastle is a C# library that provides a collection of functions for performing number theory operations, including finding factors, calculating greatest common divisors, and solving Diophantine equations.

Multiple choice

What is the primary programming language used for developing smart contracts on the Ethereum blockchain?

  1. Solidity

  2. Python

  3. Java

  4. C++

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

Solidity is the primary programming language used for developing smart contracts on the Ethereum blockchain.

Multiple choice

What is the name of the programming language used for developing smart contracts on the Corda blockchain?

  1. Kotlin

  2. Java

  3. Python

  4. Solidity

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

Kotlin is the programming language used for developing smart contracts on the Corda blockchain.

Multiple choice

What is the name of the programming language used for developing smart contracts on the Ethereum blockchain?

  1. Solidity

  2. Python

  3. Java

  4. C++

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

Solidity is the programming language used for developing smart contracts on the Ethereum blockchain.

Multiple choice

What is the name of the programming language used for developing smart contracts on the Corda blockchain?

  1. Kotlin

  2. Java

  3. Python

  4. Solidity

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

Kotlin is the programming language used for developing smart contracts on the Corda blockchain.

Multiple choice

Which of the following is a high-level programming language commonly used for web development?

  1. C

  2. C++

  3. Java

  4. Python

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

Python is a popular high-level programming language known for its simplicity and versatility. It is widely used in web development due to its extensive library support and frameworks like Django and Flask.

Multiple choice

Which of the following is a common programming language used for mobile app development?

  1. C#

  2. Java

  3. Swift

  4. Kotlin

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

Swift is a modern programming language developed by Apple specifically for iOS and macOS app development. It is known for its simplicity, safety, and performance, making it a popular choice for building mobile applications.

Multiple choice

Which of the following is a common programming language used for data analysis and visualization?

  1. C++

  2. Java

  3. R

  4. Python

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

Python is a popular programming language for data analysis and visualization due to its extensive library support, such as NumPy, Pandas, and Matplotlib. These libraries provide powerful tools for data manipulation, statistical analysis, and creating informative visualizations.

Multiple choice

Which of the following is a common programming language used for game development?

  1. C#

  2. Java

  3. Unreal Engine

  4. Unity

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

Unity is a popular game development platform that provides a comprehensive set of tools and features for creating 2D and 3D games. It is known for its ease of use, cross-platform support, and extensive asset store, making it a popular choice among game developers.

Multiple choice

Which of the following is a common programming language used for embedded systems development?

  1. C

  2. C++

  3. Java

  4. Python

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

C is a widely used programming language for embedded systems development due to its efficiency, low-level control, and portability. It is commonly used in microcontrollers and other resource-constrained devices.

Multiple choice

Which of the following is a common programming language used for blockchain development?

  1. C++

  2. Java

  3. Solidity

  4. Python

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

Solidity is a high-level programming language specifically designed for developing smart contracts on the Ethereum blockchain. It allows developers to create decentralized applications (dApps) and define the rules and conditions for transactions on the blockchain.

Multiple choice

Which of the following is a type of formal language?

  1. Natural Language

  2. Programming Language

  3. Mathematical Language

  4. All of the above

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

Formal languages are artificial languages that are used to represent information in a precise and unambiguous way.