Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q811: Fill in the blank: In C++, strings are implemented using ______ arrays.
  • A: Boolean
  • B: Integer
  • C: Char
  • D: Float
View Answer
C

Q812: Which of the following languages allows accuracy specifications in floating-point types?
  • A: FORTRAN 77
  • B: Ada
  • C: C++
  • D: Pascal
View Answer
B

Q813: Which programming language does not support enumeration types?
  • A: Pascal
  • B: Ada
  • C: C++
  • D: Java
View Answer
D

Q814: What is the key difference between an array and a record?
  • A: Arrays are heterogeneous, and records are homogeneous.
  • B: Arrays are homogeneous, and records are heterogeneous.
  • C: Arrays are logical groupings, and records are dynamic.
  • D: Arrays have faster access than records.
View Answer
B

Q815: Which language uses level numbers to define nested records?
  • A: COBOL
  • B: Pascal
  • C: Ada
  • D: Modula-2
View Answer
A

Q816: What type of reference includes all record names in a hierarchy?
  • A: Fully qualified references
  • B: Elliptical references
  • C: Pointer references
  • D: Dynamic references
View Answer
A

Q817: Which of the following languages initializes all pointers to null?
  • A: Pascal
  • B: Ada
  • C: Java
  • D: C++
View Answer
B

Q818: What is the term for a pointer pointing to a deallocated variable?
  • A: Memory leak
  • B: Dangling pointer
  • C: Lost heap variable
  • D: Null pointer
View Answer
B

Q819: Which type of union in Ada ensures safety by requiring a tag?
  • A: Non-discriminated union
  • B: Free union
  • C: Discriminated union
  • D: Dynamic union
View Answer
C

Q820: In C/C++, what is a void pointer used for?
  • A: Storing integers only
  • B: Pointing to any type
  • C: Type checking only
  • D: Deallocation only
View Answer
B

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now