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. The target machine on which it is being executed.

  2. The target machine other than the machine on which it is being executed.

  3. By default, the target is server machine of the node on which it is being executed.

  4. Cross compiler does not generate machine code.

  5. Both 2 and 3

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

Cross compiler generates code for some other target machine defined by user. It can be some other processor or microcontrller or micro processors etc.

Multiple choice
  1. Serial Template Library

  2. Simple Template Library

  3. Standard Template Library

  4. Single Type Library

  5. Static Template Library

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

Standard Template Library (STL) is a C++ software library. It is the corect expansion of the term.

Multiple choice
  1. Java

  2. Cable

  3. Domain name

  4. Net

  5. COBOL

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

Java is a programming language that was specifically designed with applets in mind - small programs that run within web browsers. The 'write once, run anywhere' philosophy of Java made it ideal for creating downloadable applets that could execute on any platform with a Java Virtual Machine. While applets are now deprecated, Java was historically the primary language for applet development. Options like Cable, Domain name, Net, and COBOL are not programming languages used for creating applets.

Multiple choice
  1. Source Code

  2. Machine Language

  3. High Level Language

  4. Object Code

  5. Assembly Language

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

High-level languages are designed to be similar to human languages and easy for humans to read and write. Source code is code written in any language, Machine Language is binary (0s and 1s), Object Code is compiled machine code, and Assembly Language is low-level but still uses mnemonics.

Multiple choice
  1. It translates instructions of assembly language into 'machine language.

  2. It does not translate a C program.

  3. It is involved in execution of programs.

  4. It is a translating program.

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

An assembler is specifically designed to translate assembly language instructions into machine code. It cannot translate C programs, which require a C compiler. This statement correctly identifies what an assembler cannot do.