Tag: programming languages

Questions Related to programming languages

  1. The code will output the following:123

  2. The code will output the following: 3

  3. The code will output the following:23

  4. The code will output the following: 321


Correct Option: A
  1. $dbh = DBI::connect("dbi:mysql:myPhoneBook");

  2. $dbh = DBD:->connect("dbi::mysql::myPhoneBook");

  3. $dbh = DBD::connect("mysql:dbi:myPhoneBook");

  4. $dbh = DBI->connect("dbi:mysql:myPhoneBook");


Correct Option: D
  1. Page length of a particular output file

  2. The input end-of-line character

  3. The return code returned by a command called by the system function.

  4. The error code generated by a system library routine


Correct Option: C
  1. Page length of a particular output file

  2. The input end-of-line character

  3. The return code returned by a command called by the system function.

  4. The error code generated by a system library routine.


Correct Option: D

What argument to splice is equivalent to push (@array, @sublist) function call?

  1. splice (@array,0.0.@sublist);

  2. splice (@array, scalar(@array),0, @sublist);

  3. splice (@array, 1, 0, @sublist);

  4. None of Above


Correct Option: B
  1. print ("capital"=>$kansas);

  2. print {$kansas}=>(capital);

  3. print (capital)<={$kansas};

  4. print $kansas->{"capital"};


Correct Option: D