GSSP-Java GIAC Secure Software Programmer-Java

Loading demo links...

Showing 7–9 of 15 questions

Question 7 (Volume A)

Which of the following statements about the element are true? Each correct answer represents a complete solution. Choose all that apply.

Select all that apply, then click Submit answer.

  • It is an optional sub-element of the element.

  • It has and as its sub-elements.

  • If the element is not present, all users can access the resource.

  • If the element has no sub-element, all users can access the resource.

Question 8 (Volume C)

Which of the following modifiers is not an access modifier?

Select an option, then click Submit answer.

  • protected

  • abstract

  • public

  • private

Question 9 (Volume B)

Rachel works as a Software Developer for Vivanet Inc. She writes the following code using Java.

class catchexcp

{public static void metha()

{int x=4/0;System.out.print("Caught exception");} public static void main(String args[])

{try{metha();}catch(ArithmeticException ae){System.out.print("Caught ArithmeticException");} finally{try{metha();}catch(ArithmeticException ae){System.out.print("ReCaught

ArithmeticException");}}}}

What will happen when she tries to compile and execute the code?

Select an option, then click Submit answer.

  • It will compile and execute and will display ReCaught ArithmeticException.

  • It will not compile.

  • It will compile but will throw an exception at runtime.

  • It will compile and execute and will display Caught exception Caught ArithmeticException ReCaught ArithmeticException.

  • It will compile and execute and will display Caught exception ReCaught ArithmeticException.

  • It will compile and execute and will display Caught ArithmeticException ReCaught ArithmeticException.