Tag: technology

Questions Related to technology

  1. filename=basename Mypath

  2. filename =file Mypath

  3. filename = ${Mypath#///}

  4. echo $Mypath | awk ‘ FS=”/” { print $4 } ‘


Correct Option: A,C,D
  1. Code is vulnerable as Resource is not released in the “finally” block

  2. Code is vulnerable as Resource is not released at all

  3. Code has no vulnerability

  4. Option 1 AND Option 2


Correct Option: A
  1. Korn Matt

  2. Karthick Subramanian

  3. David Korn

  4. Kandasamy


Correct Option: C

From security view point what is problem with code below try { //code to do IO operations return var1; } Catch(Exception e) { return var2; } finally{ return var3; }

  1. It is returning a value in finally block

  2. It is catching Exception

  3. OPTION 1 AND Option 2

  4. Nothing is wrong


Correct Option: C

Whill this code result in DoS situation? public void dummyFunction(){ try { //open a connection to database //transaction with database closeConnection(); } catch(SQLException e){ //Exception handling block } } closeConnection() is a function which releases all database resources opened by current function.

  1. True

  2. False


Correct Option: A