Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q191: What does the "SIZE(TEXT)" function return when the string stored in TEXT is 'NUT'?
  • A: 2
  • B: 3
  • C: 4
  • D: 1
View Answer
B

Q192: Fill in the blank: SNOBOL supports _______ which allows arrays to hold elements of different data types.
  • A: Static typing
  • B: Dynamic typing
  • C: Integer type
  • D: Fixed data types
View Answer
B

Q193: In SNOBOL, the "$" operator is used for _______.
  • A: Concatenation
  • B: Indirect reference
  • C: Arithmetic operations
  • D: Defining functions
View Answer
B

Q194: The primary issue with the use of the blank space operator in SNOBOL was that it caused _______ in coding and maintenance.
  • A: Easier coding
  • B: Confusion
  • C: Faster program execution
  • D: Simple syntax
View Answer
B

Q195: In SNOBOL, which function is used to replace one substring with another within a string?
  • A: REPLACE
  • B: SIZE
  • C: CONCAT
  • D: SEARCH
View Answer
A

Q196: The "T<'A'> = 1" statement in SNOBOL associates which value with the key 'A'?
  • A: 1
  • B: 'A'
  • C: 'T'
  • D: 0
View Answer
A

Q197: In SNOBOL, which feature enables users to easily extend programs at runtime?
  • A: Dynamic typing
  • B: Run-time compilation
  • C: Lack of string operations
  • D: Limited features
View Answer
B

Q198: What is the primary design goal of the Ada programming language?
  • A: Program readability
  • B: Program speed
  • C: Program complexity
  • D: Program flexibility
View Answer
A

Q199: Which feature of Ada supports the creation of reusable components?
  • A: Packages
  • B: Functions
  • C: Classes
  • D: Objects
View Answer
A

Q200: What mechanism does Ada use to handle errors at runtime?
  • A: Exception handling
  • B: GOTO control structure
  • C: Overloaded operators
  • D: Debugging tools
View Answer
A

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now