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. Program execution activity

  2. Language processing activity

  3. Program generator domain

  4. Allocation

  5. Program translation

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

This technique arises due to the differences between the manner in which a software designer describes the ideas concerning the behaviour of a software and the manner in which these ideas are implemented in a computer system.

Multiple choice
  1. iomanip.h

  2. stdio.h

  3. fstream.h

  4. iostream.h

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

The fstream.h header file (or in standard C++) provides classes and functions for file input/output operations. The read() function reads data from a file, and open() opens a file stream. iostream.h handles console I/O, stdio.h is for C-style I/O, and iomanip.h is for I/O formatting.

Multiple choice
  1. assembly language programming

  2. programming of microcomputer

  3. control unit programming

  4. macro-programming of micro-computers

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

Microprogramming involves programming the control unit of a CPU using microinstructions. Each machine instruction is broken down into micro-operations (microinstructions) stored in control memory. The control unit executes these microinstructions to perform the actual operations. It is not assembly language programming (which uses mnemonics), nor programming of microcomputers in general.

Multiple choice
  1. specifying the syntax of a language

  2. describing how a program works

  3. shell programming

  4. multi user programming

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

BNF (Backus-Naur Form) is a formal notation used to specify the syntax of programming languages and other formal languages. It defines grammar rules and production rules, not how programs work or shell programming.

Multiple choice
  1. is a low level language

  2. descibes what processing is to be done without specifying the particular procedures to be used

  3. is frequently used by software designers

  4. all of the above

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

descibes what processing is to be done without specifying the particular procedures to be used