Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q321: Fill in the blank: Packages in Ada typically consist of ________ and ________.
- A: headers and bodies
- B: functions and procedures
- C: specifications and bodies
- D: variables and constants
View Answer
C
Q322: What does LISP stand for?
- A: List Processor
- B: Logical Input System
- C: Linear Symbol Processing
- D: List Iterative Symbol Protocol
View Answer
A
Q323: Who invented LISP?
- A: Alan Turing
- B: John McCarthy
- C: Dennis Ritchie
- D: Guido van Rossum
View Answer
B
Q324: Which data structures are used heavily in LISP?
- A: Arrays
- B: Atoms and lists
- C: Trees
- D: Hash tables
View Answer
B
Q325: In which year was LISP invented?
- A: 1945
- B: 1958
- C: 1972
- D: 1980
View Answer
B
Q326: The two most popular versions of LISP are ______.
- A: Scheme and Common Lisp
- B: Python and Perl
- C: Java and JavaScript
- D: Prolog and Fortran
View Answer
A
Q327: What is an atom in LISP?
- A: A sequence of numbers
- B: A sequence of characters
- C: A sequence of integers
- D: A sequence of arrays
View Answer
B
Q328: Which of the following is a valid atom in LISP?
- A: 12345
- B: price-of-beef
- C: "this is red"
- D: All of the above
View Answer
D
Q329: The special symbols T and NIL in LISP represent _______.
- A: Logical true and false
- B: True and None
- C: Boolean variables
- D: List elements
View Answer
A
Q330: What does S in S-expression stand for in LISP?
- A: Sequential
- B: Symbolic
- C: Structured
- D: Special
View Answer
B