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

Which programming language is known for its high performance and is often used for developing real-time strategy (RTS) games and first-person shooters (FPS) games?

  1. C++

  2. Java

  3. Python

  4. C#

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

C++ is known for its high performance, making it suitable for developing real-time strategy (RTS) games and first-person shooters (FPS) games, which require fast and responsive gameplay.

Multiple choice

Which programming language is known for its simplicity and ease of learning, making it suitable for beginners and hobbyist game developers?

  1. C++

  2. Java

  3. Python

  4. C#

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

Python is known for its simplicity and ease of learning, making it suitable for beginners and hobbyist game developers. Its simple syntax and extensive library support make it easy to get started with game development.

Multiple choice

Which programming language is known for its strong community support and extensive documentation, making it easy to find resources and help when developing games?

  1. C++

  2. Java

  3. Python

  4. C#

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

C++ has a strong community support and extensive documentation, making it easy to find resources and help when developing games. This makes it a popular choice for both experienced and beginner game developers.

Multiple choice

Which programming language is known for its extensive support for 3D graphics and physics simulations, making it suitable for developing 3D games?

  1. C++

  2. Java

  3. Python

  4. C#

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

C++ has extensive support for 3D graphics and physics simulations, making it suitable for developing 3D games. Its libraries and tools for 3D graphics and physics simulations make it easier to create realistic and immersive 3D game environments.

Multiple choice

Which programming language is known for its cross-platform capabilities and is often used for developing mobile games?

  1. C++

  2. Java

  3. Python

  4. C#

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

Java is known for its cross-platform capabilities, making it suitable for developing mobile games. Its ability to run on multiple platforms, including Android and iOS, makes it a popular choice for mobile game developers.

Multiple choice

Which programming language is known for its strong support for networking and multiplayer gaming, making it suitable for developing online games?

  1. C++

  2. Java

  3. Python

  4. C#

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

C++ has strong support for networking and multiplayer gaming, making it suitable for developing online games. Its libraries and tools for networking and multiplayer gaming make it easier to create online games with real-time multiplayer functionality.

Multiple choice

Which programming language is known for its extensive support for artificial intelligence (AI) and machine learning, making it suitable for developing games with AI-driven characters and behaviors?

  1. C++

  2. Java

  3. Python

  4. C#

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

Python has extensive support for artificial intelligence (AI) and machine learning, making it suitable for developing games with AI-driven characters and behaviors. Its libraries and tools for AI and machine learning make it easier to create games with intelligent and responsive AI.

Multiple choice

Which programming language is known for its strong support for virtual reality (VR) and augmented reality (AR) development, making it suitable for developing VR and AR games?

  1. C++

  2. Java

  3. Python

  4. C#

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

C++ has strong support for virtual reality (VR) and augmented reality (AR) development, making it suitable for developing VR and AR games. Its libraries and tools for VR and AR development make it easier to create immersive and engaging VR and AR game experiences.

Multiple choice

Which programming language is primarily used for developing Android applications?

  1. Java

  2. Swift

  3. Kotlin

  4. C#

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

Java is the primary programming language used for developing Android applications. It is an object-oriented language that provides a rich set of libraries and tools for building mobile apps.

Multiple choice

Which programming language is primarily used for developing iOS applications?

  1. Java

  2. Swift

  3. Kotlin

  4. C#

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

Swift is the primary programming language used for developing iOS applications. It is a modern, powerful, and easy-to-learn language that is designed for building high-performance iOS apps.

Multiple choice

What is the most common type of transcription today?

  1. Human transcription

  2. Machine transcription

  3. Hybrid transcription

  4. Automated transcription

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

Hybrid transcription, which combines human and machine transcription, is the most common type of transcription today.

Multiple choice

What is the this keyword in JavaScript?

  1. It refers to the current object

  2. It refers to the global object

  3. It refers to the function that is being called

  4. It refers to the parent object

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

The this keyword in JavaScript refers to the current object. The value of this depends on how the function is called. When a function is called as a method of an object, this refers to that object. When a function is called as a standalone function, this refers to the global object.

Multiple choice

Which mobile cloud computing platform is primarily used for developing native iOS applications?

  1. Swift

  2. Java

  3. Kotlin

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

Swift is a programming language specifically designed for developing native iOS applications, providing high performance and seamless integration with Apple's iOS ecosystem.

Multiple choice

What is React?

  1. A JavaScript library for building user interfaces

  2. A programming language for web development

  3. A framework for building mobile applications

  4. A tool for creating 3D graphics

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

React is a JavaScript library that is used for building user interfaces. It is declarative, efficient, and flexible.

Multiple choice

Which of the following is not a built-in method of JavaScript arrays?

  1. push()

  2. pop()

  3. shift()

  4. filter()

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

The filter() method is not a built-in method of JavaScript arrays. It is a method of the Array.prototype object, which is added to all arrays by default.