Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q791: Fill in the blank: ______ binding occurs when variables are bound to memory cells during runtime.
- A: Static
- B: Dynamic
- C: Explicit
- D: Implicit
View Answer
B
Q792: What is a disadvantage of stack-dynamic variables?
- A: Lack of flexibility
- B: History-sensitive subprograms
- C: Overhead of allocation and deallocation
- D: Supports direct addressing
View Answer
C
Q793: In C++, dynamic objects are created using which directive?
- A: new and delete
- B: malloc and free
- C: append and pop
- D: get and set
View Answer
A
Q794: Which binding type causes allocation and deallocation to occur with assignment statements?
- A: Static binding
- B: Stack-dynamic binding
- C: Explicit heap dynamic binding
- D: Implicit heap dynamic binding
View Answer
D
Q795: Fill in the blank: _______ words cannot be used as user-defined identifiers in programming.
- A: Reserved
- B: Keywords
- C: Contextual
- D: Generic
View Answer
A
Q796: What does type checking ensure in a program?
- A: Proper syntax
- B: Compatible data types
- C: Runtime efficiency
- D: Memory management
View Answer
B
Q797: A type error occurs when an operator is applied to _______.
- A: Valid operands
- B: Incompatible operands
- C: Compatible types
- D: Undefined variables
View Answer
B
Q798: What is the automatic conversion of types by a compiler called?
- A: Parsing
- B: Coercion
- C: Compilation
- D: Typing
View Answer
B
Q799: If type bindings are dynamic, type checking must be _______.
- A: Static
- B: Manual
- C: Dynamic
- D: Optional
View Answer
C
Q800: Which language is considered strongly typed?
- A: Ada
- B: C
- C: FORTRAN 77
- D: Pascal
View Answer
A