Top 150+ Solved Principles of Programming Languages MCQ Questions Answer
Q. Which of the following can be used as an argument for a procedure parameter?
a. the name of a variable
b. .a literal value
c. an expression.
d. all of the above.
Q. If you don’t specify a mode for a parameter, what is the default mode?
a. out
b. in
c. copy
d. none
Q. Which kind of parameters cannot have a DEFAULT value?
a. in,out,in out
b. read,write, append
c. constant,variable,default
d. copy, nocopy,ref
Q. Which one of the following statements about formal and actual parameters is true?
a. formal and actual parameters must have the same name
b. formal and actual parameters must have different names.
c. a formal parameter is declared within the called procedure, while an actual parameter is declared in the calling environment.
d. an actual parameter is declared within the called procedure
Q. This resembles usages in object-oriented programming languages like________, C++ and Java.
a. pascal (programming language)
b. free pascal
c. object pascal
d. embarcadero delphi
Q. …………………means combine available symbol to create well formed sentences in the language
a. semantics
b. syntax
c. both a & b
d. none of above
Q. ………………….hints at characteristics of language , which are related to language user.
a. syntax
b. semantics
c. pragmatic
d. rules
Q. …………………..defines the meaning of the program.
a. algebric semantic
b. axiomatic semantics
c. denotational semantic
d. translation semantics
Q. Which semantics are used in compiler i.e. convert program into machine language
a. algebric semantic
b. axiomatic semantics
c. denotational semantic
d. translation semantics
Q. Which of the following is not the built in data types of Pascal?
a. integer
b. real
c. char
d. float
Q. Which is the subtypes of Pascal and Ada Data Types
a. unstucture
b. pointers
c. structure
d. all of these
Q. Which is the subtypes of unstructured types of Pascal Data Types
a. built –in
b. enumeration
c. subrange
d. all of these