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

What is the name of the scripting language used in the Unity Engine?

  1. C#

  2. Java

  3. Python

  4. Lua

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

Unity primarily uses C# as its scripting language, although it also supports other languages like JavaScript and Boo.

Multiple choice

Which library offers a collection of functions for numerical optimization and root finding in Python?

  1. NumPy

  2. SciPy

  3. Sympy

  4. Matplotlib

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

SciPy includes a range of optimization and root-finding algorithms, such as gradient descent and Newton-Raphson method.

Multiple choice

What is the primary programming model used for developing GPU applications?

  1. Assembly language.

  2. C++.

  3. Java.

  4. Python.

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

CUDA (Compute Unified Device Architecture) is a parallel programming model and API developed by NVIDIA that allows programmers to harness the power of GPUs for general-purpose computing. It is widely used for developing GPU applications, particularly in the fields of graphics, scientific computing, and machine learning.

Multiple choice

Which of the following is not a core technology used in web application development?

  1. HTML

  2. CSS

  3. JavaScript

  4. C++

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

C++ is a general-purpose programming language, while HTML, CSS, and JavaScript are specifically designed for web development.

Multiple choice

Which type of app is built specifically for a particular platform, such as iOS or Android?

  1. Native app

  2. Hybrid app

  3. Web app

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

Native apps are built using platform-specific programming languages and tools, and they have access to the full range of features and capabilities of the device.

Multiple choice

What is the primary programming language used in Unity?

  1. C#

  2. C++

  3. Java

  4. Python

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

Unity primarily uses C# as its programming language, offering a user-friendly and efficient development environment.

Multiple choice

What is the scripting language used in Unreal Engine?

  1. C#

  2. C++

  3. Lua

  4. Visual Scripting

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

Unreal Engine primarily utilizes C++ as its scripting language, providing developers with extensive control and flexibility.

Multiple choice

What is the primary programming language used in CryEngine?

  1. C#

  2. C++

  3. Lua

  4. Python

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

CryEngine primarily utilizes C++ as its programming language, offering developers low-level control and high performance.

Multiple choice

What is the scripting language used in Godot Engine?

  1. C#

  2. C++

  3. GDScript

  4. Visual Scripting

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

Godot Engine utilizes its own scripting language called GDScript, which is designed to be easy to learn and use.

Multiple choice

What is the primary programming language used in Cocos Creator?

  1. C#

  2. C++

  3. JavaScript

  4. Lua

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

Cocos Creator primarily utilizes JavaScript as its programming language, making it accessible to web developers and JavaScript enthusiasts.

Multiple choice

What is the scripting language used in Lumberyard?

  1. C#

  2. C++

  3. Lua

  4. Python

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

Lumberyard primarily utilizes C++ as its scripting language, providing developers with low-level control and high performance.

Multiple choice

What is the primary programming language used in ARKit?

  1. Swift

  2. Objective-C

  3. C#

  4. Java

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

ARKit primarily utilizes Swift as its programming language, making it accessible to iOS developers and those familiar with Apple's programming ecosystem.

Multiple choice

Which of the following is a common data science programming language?

  1. Python

  2. Java

  3. C++

  4. R

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

Python is widely used in data science due to its extensive libraries, such as NumPy, Pandas, and Scikit-learn, which provide powerful tools for data manipulation, analysis, and machine learning.

Multiple choice

Which programming language is commonly used for robot programming?

  1. C++

  2. Python

  3. Java

  4. MATLAB

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

C++ is widely used in robot programming due to its efficiency, performance, and low-level control capabilities.

Multiple choice

What was the main programming language used for developing Bada applications?

  1. Java

  2. C++

  3. Objective-C

  4. JavaScript

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

C++ was the main programming language used for developing Bada applications.