Q21. Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.
Q22. __________ can be used to advise the browser to download media content in the background to improve playback.
Q23. Which PHP function sets the filename, last-modified and last-accessed times?
Q24. Which attribute is used for favicon?
Q25. To find files which PHP functions can be used?
Q26. What will be the output of the following PHP code?
class ShopProductWriter
{
public function write( $shopProduct )
{
$str = "{$shopProduct->title}: " .$shopProduct->getProducer() ." ({$shopProduct->price})\n";
print $str;
}
}
$product1 = new ShopProduct( "My Antonia", "Willa", "Cather", 5.99 );
$writer = new ShopProductWriter();
$writer->write( $product1 );
Q27. ___________ prevents search engines from following links inside the page
Q28. In the following switch syntax, the expression is compared with the case labels using which of the following operator(s)?
switch(expression)
{
statements
}
Q29. How many methods does the DateTime class have in PHP?
Q30. PHP support the following conditional statements?
Q31. Chromatic number of line graph is always equal to the chromatic index of the graph.
Q32. What is the meaning of cipher in cryptography?
Q33. In which of the following cipher the plain text and the ciphered text have same letters?
Q34. The first step in the naïve greedy algorithm is?
Q35. Interpolation search is a variation of?
Q36. What is the output of the following code?
void my_recursive_function(int *arr, int val, int idx, int len){
if(idx == len){
&emsp printf("-1");
&emsp return ;
}
if(arr[idx] == val){
printf("%d",idx);
return;
}
my_recursive_function(arr,val,idx+1,len);
}
int main(){
int array[10] = {7, 6, 4, 3, 2, 1, 9, 5, 0, 8};
int value = 2;
int len = 10;
my_recursive_function(array, value, 0, len);
return 0;
}
Q37. Which of the following correctly represents the function to insert elements at the bottom of stack?
Q38. What is the general form of Shell’s increments?
Q39. What is the auxiliary space requirement of counting sort?
Q40. Which of the following correctly defines poly alphabetic cipher?