Java and Lotus Notes Programming Quiz
A mixed quiz covering Java programming concepts including garbage collection, collections, modifiers, and compilation, along with Lotus Notes/Domino development including @functions, design elements, and ACL management.
Questions
I am having designer access on the database, I want to modify ACL programmatically through agent signed by my ID, I will be able to modify the same
- True
- False
I am having multivalue field containing numeric value, I want to apply formula on each value of the field. Which of the formula will accomplish the task?
- @Transform
- @Replace
- @ListEvaluate
- @ListProcess
Which one of following is not a valid shared resource image type?
- GIF
- JPG
- MBP
- TIF
Which one of the following design element is multi pane interface?
- View
- Outline
- Frameset
- Page
Which one of the following @function performs a similar function to the Print method of the Lotus Script?
- @Print
- @StatusBar
- @MessageBox
- @MessageBar
Which one of the following returns the name of the Current Field?
- @Name
- @FieldName
- @ThisName
- @FieldTitle
Which one of the following @function is used to compare two Passwords?
- @VerifyPassword
- @Compare
- @PasswordCompare
- @HashCompare
Which one of the following @function is used to get value of the field?
- @GetField
- @GetItemValue
- @GetFieldvalue
- @Value
Which one of the following design element not allowed on the page?
- Outline
- Layout Region
- View
- Table
Which one of the following @function is used to display all Response document and Response to Response document of the parent document?
- @Responses
- @AllChildren
- @AllDescendents
- @AllResponses
Which option most fully describes will happen when you attempt to compile and run the following code public class MyAr{ public static void main(String argv[]) { MyAr m = new MyAr(); m.amethod(); } public void amethod(){ static int i; System.out.println(i); } }
- Compilation and output of the value 0
- Compile time error because i has not been initialized
- Compilation and output of null
- Compile time error
Which of the following will compile correctly
- short myshort = 99S;
- String name = 'Excellent tutorial Mr Green';
- char c = 17c;
- int z = 015;
Which of the following are Java key words
- double
- Switch
- then
- instanceof
Which of the following are Java modifiers?
- public
- private
- friendly
- transient
Why might you define a method as native?
- to get to access hardware that Java does not know about
- to define a new data type such as an unsigned integer
- to write optimised code for performance in a language such as C/C++
- to overcome the limitation of the private scope of the method
TreeMap class is used to implement which collection interface. Select the one correct answer
- SortedMap
- Tree
- Set
- SortedSet
What gets printed when the following program is compiled and run. Select the one correct answer. class test { public static void main(String args[]) { int i,j,k,l=0; k = l++; j = ++k; i = j++; System.out.println(i); } }
- 0
- 1
- 2
- 3
Which one does not have a ValueOf(String) method?
- integer
- boolean
- character
- long
Which one does not extend java.lang.Number?
- integer
- boolean
- character
- short
Which of the following is the correct syntax for suggesting that the JVM performs garbage collection?
- System.free()
- System.setGarbageCollection()
- System.setGarbage()
- System.gc()