- Type
- Quiz
- Course
- CS508 Modern Programming Languages
- Size
- PDF 4.3 MB
- 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 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?
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
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.