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
What is the primary programming language used for developing native iOS applications?
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.
What is the primary programming language used for developing native Windows Phone applications?
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.
Which of the following is NOT a common programming language used in game development?
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.
What was the primary programming language used for developing applications on Symbian OS?
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.
Which of these is a common programming language used for game development?
-
C++
-
Java
-
Python
-
All of the above
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.
Which of these is a common scripting language used in game development?
-
Lua
-
JavaScript
-
Python
-
All of the above
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.
What is the primary programming language used for developing native iOS applications?
-
Swift
-
Objective-C
-
Java
-
Kotlin
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.
What is the primary programming language used for developing native Android applications using Xamarin?
-
Swift
-
Objective-C
-
C#
-
Java
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#.
What is the term for a software program that can be used to translate text from one language to another?
-
Machine translation software
-
Language translation software
-
Translation software
-
All of the above
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.
Which programming languages were primarily supported by MeeGo for application development?
-
C++
-
Java
-
Python
-
All of the above
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.
What was the primary programming language used for developing MeeGo applications?
-
C++
-
Java
-
Python
-
All of the above
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.
Which of the following is not a common type of GPU programming language?
-
CUDA
-
OpenCL
-
DirectX
-
Python
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.
-
A programming language for GPUs
-
A library for GPU programming
-
A hardware architecture for GPUs
-
A software framework for GPU programming
D
Correct answer
Explanation
CUDA is a software framework for GPU programming 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?
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.