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 language used in blockchain development in the Commonwealth of Nations?

  1. Solidity

  2. C++

  3. Java

  4. Python

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

Solidity is the primary language used in blockchain development in the Commonwealth of Nations due to its specific design for writing smart contracts and its integration with the Ethereum platform.

Multiple choice

Which language is commonly employed in cloud computing within the Commonwealth of Nations?

  1. Python

  2. Java

  3. C++

  4. Go

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

Python is a popular language for cloud computing in the Commonwealth of Nations due to its versatility, extensive library support, and suitability for building scalable and reliable cloud applications.

Multiple choice

What is the dominant language used in cybersecurity in the Commonwealth of Nations?

  1. Python

  2. Java

  3. C++

  4. JavaScript

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

Python is the dominant language used in cybersecurity in the Commonwealth of Nations due to its extensive library support, versatility, and suitability for tasks such as data analysis, network security, and malware analysis.

Multiple choice

Which language is commonly employed in game development within the Commonwealth of Nations?

  1. C++

  2. Java

  3. C#

  4. UnrealScript

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

C++ is a widely used language for game development in the Commonwealth of Nations due to its performance, low-level control, and extensive library support for graphics, physics, and audio.

Multiple choice

What is the primary language used in robotics and automation in the Commonwealth of Nations?

  1. Python

  2. Java

  3. C++

  4. MATLAB

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

Python is the primary language used in robotics and automation in the Commonwealth of Nations due to its versatility, extensive library support, and suitability for tasks such as image processing, sensor data analysis, and control algorithms.

Multiple choice

What is the dominant language used in natural language processing in the Commonwealth of Nations?

  1. Python

  2. Java

  3. C++

  4. R

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

Python is the dominant language used in natural language processing in the Commonwealth of Nations due to its extensive library support, versatility, and suitability for tasks such as text classification, sentiment analysis, and machine translation.

Multiple choice

What is the term for the software used to program and configure industrial automation systems?

  1. PLC programming software

  2. SCADA software

  3. DCS software

  4. MES software

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

PLC programming software is used to develop and modify the control programs that run on PLCs.

Multiple choice

Which of the following is a popular programming language used for data analysis and machine learning tasks?

  1. Python

  2. Java

  3. C++

  4. R

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

Python is a versatile programming language that is widely used for data analysis and machine learning due to its extensive libraries and ease of use.

Multiple choice

Which of the following is NOT a type of language technology used in language documentation?

  1. Speech recognition software

  2. Machine translation software

  3. Natural language processing tools

  4. Optical character recognition software

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

Machine translation software is not typically used in language documentation as it is not designed to handle the complexities and nuances of endangered or under-resourced languages.

Multiple choice

Which of the following is a type of language annotation tool?

  1. ANNIS

  2. WebAnno

  3. Brat

  4. All of the above

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

ANNIS, WebAnno, and Brat are all different types of language annotation tools that are used for different purposes.

Multiple choice

Which programming language is commonly used for developing video games?

  1. C++

  2. Java

  3. Python

  4. C#

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

C++ is a popular choice for video game development due to its speed, efficiency, and low-level control, making it suitable for creating high-performance games with complex graphics and physics.

Multiple choice

Which of the following is a common formal language used in Computational Semantics?

  1. First-Order Logic

  2. Propositional Logic

  3. Lambda Calculus

  4. All of the above

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

First-Order Logic, Propositional Logic, and Lambda Calculus are all commonly used formal languages in Computational Semantics.

Multiple choice

Which of the following is a common approach to handling ambiguity in Computational Semantics?

  1. Word Sense Disambiguation

  2. Coreference Resolution

  3. Anaphora Resolution

  4. All of the above

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

Word Sense Disambiguation, Coreference Resolution, and Anaphora Resolution are all common approaches to handling ambiguity in Computational Semantics.

Multiple choice

Which of the following is a commonly used programming language in computational biology?

  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 computational biology due to its simplicity, versatility, and extensive library support for scientific computing and data analysis.

Multiple choice

Which NumPy function is used to calculate the standard deviation of an array?

  1. np.std()

  2. np.var()

  3. np.mean()

  4. np.median()

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

The np.std() function in NumPy is used to calculate the standard deviation of an array, which measures the spread of data around the mean.