Principles Of Programming Languages Set 6

On This Page

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

Q1 | Which of the following are subtypes of discrete and real data types of Ada?
  • enumeration (char,boolean other enum)
  • integer (signed integer, modular integer)
  • floating point
  • all of these
Q2 | In which language ADT is not implemented by using class
  • c++
  • java
  • vb
  • ada
Q3 | illegal operation that manipluate the data object is called
  • type system
  • type error
  • type safety
  • all of these
Q4 | which type of error occure in program
  • language error
  • applicaton error
  • all of these
  • syntax error
Q5 | In intensional mapping range type values are directly associated with domain type values
  • true
  • false
Q6 | Extensional mapping is a routine in which the range type values are associated as data aggregates
  • true
  • false
Q7 | What is the output of the folloeing code? int main() { double x=1.2; int sum=(int)x + 1; printf("sum=%d",sum); return 0; }
  • 2.2
  • 2
  • conversion from double to int is not possible
Q8 | 1)The software development process originally consisted only of the ------------phase.
  • impletation
  • design
  • testing
  • none of above
Q9 | The section examines briefly the developments in language design by following the evolution of ideas and concepts from a ----------------.
  • historical perspective
  • language and maintainability
  • none of the above
  • allof theabove
Q10 | In the early days of computing, the computer was used mainly in__________
  • historical perspective
  • language and maintainability
  • scientific applications.
  • allof theabove
Q11 | The desire to apply the computerin more and more applications led to its being used in increasingly less under-stood and more -----------------
  • historical perspective
  • sophisticated environments.
  • none of the above
  • allof theabove
Q12 | _________considerations forced people to enhancean existing system to meet the newly recognized needs.
  • social
  • economic
  • none of the above
  • allof theabove
Q13 | is another issue that has gained importance gradually,because of two major factors.
  • system reliability
  • language and maintainability
  • none of the above
  • allof theabove
Q14 | System reliability is another issue that has gained importance gradually,because of --------------major factors.
  • one
  • two
  • none of the above
  • three
Q15 | One factor of system Reliability isthat systems are being developedfor users with little or no ---------
  • computer background
  • image background
  • none of the above
  • allof theabove
Q16 | The second factor of system reliability is that systemsare now being applied in critical areas such as chemical or nuclear plants andpatient monitoring, where system failures can be disastrous. In order toensure ----------, verification and validation became vital..
  • reliability
  • maintainability
  • none of the above
  • allof theabove
Q17 | In the early days of computing, the ------------- was used mainly in scientific applications
  • computer
  • printer
  • none of the above
  • allof theabove
Q18 | The runtime storage might be subdivided of hold___________.
  • generated target code
  • data objects
  • control stack for procedure activation
  • all of these
Q19 | During exection of a program the compiler clemandy for block of memory to operahng system This block is called as______________.
  • code memory
  • data memory
  • runtime
  • none of these
Q20 | Data memory is divided into_________________.
  • static data area
  • stack area
  • heap area
  • all of these
Q21 | following are the limitations of static allocation strategy
  • size of data objects should be known at compile time
  • data structure can not be created dynamically this allocation strategy
  • recursion procedure are not supported by this allocation strategy
  • all of these
Q22 | which field is not present in the activation record?
  • actual parameter
  • register allocation
  • saved machine status
  • access link
Q23 | In activation record the control link is basically a____________.
  • static link
  • dynamic link
  • null pointer
  • none of these
Q24 | The assigned a pointer to the first instruction of the code segment for the_____.
  • code memory
  • variable
  • subprogram
  • none of these
Q25 | A block representation can be portrayed by ________,which demonstrates how blocks are nested into one another.
  • current instruction pointer(cip)
  • static nesting tree(snt)
  • current environment pointer(cep)
  • all of these