Skip to content
VUBuddy

CS508 Quiz 4

Modern Programming Languages PDF 846 KBUpdated 23 Oct 2026
Quiz CS508 Quiz 4 PDF 846 KB
vubuddy.com
Type
Quiz
Course
CS508 Modern Programming Languages
Size
PDF 846 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 846 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2 of 2. Download the file for all 2 pages.

Q1. PROLOG supports the __________ programming paradigm.

  1. Declarative
  2. Object Oriented
  3. Functional
  4. Aspect Oriented

Correct answer: Declarative

Q2. Which of the following are the types of constants in PROLOG?

  1. single and decimal
  2. float and numbers
  3. atoms and numbers
  4. short and char

Correct answer: atoms and numbers

Q3. All the variables in PROLOG clauses/predicates are:

  1. Global
  2. Generic
  3. Strongly typed
  4. Local

Correct answer: Local

Q4. The function that is used to remove all properties of a symbol in LISP is:

  1. NULLP
  2. remprop
  3. REMOVE
  4. terminate-all

Correct answer: remprop

Q5. While eliminating repeated elements of list in PROLOG, each element should be replaced with:

  1. Previous element
  2. Next element
  3. Single copy of the same element
  4. Blank space

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?

  1. get
  2. symbol-plist
  3. enlist
  4. defun

Correct answer: symbol-plist

Q7. In a PROLOG program, the names of all relationships and objects must begin with:

  1. Dollar sign ($)
  2. Uppercase letter
  3. Lowercase letter
  4. Underscore

Correct answer: Lowercase letter

Q8. How many times the value of a PROLOG variable can be changed after first assignment?

  1. Many times
  2. Once
  3. Twice
  4. Zero (Can not be changed)

Correct answer: Zero (Can not be changed)

Q9. Which of the following statement of LISP creates an array of size 5?

  1. (setf (make-array ‘(5)))
  2. (setf linear-array (make-array ‘(5)))
  3. (make linear-array (5))
  4. (setq linear-array (array ‘(5)))

Correct answer: (setf linear-array (make-array ‘(5)))

Q10. Following statement in PROLOG is considered as ______________________. "relieves(penicilline, pneumonia)"

  1. Fact
  2. Constant
  3. Variable
  4. Rule

Correct answer: Fact

All CS508 files →
CS508 Modern Programming Languages All CS508 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.