Top 150+ Solved Principles of Programming Languages MCQ Questions Answer

From 46 to 60 of 192

Q. What is the role of compiler by templates?

a. probability

b. type-safe

c. code elimination

d. allof these

  • b. type-safe

Q. A mathematical model with a collection of operations defined on that model is called__________.

a. data structure

b. abstract data type

c. built in data type

d. none of these

  • b. abstract data type

Q. What is strong type system?

a. the type system in which only built-in data types are allowed.

b. the type system in which only user defined data types are allowed.

c. a type system that guarantees not to generate type errors.

d. none of these

  • c. a type system that guarantees not to generate type errors.

Q. Identify the built-in data type__________________.

a. struct

b. class

c. int

d. enum

  • c. int

Q. What will happen if null pointer is converted to boolean___________.

a. the boolean value is evaluated to true

b. the boolean value is evaluated to false

c. errror is raised

d. none of these

  • b. the boolean value is evaluated to false

Q. When the type conversion is required?

a. the value to be stored is in the form not supported by data type

b. the value supported is beyond the max limit

c. to reduce the memory in use associated with that value

d. all of these

  • d. all of these

Q. What is strong type system?

a. the type system in which only built-in data types are allowed.

b. the type system in which only user defined data types are allowed.

c. the type system that guarantees not to generate type errors.

d. none of these

  • c. the type system that guarantees not to generate type errors.

Q. chosse the incorrect statement

a. int a[]=new int[10]

b. int[] a=new int[10]

c. int a[]=int[10] new

d. all of these

  • c. int a[]=int[10] new

Q. which of the following is not data type in pascal?

a. real

b. float

c. double

d. struct

  • b. float

Q. during implicit conversion is it possible to

a. loss of information

b. sign can be lost

c. occure overlow

d. all of these

  • c. occure overlow
Subscribe Now

Get All Updates & News