Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,630 members, 7,958,878 topics. Date: Thursday, 26 September 2024 at 06:26 AM |
Nairaland Forum / Science/Technology / Programming / The Greatest Programmer On Nairaland (67988 Views)
The Most Popular Programmer On Nairaland 2016 Edition (verification Round) / Seunthomas - The Greatest Programmer On Nairaland / The most popular programmer on Nairaland 2016 Edition (2) (3) (4)
(1) (2) (3) ... (16) (17) (18) (19) (20) (21) (22) ... (39) (Reply) (Go Down)
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:27pm On Feb 26, 2016 |
seunthomas: When dhtml18 said you kept shifting the goal post I thought he was lying but this right here is proof. Initially you said I couldn't write the code. I wrote it and purposely chose C a rarely used language. Now your excuse is that the code is insecure. Where we talking about secure code? Or code that works? Who told u I don't want my system hacked? I want it hacked. Now yes or no does my code work? Is it functionally correct? |
Re: The Greatest Programmer On Nairaland by FincoApps(m): 3:28pm On Feb 26, 2016 |
guru01: So disappointed in the simplicity of this question . Or are you simply just purposely under estimating your opponent ? |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:29pm On Feb 26, 2016 |
guru01: You *think*? Or B is your answer? And would you like me to explain the question better? |
Re: The Greatest Programmer On Nairaland by Nobody: 3:30pm On Feb 26, 2016 |
airsaylongcon:You see what I was saying now? He is trying to swallow evidence before a grand jury! |
Re: The Greatest Programmer On Nairaland by guru01(m): 3:30pm On Feb 26, 2016 |
airsaylongcon:So you know how to explain the question better and you are here talking too much? Please explain the question better if you can. |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:30pm On Feb 26, 2016 |
FincoApps: He only gets one shot. He has tossed his shot. I get only one shot. I have tossed mine |
Re: The Greatest Programmer On Nairaland by guru01(m): 3:34pm On Feb 26, 2016 |
Is my answer correct or not? Mr. talkative. airsaylongcon: |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:36pm On Feb 26, 2016 |
guru01: A procedure "CallBack" is recursive for *some* inputs. If this procedure is guaranteed to terminate, then which of the following is not true. a) CallBack has a local variable b) CallBack has an path of execution where it is not recursive (doesn't call itself) C) CallBack refers to a global variable or has one or more parameters The name of the procedure (or function if you like) is CALLBACK. This procedure is recursive if it gets certain values (eg 3 or 7 or 199 etc) For other values it is not recursive. Irrespective of whether it gets a value that makes it recursive or not recursive it WILL terminate. Which of the options in A-C is not true given the above qualities of the procedure |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:37pm On Feb 26, 2016 |
guru01: Your answer is wrong. And it seems like you are guessing 1 Like |
Re: The Greatest Programmer On Nairaland by Nobody: 3:40pm On Feb 26, 2016 |
airsaylongcon:Simply conceding defeat would have been less-shameful. 1 Like |
Re: The Greatest Programmer On Nairaland by CodeHouse: 3:41pm On Feb 26, 2016 |
Knownpal: How are you mate? I saw your post, has anyone given you the best yet? |
Re: The Greatest Programmer On Nairaland by FincoApps(m): 3:43pm On Feb 26, 2016 |
seunthomas: You criticize people's codes toooo much, it's becoming annoying. The painful thing is you don't bother to correct the code you criticized. See an example of correcting people's code without making them feel bad or inferior https://www.nairaland.com/2529139/tic-tac-toe-online-game. People make mistakes Consider that you have written 2 codes or so on this thread and every single one had a mistake or 2 so please correct people's code instead of just bullshiting it |
Re: The Greatest Programmer On Nairaland by guru01(m): 3:44pm On Feb 26, 2016 |
airsaylongcon:B is my choice answer. |
Re: The Greatest Programmer On Nairaland by Knownpal(m): 3:48pm On Feb 26, 2016 |
CodeHouse: It's only lariaoft o, He just needs to pay me. |
Re: The Greatest Programmer On Nairaland by seunthomas: 3:48pm On Feb 26, 2016 |
dhtml18:Of course boss it wont. You know it all na. |
Re: The Greatest Programmer On Nairaland by seunthomas: 3:50pm On Feb 26, 2016 |
FincoApps:I try to but when i do people like you say am trying to pull other people down. So whats the point? I can only make my observations so people can look at it more deeply, i have explained the possible problems let them google it na. Let me just explain that c language is a very dangerous language, their are things you can do in Java,C# or even C++ and get away with it but not in C |
Re: The Greatest Programmer On Nairaland by seunthomas: 3:53pm On Feb 26, 2016 |
At this point(by some miracle) this thread is actually heading in the direction i want it too. Constructive criticism and brain wracking. Legends on the way...... |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:53pm On Feb 26, 2016 |
guru01: Your answer is very wrong. WRONG in capital letters. The question says which of the following IS NOT true. Every recursive function that terminates MUST have a path that is not recursive. |
Re: The Greatest Programmer On Nairaland by seunthomas: 3:59pm On Feb 26, 2016 |
@airsaylongcon Shey u know go vex if i comment for your question(I dey suspect say na trick question). |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:59pm On Feb 26, 2016 |
dhtml18: Funny thing is despite me allowing him have a second try and effectively reducing his choice to just A or C he has gone ahead to make B his final choice. The question asked for which of the following is NOT true. Is it not true that for a recursive procedure to work there must be a path that is not recursive? |
Re: The Greatest Programmer On Nairaland by seunthomas: 3:59pm On Feb 26, 2016 |
x=3; function amADude(){ x=3; amADude(); } |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 3:59pm On Feb 26, 2016 |
seunthomas:It's NOT a trick question. |
Re: The Greatest Programmer On Nairaland by seunthomas: 4:00pm On Feb 26, 2016 |
airsaylongcon:Can i do my analysis?? |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 4:02pm On Feb 26, 2016 |
seunthomas: The question was originally thrown at you. So feel free |
Re: The Greatest Programmer On Nairaland by seunthomas: 4:10pm On Feb 26, 2016 |
airsaylongcon:Well i have my reasons for not answering it na. Anyway down to my analysis. A procedure "CallBack" is recursive for *some* inputs. If this procedure is guaranteed to terminate, then which of the following is not true. a) CallBack has a local variable b) CallBack has an path of execution where it is not recursive (doesn't call itself) C) CallBack refers to a global variable or has one or more parameters The name of the procedure (or function if you like) is CALLBACK. This procedure is recursive if it gets certain values (eg 3 or 7 or 199 etc) For other values it is not recursive. Irrespective of whether it gets a value that makes it recursive or not recursive it WILL terminate. Which of the options in A-C is not true given the above qualities of the procedure Well this procedure is guaranteed to never enter an infinity loop Assumption A Can the fact the callback has a local variable stop it from exiting. Yes if the local variable is used in a conditional statement that will always happen function a(){ x=1; if(x==1){ a(); } } This function will run till enternity because the condition will always be true and the function will always be called again and again |
Re: The Greatest Programmer On Nairaland by FincoApps(m): 4:14pm On Feb 26, 2016 |
seunthomas: If dhtml was the one who wrote this, you would be the first to write BAD CODE smh |
Re: The Greatest Programmer On Nairaland by seunthomas: 4:16pm On Feb 26, 2016 |
FincoApps:Its not code MR JUMPER, its an algorithm. Make i shut my mouth as una no wan gree learn na. |
Re: The Greatest Programmer On Nairaland by seunthomas: 4:17pm On Feb 26, 2016 |
But make he no be say i dey support @guru01 I think is answer is the most likely. |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 4:18pm On Feb 26, 2016 |
seunthomas: Consider this factorial function. int factorial(int n) { if(n!=1) return n*factorial(n-1); } This function is 1)recursive for some values (all values apart from 1) 2) is not recursive for some values ọ́in this case the integer 1) 3) is guaranteed to terminate. Now can you explain your choice of answer using the above recursive function? |
Re: The Greatest Programmer On Nairaland by Nobody: 4:21pm On Feb 26, 2016 |
Wow, 18 pages. This thread has gotten more attention than it deserves. Someone will look at the thread with high expectations but will be disappointed to find chest beating immature programmers. |
Re: The Greatest Programmer On Nairaland by airsaylongcon: 4:21pm On Feb 26, 2016 |
seunthomas: Are you implying that for a recursive function to work and terminate it doesn't need a path to escape from the recursive call? |
Re: The Greatest Programmer On Nairaland by seunthomas: 4:22pm On Feb 26, 2016 |
airsaylongcon:From your question, we are not limited to a specific function but any function except from the onset you question was not complete making it a trick question or wrong. |
(1) (2) (3) ... (16) (17) (18) (19) (20) (21) (22) ... (39) (Reply)
How To Hack Your Girlfriend's Whatsapp And Fb Account / Atm Hacks "beware" / Larry Tesler Dies! Man Who Invented Copy And Paste Is Dead.
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 63 |