Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Chapter: 8
Q121:
The Java programming language was developed at _______.
A. IBM
B. Bell Labs
C. Sun Microsystems
D. Microsoft
Correct Answer: C
Chapter: 8
Q122:
Which of the following is a scripting language for server-side development?
A. JavaScript
B. PHP
C. Java
D. C
Correct Answer: B
Chapter: 8
Q123:
Which language pioneered graphical user interfaces?
A. Pascal
B. Smalltalk
C. Ada
D. COBOL
Correct Answer: B
Chapter: 8
Q124:
Programming languages in the 1960s emphasized _______.
A. Software cost reduction
B. Program correctness
C. Rapid app development
D. Component-based programming
Correct Answer: B
Chapter: 8
Q125:
The .NET language C# is most closely related to _______.
A. JavaScript
B. Java
C. Pascal
D. PHP
Correct Answer: B
Chapter: 8
Q126:
JavaScript's primary use is to create _______.
A. Procedural code
B. Dynamic HTML documents
C. Backend APIs
D. Assembly code
Correct Answer: B
Chapter: 8
Q127:
Fill in the blank: The primary objective of JavaScript is to create _______.
A. Dynamic HTML documents
B. Database queries
C. System processes
D. Structured files
Correct Answer: A
Chapter: 8
Q128:
Fill in the blank: Java was developed based on _______.
A. SIMULA 67
B. C++
C. ALGOL
D. Ada
Correct Answer: B
Chapter: 9
Q129:
What does SNOBOL stand for?
A. String Oriented Symbolic Language
B. Symbolic Network Object Language
C. Structured Number Object Language
D. Simple Numeric Object Language
Correct Answer: A
Chapter: 9
Q130:
Who developed SNOBOL?
A. Bell Labs
B. IBM
C. Microsoft
D. Google
Correct Answer: A
Chapter: 9
Q131:
SNOBOL was developed for which main purpose?
A. Numeric operations
B. String manipulation
C. Memory management
D. Network communication
Correct Answer: B
Chapter: 9
Q132:
SNOBOL uses _______ to perform string operations.
A. Regular expressions
B. Direct manipulation
C. Syntax trees
D. Pattern matching
Correct Answer: D
Chapter: 9
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
Correct Answer: A
Chapter: 9
Q134:
Which of the following is NOT a legal integer in SNOBOL?
A. 13.4
B. -234
C. 12832
Correct Answer: A
Chapter: 9
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
Correct Answer: A
Chapter: 9
Q136:
What operator is used for exponentiation in SNOBOL?
A. **
B. ^
C. !
D. Both ** and !
Correct Answer: D
Chapter: 9
Q137:
In SNOBOL, which arithmetic operation is right associative?
A. Addition
B. Multiplication
C. Exponentiation
D. Division
Correct Answer: C
Chapter: 9
Q138:
Which character is NOT allowed in SNOBOL variable names?
A. Period (.)
B. Underscore (_)
C. Dollar Sign ($)
D. Numbers (0-9)
Correct Answer: C
Chapter: 9
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
Correct Answer: A
Chapter: 9
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
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now