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
Which of the following is NOT a common programming language used for GPU programming?
C
Correct answer
Explanation
CUDA, OpenCL, and C++ are commonly used for GPU programming, while Python is not typically used for this purpose.
-
A programming language for GPUs
-
A library for GPU programming
-
A hardware architecture for GPUs
-
A software framework for GPU programming
A
Correct answer
Explanation
OpenCL is a programming language for GPUs that allows developers to write code that can be executed on GPUs.
Which of the following is NOT a common programming language used for GPU programming in engineering?
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.
What is the primary programming language used in R, a popular statistical software?
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.
What is the primary language used in React Native?
-
Java
-
Swift
-
JavaScript
-
Kotlin
C
Correct answer
Explanation
React Native primarily uses JavaScript for building cross-platform mobile applications.
What is the main programming language used in Xamarin?
A
Correct answer
Explanation
Xamarin primarily utilizes C# for developing cross-platform mobile applications.
What is the primary language used in NativeScript?
-
Java
-
Swift
-
JavaScript
-
TypeScript
C
Correct answer
Explanation
NativeScript primarily uses JavaScript for building cross-platform mobile applications.
What is the main programming language used in React Native?
-
Java
-
Swift
-
JavaScript
-
Kotlin
C
Correct answer
Explanation
React Native primarily uses JavaScript for building cross-platform mobile applications.
What is the main programming language used in Xamarin?
A
Correct answer
Explanation
Xamarin primarily utilizes C# for developing cross-platform mobile applications.
What is the primary language used in NativeScript?
-
Java
-
Swift
-
JavaScript
-
TypeScript
C
Correct answer
Explanation
NativeScript primarily uses JavaScript for building cross-platform mobile applications.
What is the main programming language used in Xamarin?
A
Correct answer
Explanation
Xamarin primarily utilizes C# for developing cross-platform mobile applications.
What is the term used for the programming language specifically designed for robot control?
-
Robot programming language
-
Robot control language
-
Robot motion language
-
All of the above
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.
Which of the following is NOT a common framework used for building SPAs?
-
React
-
Angular
-
Vue.js
-
ASP.NET MVC
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.
Which of the following is NOT a common approach for handling server-side rendering in SPAs?
-
Next.js
-
Nuxt.js
-
Gatsby
-
ASP.NET Core
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.
Which programming language is commonly used for game development?
-
Java
-
C++
-
Python
-
JavaScript
B
Correct answer
Explanation
C++ is a popular programming language for game development due to its speed, efficiency, and low-level control.