Top 150+ Solved Principles of Programming Languages MCQ Questions Answer

From 106 to 120 of 192

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.

  • d. all of the above.

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

  • a. in,out,in out

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

  • c. a formal parameter is declared within the called procedure, while an actual parameter is declared in the calling environment.

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

  • c. object pascal

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

  • b. syntax

Q. …………………..defines the meaning of the program.

a. algebric semantic

b. axiomatic semantics

c. denotational semantic

d. translation semantics

  • b. axiomatic 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

  • 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

  • d. float

Q. Which is the subtypes of Pascal and Ada Data Types

a. unstucture

b. pointers

c. structure

d. all of these

  • 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

  • d. all of these
Subscribe Now

Get All Updates & News