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 is the primary programming language used for developing native iOS applications?

  1. Java

  2. Kotlin

  3. Swift

  4. C#

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

Swift is the primary programming language used for developing native iOS applications. It is a modern, safe, and expressive language that is designed for building high-performance apps.

Multiple choice

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

  1. Java

  2. Kotlin

  3. Swift

  4. C#

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

C# is the primary programming language used for developing native Windows Phone applications. It is a modern, object-oriented language that is designed for building high-performance apps.

Multiple choice

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

  1. C++

  2. Java

  3. Python

  4. Lua

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

Python is not as commonly used in game development as the other options, which are all popular choices for game development.

Multiple choice

What was the primary programming language used for developing applications on Symbian OS?

  1. Java

  2. C++

  3. Python

  4. C#

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

C++ was the primary programming language used for developing native applications on Symbian OS, offering developers a high level of control and performance.

Multiple choice

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

  1. C++

  2. Java

  3. Python

  4. All of the above

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

C++, Java, and Python are all popular programming languages used for game development. C++ is known for its performance and low-level control, while Java is a versatile language with a large ecosystem of libraries and tools. Python is often used for rapid prototyping and scripting in games.

Multiple choice

Which of these is a common scripting language used in game development?

  1. Lua

  2. JavaScript

  3. Python

  4. All of the above

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

Lua, JavaScript, and Python are all popular scripting languages used in game development. They allow developers to add dynamic behavior and logic to games without having to modify the core game engine code.

Multiple choice

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

  1. Swift

  2. Objective-C

  3. Java

  4. Kotlin

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

Swift is a modern, general-purpose programming language developed by Apple. It is designed for developing iOS, iPadOS, macOS, watchOS, tvOS, and Linux applications.

Multiple choice

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

  1. Swift

  2. Objective-C

  3. C#

  4. Java

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

Xamarin is a cross-platform mobile application development platform that allows developers to build native apps for Android, iOS, and Windows using a single codebase. The primary programming language used for developing Xamarin apps is C#.

Multiple choice

What is the term for a software program that can be used to translate text from one language to another?

  1. Machine translation software

  2. Language translation software

  3. Translation software

  4. All of the above

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

Machine translation software, language translation software, and translation software are all terms for a software program that can be used to translate text from one language to another.

Multiple choice

Which programming languages were primarily supported by MeeGo for application development?

  1. C++

  2. Java

  3. Python

  4. All of the above

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

MeeGo supported multiple programming languages for application development, including C++, Java, and Python, providing developers with flexibility in choosing the language that best suited their needs.

Multiple choice

What was the primary programming language used for developing MeeGo applications?

  1. C++

  2. Java

  3. Python

  4. All of the above

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

C++ was the primary programming language used for developing MeeGo applications, offering high performance, flexibility, and compatibility with a wide range of hardware platforms.

Multiple choice

Which of the following is not a common type of GPU programming language?

  1. CUDA

  2. OpenCL

  3. DirectX

  4. Python

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

CUDA, OpenCL, and DirectX are all common types of GPU programming languages. Python, on the other hand, is a general-purpose programming language that is not typically used for GPU programming.

Multiple choice

What is CUDA?

  1. A programming language for GPUs

  2. A library for GPU programming

  3. A hardware architecture for GPUs

  4. A software framework for GPU programming

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

CUDA is a software framework for GPU programming that allows developers to write code that can be executed on GPUs.

Multiple choice

Which of the following is NOT a common programming language used for GPU programming?

  1. CUDA

  2. OpenCL

  3. Python

  4. C++

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

CUDA, OpenCL, and C++ are commonly used for GPU programming, while Python is not typically used for this purpose.

Multiple choice

What is OpenCL?

  1. A programming language for GPUs

  2. A library for GPU programming

  3. A hardware architecture for GPUs

  4. A software framework for GPU programming

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

OpenCL is a programming language for GPUs that allows developers to write code that can be executed on GPUs.