Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q821: What is the main issue with unions in Pascal?
  • A: Tags are mandatory.
  • B: Type checking is ineffective.
  • C: Union assignments are faster.
  • D: Unions are not supported.
View Answer
B

Q822: Which operator is used for implicit dereferencing in Fortran90?
  • A: =
  • B: *
  • C: ->
  • D: =>
View Answer
D

Q823: Fill in the blank: In Ada, dynamic objects are automatically ______ at the end of the pointer's scope.
  • A: deallocated
  • B: initialized
  • C: assigned
  • D: referenced
View Answer
A

Q824: Which language provides a with clause for abbreviating record references?
  • A: COBOL
  • B: Pascal
  • C: Ada
  • D: Fortran90
View Answer
B

Q825: Fill in the blank: Memory leakage occurs when heap-dynamic variables are ______ by any program pointer.
  • A: unreferenced
  • B: assigned
  • C: allocated
  • D: explicitly deallocated
View Answer
A

Q826: Which of the following is a composite data type that groups heterogeneous elements?
  • A: Array
  • B: Record
  • C: Union
  • D: Pointer
View Answer
B

Q827: What is the output of *(p+5) in C, where p is a pointer to the start of an array stuff?
  • A: The value of the 6th element in stuff.
  • B: The memory address of stuff[5].
  • C: The size of the array.
  • D: None of the above.
View Answer
A

Q828: Fill in the blank: ______ expressions consist of operators, operands, parentheses, and function calls.
  • A: Arithmetic
  • B: Conditional
  • C: Logical
  • D: Assignment
View Answer
A

Q829: Which language uses garbage collection to handle memory management?
  • A: C
  • B: Pascal
  • C: Java
  • D: Fortran90
View Answer
C

Q830: What is the primary purpose of pointers in programming?
  • A: Arithmetic calculations
  • B: Dynamic storage management
  • C: Sorting algorithms
  • D: Logical operations
View Answer
B

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now