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
  1. objects

  2. classes

  3. Union

  4. functions

  5. operators

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

In a structure oriented language a program is divided into small programs called functions. C functions are basic building blocks in a program. All C programs are written using functions to improve reusability, understandability and to keep track on them. A large C program is divided into basic building blocks called C function. C function contains set of instructions enclosed by “{}” which performs specific operation in a C program. Actually, Collection of these functions creates a C program.

Multiple choice
  1. Cobalt

  2. Mysql

  3. AI

  4. All of the above

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

Robotics is fundamentally based on Artificial Intelligence (AI), which enables robots to perceive, process information, and make autonomous decisions. While robotics uses various technologies, AI provides the cognitive framework that allows machines to perform complex tasks. Cobalt is a material, MySQL is a database system, and 'All of the above' is incorrect since only AI is the foundational field.

Multiple choice
  1. Object Based Language

  2. Structured Programming Language

  3. Procedural Language

  4. Object Oriented Language

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

C++ is a multi-paradigm language that supports object-oriented programming (classes, inheritance, polymorphism, encapsulation). While it also supports procedural and generic programming, its classification as an Object-Oriented Language is correct because it provides complete OOP features including classes, objects, inheritance, and virtual functions.

Multiple choice
  1. The UML is a language for visualising

  2. The UML is a language for constructing

  3. The UML is a language for modeling

  4. The UML is a language for documenting

  5. None of these

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

This means that it is possible to map from a model in the UML to a programming language such as JAVA, C++ or VB, or even to table in the relational database or the persistent store of an object oriented database.