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 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.

Multiple choice

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

  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 in engineering, while Python is not typically used for this purpose.

Multiple choice

What is the primary programming language used in R, a popular statistical software?

  1. Python

  2. Java

  3. C++

  4. R

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

R is a statistical software that uses its own programming language, also called R, for data analysis, statistical modeling, and graphical visualization.

Multiple choice

What is the primary language used in React Native?

  1. Java

  2. Swift

  3. JavaScript

  4. Kotlin

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

React Native primarily uses JavaScript for building cross-platform mobile applications.

Multiple choice

What is the main programming language used in Xamarin?

  1. C#

  2. Java

  3. Swift

  4. Kotlin

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

Xamarin primarily utilizes C# for developing cross-platform mobile applications.

Multiple choice

What is the primary language used in NativeScript?

  1. Java

  2. Swift

  3. JavaScript

  4. TypeScript

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

NativeScript primarily uses JavaScript for building cross-platform mobile applications.

Multiple choice

What is the main programming language used in React Native?

  1. Java

  2. Swift

  3. JavaScript

  4. Kotlin

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

React Native primarily uses JavaScript for building cross-platform mobile applications.

Multiple choice

What is the main programming language used in Xamarin?

  1. C#

  2. Java

  3. Swift

  4. Kotlin

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

Xamarin primarily utilizes C# for developing cross-platform mobile applications.

Multiple choice

What is the primary language used in NativeScript?

  1. Java

  2. Swift

  3. JavaScript

  4. TypeScript

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

NativeScript primarily uses JavaScript for building cross-platform mobile applications.

Multiple choice

What is the main programming language used in Xamarin?

  1. C#

  2. Java

  3. Swift

  4. Kotlin

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

Xamarin primarily utilizes C# for developing cross-platform mobile applications.

Multiple choice

What is the term used for the programming language specifically designed for robot control?

  1. Robot programming language

  2. Robot control language

  3. Robot motion language

  4. All of the above

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

Robot programming language, robot control language, and robot motion language all refer to the programming language specifically designed for robot control.

Multiple choice

Which of the following is NOT a common framework used for building SPAs?

  1. React

  2. Angular

  3. Vue.js

  4. ASP.NET MVC

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

ASP.NET MVC is a server-side framework, while React, Angular, and Vue.js are popular client-side frameworks used for building SPAs.

Multiple choice

Which of the following is NOT a common approach for handling server-side rendering in SPAs?

  1. Next.js

  2. Nuxt.js

  3. Gatsby

  4. ASP.NET Core

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

ASP.NET Core is a server-side framework, while Next.js, Nuxt.js, and Gatsby are popular frameworks for generating static sites or providing server-side rendering for SPAs.

Multiple choice

Which programming language is commonly used for game development?

  1. Java

  2. C++

  3. Python

  4. JavaScript

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

C++ is a popular programming language for game development due to its speed, efficiency, and low-level control.