Skip to content
VUBuddy

CS508 Quiz 3 by VU Topper RM

Modern Programming Languages PDF 4.3 MBUpdated 23 Oct 2026
Quiz CS508 Quiz 3 by VU Topper RM PDF 4.3 MB
vubuddy.com
Type
Quiz
Course
CS508 Modern Programming Languages
Size
PDF 4.3 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 4.3 MB

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 2, 3, 4 of 44. Download the file for all 44 pages.

A type conversion that occurs without any special directive from the programmer is known as: A. Strict conversion B. Explicit conversion

C. Implicit conversion Page 98

D. Imperative conversion

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

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

Correct answer: atoms and numbers Google

The super class of all exception classes in Java is: A.

Throwable Google

B. Error C. System D. Exception

In java, explicit conversion of primitive type is done by _________ A. boxing B.

casting

C. overloading D. aliasing

When a class inherits from another class in Java then: A.

all fields and methods are inherited

B. only public fields and methods are inherited C. only private fields and methods are inherited D. only static fields and methods are inherited

A variable name in PROLOG starts with _________ A. Number B. Capital letter C.

Small letter

D. $ sign

A main() function in a JAVA program: A.

must be inside a class

B. returns more than one value C. is always declared as a global function D. cannot be inside a class

_______ cannot be converted to other types in Java. A. Int B. Char C. Double

D. Booleans Page 98

The keyword that is used to generate exception explicitly in Java is: A. Try B. Catch

C. Throw Google

D. Finally

Default access (if no other access is specified) for classes and fields in Java is: A. Public B. Private

C. Package Google

D. Protected

The basic tool for writing programs in PROLOG is:

A. Recursion Page 85

B. Inheritance C. Polymorphism D. Object-Orientation

How many kinds of “type conversion” of primitive types are there in Java?

A.

2 Page 175

B. C. D.

Expert system___________ provide a structure to design expert system. A. Mechanism B.

Shells

C. Lists D. Techniques

Which of the following primitive type is available in JAVA? A. typedef B. struct C.

byte

D. enum

which of given is the magical thing in Prolog? A. Program partition B. List Processing C. Predicate D.

Inference engine

The correct way to write comments in a PROLOG program is: A.

% This is another comment

B. /* This is also a comment */ C. # Consider this a comment D. // this is a comment

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.