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
  1. class classname {varibale declaration function declaration};

  2. class {variables; function;};

  3. class classname{variables function};

  4. class classname;{ };

  5. class classname {member variables; member function;}

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

This is the correct syntax of declaring a class and members of the class.

Multiple choice
  1. Windows 98

  2. PASCAL

  3. FORTRAN

  4. C++

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

Windows 98 is an operating system, not a programming language. PASCAL, FORTRAN, and C++ are all well-established programming languages used for different applications - from scientific computing to system programming.

Multiple choice
  1. Coding

  2. Processing

  3. Programming

  4. File

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

Coding refers to the process of writing instructions in a programming language that computers can execute. While programming is a broader term encompassing design and logic, coding specifically means writing the actual code. Processing is general computation, and file refers to data storage.

Multiple choice
  1. MS - OFFICE

  2. ORACLE

  3. JAVA

  4. FLASH

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

JAVA is a programming language. MS-OFFICE is application software, ORACLE is a database management system, and FLASH is animation software - none are programming languages themselves.

Multiple choice
  1. Peter notorn

  2. Patrick notron

  3. Dennis Ritchie

  4. David mark

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

Dennis Ritchie created the C programming language at Bell Labs in the 1970s. C became one of the most influential languages, serving as the foundation for many modern languages like C++, Java, and Python.

Multiple choice
  1. A programming language

  2. A run-time environment

  3. A class library

  4. all of the above

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

Java encompasses multiple components: the programming language syntax, the Java Virtual Machine (JVM) runtime environment that executes Java bytecode, and the extensive Java Class Library frameworks that provide pre-built functionality.

Multiple choice
  1. target

  2. source

  3. block

  4. none of these

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

Source code is the original programming code written by developers in a programming language (like C++, Java, Python) before it is compiled into machine-readable executable code. Source code is human-readable and contains the logic and instructions that define the software's behavior. Target code refers to the compiled or translated output that computers execute.

Multiple choice
  1. it does not have structures

  2. it does not have pointers

  3. it has clean code

  4. it is object oriented

  5. it is a simple language

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

Absence of pointers makes a language clean.