- Type
- Quiz
- Course
- CS508 Modern Programming Languages
- Size
- PDF 846 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 2. Download the file for all 2 pages.
Q1. PROLOG supports the __________ programming paradigm.
Correct answer: Declarative
Q2. Which of the following are the types of constants in PROLOG?
Correct answer: atoms and numbers
Q3. All the variables in PROLOG clauses/predicates are:
Correct answer: Local
Q4. The function that is used to remove all properties of a symbol in LISP is:
Correct answer: remprop
Q5. While eliminating repeated elements of list in PROLOG, each element should be replaced with:
Correct answer: Single copy of the same element
Q6. Which of the following function is used in LISP to see all properties of a symbol?
Correct answer: symbol-plist
Q7. In a PROLOG program, the names of all relationships and objects must begin with:
Correct answer: Lowercase letter
Q8. How many times the value of a PROLOG variable can be changed after first assignment?
Correct answer: Zero (Can not be changed)
Q9. Which of the following statement of LISP creates an array of size 5?
Correct answer: (setf linear-array (make-array ‘(5)))
Q10. Following statement in PROLOG is considered as ______________________. "relieves(penicilline, pneumonia)"
Correct answer: Fact
Related CS508 files
All CS508 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.