Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q131: SNOBOL was developed for which main purpose?
- A: Numeric operations
- B: String manipulation
- C: Memory management
- D: Network communication
View Answer
B
Q132: SNOBOL uses _______ to perform string operations.
- A: Regular expressions
- B: Direct manipulation
- C: Syntax trees
- D: Pattern matching
View Answer
D
Q133: What are the two basic data types in the initial versions of SNOBOL?
- A: Integers and Strings
- B: Real numbers and Strings
- C: Integers and Arrays
- D: Booleans and Strings
View Answer
A
Q134: Which of the following is NOT a legal integer in SNOBOL?
- A: 13.4
- B: -234
- C: 12832
- D: 0
View Answer
A
Q135: What is the maximum length allowed for a string in SNOBOL?
- A: 5,000 characters
- B: 10,000 characters
- C: 1,000 characters
- D: 500 characters
View Answer
A
Q136: What operator is used for exponentiation in SNOBOL?
- A: **
- B: ^
- C: !
- D: Both ** and !
View Answer
D
Q137: In SNOBOL, which arithmetic operation is right associative?
- A: Addition
- B: Multiplication
- C: Exponentiation
- D: Division
View Answer
C
Q138: Which character is NOT allowed in SNOBOL variable names?
- A: Period (.)
- B: Underscore (_)
- C: Dollar Sign ($)
- D: Numbers (0-9)
View Answer
C
Q139: What is the correct structure of a SNOBOL statement?
- A: Label Body :GOTOField
- B: Label :GOTO BodyField
- C: Body GOTOField :Label
- D: GOTO Label :BodyField
View Answer
A
Q140: What value is assigned to a variable in SNOBOL if the right-hand side is empty?
- A: NULL string
- B: Zero
- C: Undefined
- D: Default value
View Answer
A