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
Which of the following is NOT a common programming paradigm?
-
Object-Oriented Programming
-
Procedural Programming
-
Functional Programming
-
Declarative Programming
D
Correct answer
Explanation
Declarative Programming is not a common programming paradigm. It is a programming style that focuses on expressing the logic of a program in terms of its desired outcome rather than the specific steps to achieve it.
Which scripting language is commonly used in the Unity game engine?
A
Correct answer
Explanation
C# is the primary scripting language used in the Unity game engine.
Which programming paradigm is commonly used in game engine scripting?
-
Object-oriented programming
-
Functional programming
-
Procedural programming
-
Logic programming
A
Correct answer
Explanation
Object-oriented programming is the most commonly used programming paradigm in game engine scripting.
What is the primary language used by the NetworkX library?
-
Python
-
C++
-
Java
-
JavaScript
A
Correct answer
Explanation
NetworkX is written primarily in Python, making it easily accessible to Python developers and users.
What is the primary language used by the Gephi library?
-
Python
-
C++
-
Java
-
JavaScript
C
Correct answer
Explanation
Gephi is written primarily in Java, making it accessible to Java developers and users.
Which of the following is a common programming language used for VR software development?
-
C++.
-
Java.
-
Python.
-
All of the above.
D
Correct answer
Explanation
VR software can be developed using a variety of programming languages, including C++, Java, and Python.
What is the primary programming language used in Flutter?
D
Correct answer
Explanation
Flutter uses Dart as its primary programming language, which is known for its fast compilation and easy-to-learn syntax.
What is the primary programming language used in Xamarin?
D
Correct answer
Explanation
Xamarin uses C# as its primary programming language, allowing developers to build native apps for iOS, Android, and Windows using a single codebase.
Which of the following 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 commonly used programming languages for game development.
Which programming language is commonly used for developing web applications with a focus on performance and scalability?
-
Python
-
Java
-
JavaScript
-
C#
B
Correct answer
Explanation
Java is known for its high performance, scalability, and robustness, making it a popular choice for large-scale web applications.
Which programming language is primarily used for developing server-side applications in Node.js?
-
Python
-
Java
-
JavaScript
-
C#
C
Correct answer
Explanation
Node.js is a JavaScript runtime environment that allows developers to write server-side applications using JavaScript.
Which programming language is primarily used for developing web applications in Ruby?
-
Python
-
Java
-
JavaScript
-
Ruby
D
Correct answer
Explanation
Ruby is a dynamic, object-oriented programming language designed for simplicity and productivity.
Which programming language is commonly used for developing web applications in PHP?
-
Python
-
Java
-
JavaScript
-
PHP
D
Correct answer
Explanation
PHP is a general-purpose scripting language that is widely used for web development.
Which programming language is primarily used for developing web applications in C#?
-
Python
-
Java
-
JavaScript
-
C#
D
Correct answer
Explanation
C# is a modern, object-oriented programming language developed by Microsoft.
What is the primary language used for programming GPUs in CUDA?
B
Correct answer
Explanation
CUDA programming is primarily done using C++, which provides extensions for GPU-specific operations.