Its lab examination time and its the time where we ask students lots of questions as part of VIVA.. Here's some of the answers from students.. :-):-)
1. A student got a simple calculator program as part of C lab exam.. One of my colleague was the examiner. He asked him to give input as 25 and -5. Student gave it as 25 and 5. Sir again asked 25 and -5. He got bit tensed and again gave 25 and 5. Sir asked again.. This time he took some time but again typed 25 and 5..... Later Sir got to know the reason.... He doesn't know how to type -5 and was searching for the - symbol in the keyboard :-):-)
2. Sir asks whats Fibonacci sequence. Student writes the equation and starts explaining f1,f2 etc for a few minutes..... Sir asks her to write the sequence. She writes the sequence as....
1 2 3
1 2
1
:-):-):-)
3. One student had got a program to find Combination.. i.e NcR.. He had typed the program.. The code goes as follows...
void main()
{
int ncr, n,r;
printf("Enter n and r");
scanf("%d %d", &n,&r);
ncr=n!/(n-r)!r!
printf("Result = %d", ncr);
}
:-):-):-)
4 comments:
programming should be as simple as that,no?
LOL!The ncr one was really funny!!!And that minus sign thing was positively outrageous!!:)
and it just struck me suddenly what their gpa might be???above 7???
yes its definitely above 7 ;)
Post a Comment