Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q781: Which programming languages provide implicit declarations?
- A: Python
- B: FORTRAN
- C: C++
- D: Java
View Answer
B
Q782: Fill in the blank: ______ determines the range of values and operations for a variable.
- A: Value
- B: Type
- C: Binding
- D: Context
View Answer
B
Q783: When does dynamic type binding occur?
- A: Compile-time
- B: Runtime
- C: Load-time
- D: Design-time
View Answer
B
Q784: What is an advantage of static storage binding?
- A: Supports recursion
- B: Flexibility
- C: Direct addressing and efficiency
- D: Dynamic type checking
View Answer
C
Q785: Which variables are allocated from the runtime stack in execution?
- A: Explicit heap dynamic variables
- B: Static storage variables
- C: Stack-dynamic variables
- D: Implicit heap dynamic variables
View Answer
C
Q786: What is a disadvantage of implicit heap-dynamic variables?
- A: Efficient type checking
- B: Loss of error detection
- C: Allows recursion
- D: Supports direct addressing
View Answer
B
Q787: In JavaScript, an explicit declaration specifies the ______ of a variable.
- A: Data type
- B: Memory location
- C: Scope
- D: Storage binding
View Answer
A
Q788: Fill in the blank: Dynamic type binding provides ______ but makes type error detection difficult.
- A: Efficiency
- B: Flexibility
- C: Reliability
- D: Performance
View Answer
B
Q789: What kind of binding occurs when a variable is associated with a memory cell before execution?
- A: Stack-dynamic binding
- B: Static binding
- C: Dynamic type binding
- D: Heap-dynamic binding
View Answer
B
Q790: Which of the following allows recursion and conserves storage?
- A: Stack-dynamic variables
- B: Static storage variables
- C: Implicit heap-dynamic variables
- D: Explicit heap-dynamic variables
View Answer
A