Principles Of Programming Languages Set 8

On This Page

This set of Principles of Programming Languages Multiple Choice Questions & Answers (MCQs) focuses on Principles Of Programming Languages Set 8

Q1 | Which of the following can be used as a criterion for classification of data structures used in language processing.
  • nature of a data structure
  • purpose of a data structure
  • lifetime of a data structure
  • all of the above
Q2 | An assembler is
  • programming language dependent.
  • syntax dependant.
  • machine dependant.
  • data dependant.
Q3 | Which is not a funciton of a loader
  • allocation
  • translation
  • relocation
  • loading
Q4 | An interpreter is a program that
  • places programs into memory and prepares then for execution
  • automates the translation of assemble language into machine language
  • accepts a program written in a high level language and produces an object program
  • appears to execute a resource as if it were machine language
Q5 | disadvantage of compiler and go loading scheme is that
  • a position of memory is wasted because the case occupied by the assembler is unavailable the object program
  • it is necessary to retranslate the users program check every time it is run
  • it is very difficult to handle multiple segments especially if the source programs are in different language and to produce overlay modular programs
  • all of the above
Q6 | which of the following are language processors
  • assembler
  • compilers
  • interpreter
  • all of these
Q7 | An assembler converts
  • machine code to mnemonics
  • high level language to assembly level
  • assembly language to machine language
  • all of the above
Q8 | Numerous binding are performed amid program execution is called_ _ _ _
  • run time binding
  • late binding
  • both a) & b)
  • early binding
Q9 | Binding is done at_ _ _
  • translation time
  • execution time
  • both a) & b)
  • none
Q10 | Execution time binding is also called as
  • run time bindind
  • both
  • early binding
  • none
Q11 | Binding is chosen by .......
  • programmer
  • loader
  • translator
  • all of above
Q12 | The time amid program formulation or processing when this decision is made is named........
  • binding period
  • binding cycle
  • binding time
  • none
Q13 | Which of the following logic is used to produce loops in programme logic?1)A data object that is characterized and named unequivocally in a program is named as…………...
  • value.
  • variables.
  •   name.
  • scope.
Q14 | The function with the name ___________ is always written in every program
  • int
  • main
  • void
  • factorial
Q15 | The scope of a variable declared externally, is__________
  • local within the function declared
  • global
  • in multiple programs
  • none of the above
Q16 | The scope of a variable declared as static storage class is__________
  • local within the function declared
  • in multiple programs
  • global
  • none of the above
Q17 | __________binding is used to define the scope in terms of the lexical structure of a program.
  • static scope.
  • dynamic scope.
  • both
  • none of these