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.

20 Questions Published

Questions

Question 1 True/False

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

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

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?

  1. @Transform
  2. @Replace
  3. @ListEvaluate
  4. @ListProcess
Question 3 Multiple Choice (Single Answer)

Which one of following is not a valid shared resource image type?

  1. GIF
  2. JPG
  3. MBP
  4. TIF
Question 4 Multiple Choice (Single Answer)

Which one of the following design element is multi pane interface?

  1. View
  2. Outline
  3. Frameset
  4. Page
Question 5 Multiple Choice (Single Answer)

Which one of the following @function performs a similar function to the Print method of the Lotus Script?

  1. @Print
  2. @StatusBar
  3. @MessageBox
  4. @MessageBar
Question 6 Multiple Choice (Single Answer)

Which one of the following returns the name of the Current Field?

  1. @Name
  2. @FieldName
  3. @ThisName
  4. @FieldTitle
Question 7 Multiple Choice (Single Answer)

Which one of the following @function is used to compare two Passwords?

  1. @VerifyPassword
  2. @Compare
  3. @PasswordCompare
  4. @HashCompare
Question 8 Multiple Choice (Single Answer)

Which one of the following @function is used to get value of the field?

  1. @GetField
  2. @GetItemValue
  3. @GetFieldvalue
  4. @Value
Question 9 Multiple Choice (Single Answer)

Which one of the following design element not allowed on the page?

  1. Outline
  2. Layout Region
  3. View
  4. Table
Question 10 Multiple Choice (Single Answer)

Which one of the following @function is used to display all Response document and Response to Response document of the parent document?

  1. @Responses
  2. @AllChildren
  3. @AllDescendents
  4. @AllResponses
Question 11 Multiple Choice (Single Answer)

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); } }

  1. Compilation and output of the value 0
  2. Compile time error because i has not been initialized
  3. Compilation and output of null
  4. Compile time error
Question 12 Multiple Choice (Single Answer)

Which of the following will compile correctly

  1. short myshort = 99S;
  2. String name = 'Excellent tutorial Mr Green';
  3. char c = 17c;
  4. int z = 015;
Question 13 Multiple Choice (Multiple Answers)

Which of the following are Java key words

  1. double
  2. Switch
  3. then
  4. instanceof
Question 14 Multiple Choice (Multiple Answers)

Which of the following are Java modifiers?

  1. public
  2. private
  3. friendly
  4. transient
Question 15 Multiple Choice (Multiple Answers)

Why might you define a method as native?

  1. to get to access hardware that Java does not know about
  2. to define a new data type such as an unsigned integer
  3. to write optimised code for performance in a language such as C/C++
  4. to overcome the limitation of the private scope of the method
Question 16 Multiple Choice (Single Answer)

TreeMap class is used to implement which collection interface. Select the one correct answer

  1. SortedMap
  2. Tree
  3. Set
  4. SortedSet
Question 17 Multiple Choice (Single Answer)

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); } }

  1. 0
  2. 1
  3. 2
  4. 3
Question 18 Multiple Choice (Single Answer)

Which one does not have a ValueOf(String) method?

  1. integer
  2. boolean
  3. character
  4. long
Question 19 Multiple Choice (Multiple Answers)

Which one does not extend java.lang.Number?

  1. integer
  2. boolean
  3. character
  4. short
Question 20 Multiple Choice (Single Answer)

Which of the following is the correct syntax for suggesting that the JVM performs garbage collection?

  1. System.free()
  2. System.setGarbageCollection()
  3. System.setGarbage()
  4. System.gc()