Caché/ObjectScript Programming Quiz

Quiz covering Caché/ObjectScript programming concepts including class definitions, inheritance, data types, and object-oriented programming principles

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is correct syntax for an Abstract class ?

  1. abstract double area() { }
  2. abstract double area()
  3. abstract double area();
  4. abstract double area(); { }
Question 2 Multiple Choice (Single Answer)

Which file contains the web application that can be deployed on the any servlet/jsp container?

  1. .jar
  2. .war
  3. .ear
  4. .zip
Question 3 Multiple Choice (Single Answer)

What are the two parts of a value of type double?

  1. significant digits
  2. length
  3. exponent
  4. Both a & b
Question 4 Multiple Choice (Single Answer)

A method declared as final

  1. Can be overridden
  2. Cannot be overridden
  3. Can be inherited
  4. Cannot be inherited
Question 5 Multiple Choice (Single Answer)

What are the different ways for session tracking?

  1. Cookies
  2. URL rewriting
  3. HttpSession
  4. All the above
Question 6 Multiple Choice (Single Answer)

Which of the following may have duplicate elements?

  1. Collection
  2. List
  3. Map
  4. Both a & b
Question 7 Multiple Choice (Single Answer)

How to create a serial class, Extend _____

  1. %SerialObject
  2. %RegisteredObject
  3. %Persistent
  4. %Transient
Question 8 Multiple Choice (Multiple Answers)

select the open commands available in cache

  1. Oref()
  2. Open()
  3. Openid()
  4. New()
Question 9 Multiple Choice (Single Answer)

if class D is inheriting Classes A,B and C and all of them have a property p, then in class D while accessing propert p which super class would be used, Declaration of class :- Class D Extends A,B,C {}

  1. A
  2. B
  3. C
  4. D
  5. %system
Question 10 Multiple Choice (Single Answer)

what are %classes

  1. System
  2. User defined
  3. parametrized
  4. Hidden
Question 11 Multiple Choice (Single Answer)

How to create a transient class, Extend _____

  1. %SerialObject
  2. %RegisteredObject
  3. %Persistent
  4. %Transient
Question 12 True/False

Is multiple inheritance allowed?

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

select the option for- syntax for writing a class parameter

  1. w var1
  2. w this.var1
  3. w ..var1
  4. w ..#var1
  5. w (classname).var1
Question 14 Multiple Choice (Multiple Answers)

Which of the following are class keywords?

  1. Clientdatatype
  2. Abstract
  3. super
  4. classtype
  5. final
Question 15 Multiple Choice (Multiple Answers)

select all the valid values for collation

  1. sqlupper
  2. sqlvarchar
  3. exact
  4. mvr
  5. truncate
Question 16 Multiple Choice (Multiple Answers)

select the correct options-

  1. Data type classes cannot be instantiated
  2. Data type classes can contain properties
  3. Data type classes automatically includes methods for validation and translation
  4. Data type classes cannot be inherited
Question 17 Multiple Choice (Multiple Answers)

select the correct options for - how are class keywords handled in multiple inheritance ?

  1. keywords are not inherted
  2. keywords from first superclass are inherited
  3. keywords from last superclass are inherited
  4. keywords from all superclasses are inherited
Question 18 Multiple Choice (Single Answer)

Which is the correct definition of welcome files in web.xml?

  1. <welcome><welcome-file>index.jsp</welcome-file></welcome>
  2. <welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list>
  3. <welcome-files><welcome-file>index.jsp</welcome-file></welcome-files>
  4. <welcome-files> <welcome>index.jsp</welcome></welcome-files>
Question 19 Multiple Choice (Single Answer)

Which is the correct definition of welcome files in web.xml?

  1. <welcome> <welcome-file>index.jsp</welcome-file> </welcome>
  2. <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
  3. <welcome-files> <welcome-file>index.jsp</welcome-file> </welcome-files>
  4. <welcome-files> <welcome>index.jsp</welcome> </welcome-files>