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

Which of the following is NOT a common programming paradigm?

  1. Object-Oriented Programming

  2. Procedural Programming

  3. Functional Programming

  4. Declarative Programming

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

Which scripting language is commonly used in the Unity game engine?

  1. C#

  2. Python

  3. Java

  4. C++

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

C# is the primary scripting language used in the Unity game engine.

Multiple choice

Which programming paradigm is commonly used in game engine scripting?

  1. Object-oriented programming

  2. Functional programming

  3. Procedural programming

  4. Logic programming

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

Object-oriented programming is the most commonly used programming paradigm in game engine scripting.

Multiple choice

What is the primary language used by the NetworkX library?

  1. Python

  2. C++

  3. Java

  4. JavaScript

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

NetworkX is written primarily in Python, making it easily accessible to Python developers and users.

Multiple choice

What is the primary language used by the Gephi library?

  1. Python

  2. C++

  3. Java

  4. JavaScript

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

Gephi is written primarily in Java, making it accessible to Java developers and users.

Multiple choice

Which of the following is a common programming language used for VR software development?

  1. C++.

  2. Java.

  3. Python.

  4. All of the above.

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

VR software can be developed using a variety of programming languages, including C++, Java, and Python.

Multiple choice

What is the primary programming language used in Flutter?

  1. Java

  2. Swift

  3. Kotlin

  4. Dart

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

Flutter uses Dart as its primary programming language, which is known for its fast compilation and easy-to-learn syntax.

Multiple choice

What is the primary programming language used in Xamarin?

  1. Java

  2. Swift

  3. Kotlin

  4. C#

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

Which of the following 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 commonly used programming languages for game development.

Multiple choice

Which programming language is commonly used for developing web applications with a focus on performance and scalability?

  1. Python

  2. Java

  3. JavaScript

  4. C#

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

Java is known for its high performance, scalability, and robustness, making it a popular choice for large-scale web applications.

Multiple choice

Which programming language is primarily used for developing server-side applications in Node.js?

  1. Python

  2. Java

  3. JavaScript

  4. C#

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

Node.js is a JavaScript runtime environment that allows developers to write server-side applications using JavaScript.

Multiple choice

Which programming language is primarily used for developing web applications in Ruby?

  1. Python

  2. Java

  3. JavaScript

  4. Ruby

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

Ruby is a dynamic, object-oriented programming language designed for simplicity and productivity.

Multiple choice

Which programming language is commonly used for developing web applications in PHP?

  1. Python

  2. Java

  3. JavaScript

  4. PHP

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

PHP is a general-purpose scripting language that is widely used for web development.

Multiple choice

Which programming language is primarily used for developing web applications in C#?

  1. Python

  2. Java

  3. JavaScript

  4. C#

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

C# is a modern, object-oriented programming language developed by Microsoft.

Multiple choice

What is the primary language used for programming GPUs in CUDA?

  1. C

  2. C++

  3. Python

  4. Java

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

CUDA programming is primarily done using C++, which provides extensions for GPU-specific operations.