Java, C, and BPEL Programming Fundamentals

Test your knowledge of Java programming concepts, C pointer declarations, and BPEL business process execution language fundamentals

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following activities is used in a BPEL process to assign manual tasks to users?

  1. Compensate
  2. Throw
  3. Human Task
  4. Catch
  5. Pager
Question 2 Multiple Choice (Single Answer)

Which application is used by users to browse and act on tasks assigned to them from a BPEL process?

  1. Identity Service
  2. Task Serice
  3. Worklist Application
  4. Human Task Application
Question 3 Multiple Choice (Single Answer)

Which of the following BPEL functions can be used to read the contents of a BPEL variable?

  1. getVariableData
  2. getContentAsString
  3. getElement
  4. getVariableProperty
Question 4 Multiple Choice (Single Answer)

Which built-in XPATH function is used to know the run-time size of a data sequence?

  1. getCount
  2. . count
  3. generateGUID
  4. num
Question 5 Multiple Choice (Single Answer)

If the portType element in the WSDL file of a BPEL process contains both input and output elements, what can be gauged about the nature of the BPEL process

  1. The BPEL process is synchronous in nature
  2. The BPEL process is asynchronous in nature
  3. The BPEL process has parallel processing
  4. We do not have sufficient information to tell whether the BPEL process is synchronous or asynchronous
Question 6 Multiple Choice (Single Answer)

How many portType elements are typically present in the WSDL file of an asynchronous BPEL process?

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

Which of the following activities is used to write java code in a BPEL process?

  1. Java Embedding
  2. Wrapper
  3. Transform
  4. None of these
Question 8 Multiple Choice (Multiple Answers)

Which of the following statements are true about BPEL fault handling?

  1. BPEL code which can generate faults should be placed within a try-catch block
  2. BPEL code which can generate faults should be placed within a catch block
  3. Several catch blocks can be added to the same BPEL scope
  4. The CatchAll block cannot be used if a catch block is used in a scope
Question 9 Multiple Choice (Single Answer)

A scope within a BPEL process has a catch block for Remote Fault and a catch block for Binding Fault followed by a catchAll block in that order. Which of the following statements are true?

  1. . If a Remote Fault occurs, it will be caught by the catchAll block
  2. . If a Binding Fault occurs, it will be caught by the catchAll block
  3. . If a Remote Fault occurs, it will be caught first by the Remote Fault catch block and then by the catchAll block
  4. . All faults will always be caught by the catchAll block
  5. None of the above
Question 10 Multiple Choice (Single Answer)

int *p[10]

  1. p is a pointer to a 10 element integer array
  2. p is a 10-element array of pointers to integer quantity
  3. p is a pointer to an integer quantity
  4. None of the above
Question 11 Multiple Choice (Single Answer)

int p(char *a)

  1. p is a pointer to pointer to integer
  2. p is a pointer to a function that accepts an argument which is a pointer to a character and returns an integer quantity
  3. p is a function that accepts an argument which is a pointer to a character and returns an integer quantity
  4. p is a function that accepts an argument which is a pointer to a character and returns a pointer to an integer quantity
Question 12 Multiple Choice (Single Answer)

int (*p)[10]

  1. p is a pointer to a 10 element integer array
  2. p is a pointer to an integer quantity
  3. p is a 10-element array of pointers to an integer
  4. None of the above
Question 13 Multiple Choice (Single Answer)

What gets displayed on the screen when the following program is compiled and run. Select the one correct answer. protected class example { public static void main(String args[]) { String test = "abc"; test = test + test; System.out.println(test); } }

  1. The class does not compile because the top level class cannot be protected.
  2. The program prints "abc"
  3. The program prints "abcabc"
  4. The program does not compile because statement "test = test + test" is illegal.
Question 14 Multiple Choice (Multiple Answers)

Which of the following are true. Select the three correct answers.

  1. A static method may be invoked before even a single instance of the class is constructed.
  2. A static method cannot access non-static methods of the class.
  3. Abstract modifier can appear before a class or a method but not before a variable.
  4. final modifier can appear before a class or a variable but not before a method.
  5. Synchronized modifier may appear before a method or a variable but not before a class.
Question 15 Multiple Choice (Single Answer)

What is the result of evaluating the expression 14 ^ 23. Select the one correct answer.

  1. 25
  2. 37
  3. 6
  4. -9
  5. 23
Question 16 Multiple Choice (Multiple Answers)

Which of the following statements related to Garbage Collection are correct. Select the two correct answers.

  1. It is possible for a program to free memory at a given time.
  2. Garbage Collection feature of Java ensures that the program never runs out of memory.
  3. It is possible for a program to make an object available for Garbage Collection.
  4. The finalize method of an object is invoked before garbage collection is performed on the object.
Question 17 Multiple Choice (Single Answer)

Which of these are core interfaces in the collection framework. Select the one correct answer.

  1. Tree
  2. Stack
  3. Queue
  4. Array
  5. LinkedList
  6. Map
Question 18 Multiple Choice (Single Answer)

class MCZ27 { public static void main (String[] args) { char a = '\f'; // 1 char b = '\n'; // 2 char c = '\r'; // 3 char d = '\l'; // 4 char e = '\'; // 5 }} A compile-time error is generated at which line?

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. No errors
Question 19 Multiple Choice (Single Answer)

class JJF3 { public static void main(String args[]) { System.out.print(Integer.toBinaryString(Byte.MAX_VALUE)+","); System.out.print(Integer.toOctalString(Byte.MAX_VALUE)+","); System.out.print(Integer.toString(Byte.MAX_VALUE)+","); System.out.print(Integer.toHexString(Byte.MAX_VALUE)); }}

  1. Prints: 1111111,177,127,7f
  2. Prints: 11111111,377,256,ff
  3. Compile-time error
  4. Run-time error
  5. None of the above
Question 20 Multiple Choice (Single Answer)

class JJF4 { public static void main(String args[]) { System.out.print(Long.toHexString(Byte.MAX_VALUE)+","); System.out.print(Long.toHexString(Character.MAX_VALUE)+","); System.out.print(Long.toHexString(Short.MAX_VALUE)); }}

  1. Prints: f,ff,7f
  2. Prints: f,ff,ff
  3. Prints: 7f,ffff,7fff
  4. Prints: ff,ffff,ffff
  5. Prints: 7fff,ffffff,7fffff
  6. Prints: ffff,ffffff,ffffff