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

What programming language is primarily used for developing Fuchsia applications?

  1. Java

  2. Swift

  3. Kotlin

  4. C++

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

Fuchsia applications are primarily developed using C++, although other languages, such as Rust and Go, are also supported.

Multiple choice

What is the most common type of robot programming?

  1. Teach pendant programming

  2. Offline programming

  3. Adaptive programming

  4. Sensor-based programming

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

Teach pendant programming is the most common type of robot programming.

Multiple choice

Which of the following is NOT a type of robot programming language?

  1. Karel

  2. VAL

  3. Python

  4. C++

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

Python is not a type of robot programming language.

Multiple choice

What is the primary programming language used for developing Firefox OS apps?

  1. JavaScript

  2. Java

  3. C++

  4. Python

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

Firefox OS apps are primarily developed using JavaScript, which allows for cross-platform compatibility and easy integration with web technologies.

Multiple choice

What was the primary programming language used to develop Palm OS applications?

  1. C++

  2. Java

  3. Python

  4. Objective-C

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

C++ was the primary programming language used to develop Palm OS applications.

Multiple choice

Which NLP library is commonly used for natural language generation (NLG) tasks?

  1. spaCy

  2. NLTK

  3. TextBlob

  4. OpenAI GPT-3

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

OpenAI GPT-3 is a large-scale language model developed by OpenAI, known for its impressive natural language generation capabilities. It can generate coherent and human-like text, making it useful for various NLG tasks such as text summarization, dialogue generation, and machine translation.

Multiple choice

Which programming language is commonly used for developing smart contracts on the Ethereum platform?

  1. Solidity.

  2. Python.

  3. Java.

  4. C++.

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

Solidity is a high-level programming language specifically designed for developing smart contracts on the Ethereum platform. It provides a syntax similar to JavaScript and is optimized for writing and deploying smart contracts on the Ethereum Virtual Machine (EVM).

Multiple choice

What programming language is primarily used for Android development?

  1. C++

  2. Java

  3. Python

  4. Swift

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

Android apps are primarily developed using the Java programming language, although other languages like Kotlin are also supported.

Multiple choice

Which of the following is NOT a Tizen programming language?

  1. C

  2. C++

  3. Java

  4. Python

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

Python is not a Tizen programming language.

Multiple choice

Which of the following is a popular programming language for computational physics?

  1. Python

  2. C++

  3. Fortran

  4. Java

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

Python has gained popularity in computational physics due to its extensive library support, ease of use, and versatility, making it suitable for a wide range of scientific computing tasks.

Multiple choice

What is the name of the quantum programming language developed by Google?

  1. Cirq

  2. Qiskit

  3. Forest

  4. PennyLane

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

Cirq is a quantum programming language developed by Google.

Multiple choice

Which programming language was primarily used for developing applications for WebOS?

  1. Java

  2. C++

  3. Objective-C

  4. JavaScript

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

WebOS applications were primarily developed using JavaScript, leveraging its cross-platform capabilities.

Multiple choice

What was the name of the computer programming language developed by Grace Hopper in the 1950s?

  1. COBOL

  2. FORTRAN

  3. BASIC

  4. Assembly

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

COBOL (Common Business-Oriented Language) was developed by Grace Hopper in the 1950s and was specifically designed for business applications.

Multiple choice

Which programming language was developed by Grace Hopper?

  1. COBOL

  2. FORTRAN

  3. BASIC

  4. Pascal

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

Grace Hopper, an American computer scientist and US Navy rear admiral, was the lead developer of COBOL (Common Business-Oriented Language), a widely used programming language designed for business applications.

Multiple choice

What is the primary programming language used for developing native Android applications?

  1. Java

  2. Kotlin

  3. Swift

  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. Kotlin is a newer language that is also supported by Android, but it is not as widely used as Java.