Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q801: Which feature weakens strong typing in C++ compared to Ada?
  • A: Lack of operators
  • B: Coercion rules
  • C: Memory allocation
  • D: Parameter passing
View Answer
B

Q802: Which language does not support decimal data types?
  • A: COBOL
  • B: Java
  • C: Ada
  • D: None of the above
View Answer
B

Q803: What is the main advantage of strong typing in programming languages?
  • A: Readability
  • B: Error detection
  • C: Code reusability
  • D: Memory allocation
View Answer
B

Q804: In C++, how are strings handled?
  • A: As primitive types
  • B: Using char arrays
  • C: As linked lists
  • D: As string objects
View Answer
B

Q805: Which of the following is not a primitive data type?
  • A: Integer
  • B: Boolean
  • C: Array
  • D: Floating Point
View Answer
C

Q806: Enumeration types in Ada allow symbolic constants to be _______.
  • A: Reused
  • B: Nested
  • C: Static
  • D: Immutable
View Answer
A

Q807: Which category of arrays provides the most execution efficiency?
  • A: Fixed stack dynamic
  • B: Stack-dynamic
  • C: Static
  • D: Dynamic
View Answer
C

Q808: What type of data type is represented by "digits 7 range 0.0..1000.0" in Ada?
  • A: Integer
  • B: Floating Point
  • C: Decimal
  • D: Boolean
View Answer
B

Q809: Which subscript types are allowed in Pascal arrays?
  • A: Integer only
  • B: Ordinal types
  • C: Floating-point
  • D: Character only
View Answer
B

Q810: Fill in the blank: ______ is an example of a strongly typed language.
  • A: FORTRAN 77
  • B: Ada
  • C: C
  • D: C++
View Answer
B

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now