Caché/ObjectScript Programming Quiz
Quiz covering Caché/ObjectScript programming concepts including class definitions, inheritance, data types, and object-oriented programming principles
Questions
Which of the following is correct syntax for an Abstract class ?
- abstract double area() { }
- abstract double area()
- abstract double area();
- abstract double area(); { }
Which file contains the web application that can be deployed on the any servlet/jsp container?
- .jar
- .war
- .ear
- .zip
What are the two parts of a value of type double?
- significant digits
- length
- exponent
- Both a & b
A method declared as final
- Can be overridden
- Cannot be overridden
- Can be inherited
- Cannot be inherited
What are the different ways for session tracking?
- Cookies
- URL rewriting
- HttpSession
- All the above
Which of the following may have duplicate elements?
- Collection
- List
- Map
- Both a & b
How to create a serial class, Extend _____
- %SerialObject
- %RegisteredObject
- %Persistent
- %Transient
select the open commands available in cache
- Oref()
- Open()
- Openid()
- New()
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 {}
- A
- B
- C
- D
- %system
what are %classes
- System
- User defined
- parametrized
- Hidden
How to create a transient class, Extend _____
- %SerialObject
- %RegisteredObject
- %Persistent
- %Transient
Is multiple inheritance allowed?
- True
- False
select the option for- syntax for writing a class parameter
- w var1
- w this.var1
- w ..var1
- w ..#var1
- w (classname).var1
Which of the following are class keywords?
- Clientdatatype
- Abstract
- super
- classtype
- final
select all the valid values for collation
- sqlupper
- sqlvarchar
- exact
- mvr
- truncate
select the correct options-
- Data type classes cannot be instantiated
- Data type classes can contain properties
- Data type classes automatically includes methods for validation and translation
- Data type classes cannot be inherited
select the correct options for - how are class keywords handled in multiple inheritance ?
- keywords are not inherted
- keywords from first superclass are inherited
- keywords from last superclass are inherited
- keywords from all superclasses are inherited
Which is the correct definition of welcome files in web.xml?
- <welcome><welcome-file>index.jsp</welcome-file></welcome>
- <welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list>
- <welcome-files><welcome-file>index.jsp</welcome-file></welcome-files>
- <welcome-files> <welcome>index.jsp</welcome></welcome-files>
Which is the correct definition of welcome files in web.xml?
- <welcome> <welcome-file>index.jsp</welcome-file> </welcome>
- <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
- <welcome-files> <welcome-file>index.jsp</welcome-file> </welcome-files>
- <welcome-files> <welcome>index.jsp</welcome> </welcome-files>