You are on page 1of 5

HARARGHE HEALTH RESEARCH (HHR)

ENTRANCE EXAM FOR JUNIOR SOFTWARE DEVELOPER

Date: 02/09/2015

Time allowed: 3 hours

Max mark: 100

code: ______________________________

INSTRUCTIONS

 Check whether the exam paper has 4 pages including cover page
 Use of a cell phone, a smart watch or any other unauthorized electronic
device in the exam area is strongly prohibited
 Use of any unauthorized written materials (i.e., aid sheets, books, notes,
handout etc.) in the exam area is forbidden
 Hand writing should be net and readable. Unreadable hand writing worth
no value
 Any form of unauthorized communication in the exam room once the
exam has started leads to disqualification
 Any kind of cheating will nullify your result
1. Why do we need Software Requirement Specification(SRS)[4pt]?

2. What is makes stack different from queue[6pt]?

3. List 3 reasons what agile is better than waterfall model ?and


Discuss the key difference between them, advantage and disadvantages of waterfall
models[10pt].

4. What is scope creep in a software projects? What ways can you manage this through Agile
Project management?[10].

5. Write PHP program to calculate area of triangle with base as 100 and height as 115? [10pt]

6. What is the output of the following php program? [5pt]


<?php
function phpMethod($list1) {
$nums_val=array_values(array_unique($list1));
return $nums_val;
}
$nums = array(0,0,2,2,3,4,5,5);
$c=phpMethod($nums);
for($i=0;$i<count($c);$i++){
print($c[$i]);
}
?>
7. What will it output of the following php program ? [5pt]
<?php
$val_v = array();
$val_v['a1'] = array(1, 2);
$val_v['a2']=0;
$val_v['a3'] = array(4, 5);
$testArray = array();

$testArray = array_merge($testArray, $val_v['a1']);


var_dump($testArray);

$testArray = array_merge($testArray, $val_v['a2']);


var_dump($testArray);

$testArray = array_merge($testArray, $val_v['a3']);


var_dump($testArray);
?>

8. What will be the output of the code below and why?[10Mks]

<?php

$x =50;

echo $x;

echo "<br />";

echo $x+++$x++;

echo "<br />";

echo $x;

echo "<br />";

echo $x---$x--;

echo "<br />";

echo $x;

?>
9. What will be the output of each of the statements below in php and why?[10marks]

<?php

var_dump(0123 == 123);

var_dump('0123' == 123);

var_dump('0123' === 123);

?>

10. Write a Program for finding the biggest number in an array without using any array
functions. Use the array $numbers = array(12,23,45,20,5,6,34,17,9,56,999); [10 marks]

11. Write a program in PHP to print Fibonacci series . 0, 1, 1, 2, 3, 5, 8, 13, 21, 34?[10marks]

12. What will be the out put of the following program?[10marks]


3How do you tackle a database
designing problem that
involves many-to-many
relationship in the context of
4RDBMSs? (
5How do you tackle a database
designing problem that
involves many-to-many
relationship in the context of
6RDBMS

You might also like