Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q861: Which statement skips the remainder of the current iteration in C?
- A: break
- B: exit
- C: continue
- D: cycle
View Answer
C
Q862: What is a disadvantage of Modula-2’s use of "END"?
- A: Poor readability
- B: High flexibility
- C: Increased reliability
- D: Low flexibility
View Answer
A
Q863: In FORTRAN 90, what does the CYCLE statement do?
- A: Exits the loop
- B: Skips to the next iteration
- C: Re-initializes the loop variable
- D: Terminates all nested loops
View Answer
B
Q864: What type of control statement does Ada use for conditional exits?
- A: break
- B: exit
- C: continue
- D: terminate
View Answer
B
Q865: What is the purpose of default parameter values in parameter passing?
- A: To ensure parameters are always passed
- B: To assign a default value to missing parameters
- C: To optimize function execution
- D: To reduce the number of parameters in a function
View Answer
B
Q866: Which of the following is true about pass-by-value parameter passing in modern programming languages?
- A: It copies the value to the stack
- B: It uses an access path to transfer data
- C: It creates a reference to the original value
- D: It moves a value physically to the caller
View Answer
A
Q867: Which parameter passing method can cause collision between formals and globals?
- A: Pass-by-value
- B: Pass-by-result
- C: Pass-by-reference
- D: Keyword parameter passing
View Answer
C
Q868: What is the main concern when using pass-by-reference parameter passing?
- A: It reduces the number of parameters
- B: It can lead to access conflicts
- C: It reduces function execution time
- D: It ensures security of parameter data
View Answer
B
Q869: In modern programming languages, what type of checking is essential for reliable parameter passing?
- A: Type checking
- B: Length checking
- C: Syntax checking
- D: Security checking
View Answer
A
Q870: Which programming languages require type checking for parameter passing?
- A: FORTRAN 77, original C
- B: Pascal, Modula-2, Java
- C: JavaScript, Python
- D: Assembly, C++
View Answer
B