Top 150+ Solved Principles of Programming Languages MCQ Questions Answer
Q. Which is the subtypes of structured type of Pascal Data Types
a. cartesian product(record, variant record and discriminated union
b. array (finite mapping)
c. set (power set)
d. all of these
Q. Which is the subtypes of derived data type of C++
a. array
b. class
c. structure and function
d. all of these
Q. Which of the following are structured dta types in Ada?
a. cartesian product(record, variant record and discriminated union
b. array(finite mapping,sequence(string))
c. tagged
d. all of these
Q. Which of the following are subtypes of discrete and real data types of Ada?
a. enumeration (char,boolean other enum)
b. integer (signed integer, modular integer)
c. floating point
d. all of these
Q. illegal operation that manipluate the data object is called
a. type system
b. type error
c. type safety
d. all of these
Q. which type of error occure in program
a. language error
b. applicaton error
c. all of these
d. syntax error
Q. 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; }
a. 2.2
b. 2
c. 2
d. conversion from double to int is not possible
Q. 1)The software development process originally consisted only of the ------------phase.
a. impletation
b. design
c. testing
d. none of above
Q. The section examines briefly the developments in language design by following the evolution of ideas and concepts from a ----------------.
a. historical perspective
b. language and maintainability
c. none of the above
d. allof theabove
Q. In the early days of computing, the computer was used mainly in__________
a. historical perspective
b. language and maintainability
c. scientific applications.
d. allof theabove