0

programming languages Online Quiz - 290

Description: programming languages Online Quiz - 290
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

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


Correct Option: B

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


Correct Option: A

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

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: B

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


Correct Option: A
  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


Correct Option: B,C

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


Correct Option: E

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


Correct Option: B
  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


Correct Option: C
  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


Correct Option: A
  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.


Correct Option: A
  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.


Correct Option: A,B,C

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


Correct Option: A
  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.


Correct Option: C,D

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


Correct Option: A

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


Correct Option: C
- Hide questions