Tag: programming languages

Questions Related to programming languages

how many elements are assigned to @u,@w?

  1. 1 and 2

  2. 5 and 0

  3. 1 and 3

  4. none of the above


Correct Option: B

What happens when @_ is modified?

  1. when arrays and references are passed

  2. only when references are passed

  3. args are not changed

  4. Command line args are changed


Correct Option: D
  1. Opens a file notes.txt

  2. fails to create a file and displays error

  3. fails to open a file but doesn't display error

  4. Opens a file but not notes.txt


Correct Option: D

the regex /g.d?c*/ doesn't matches

  1. godccc

  2. gddd

  3. goc

  4. gc


Correct Option: B

which is correct?

  1. 1 can only be called with predecleration of complex_num

  2. 1 and 2 are same

  3. 2 can only be called with predecleration of complex_num

  4. 1 is reference to a subroutine


Correct Option: C
  1. A list of hashes which contains a list

  2. A hash of hashes which contains a list

  3. A list of list which contains another list

  4. A list of arrays and hashes containing lists


Correct Option: A
  1. World Wide Web Consortium

  2. SWIFT

  3. Sun

  4. SAP


Correct Option: A