Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28515

Re: Python Interview Questions

Date 2012-09-05 12:01 -0400
From Dave Angel <d@davea.name>
Subject Re: Python Interview Questions
References (1 earlier) <d4e47e64-91d3-4b9f-9e98-4985cd8cb936@googlegroups.com> <k27n53$3kp$1@ger.gmane.org> <CAPTjJmodQMDkrWvhWSWtcg3j4+aH+jTGEX6rgAjFhV6mVLR+xw@mail.gmail.com> <CALwzid=7Oice5vv5qhyVG5Qwy0SL0Z_Cnn-TcAL7DBk_T+7arA@mail.gmail.com> <CAPTjJmqz=JnErcMNu0CoAPmvpPQYzZS0Sdmxu9T1z8tw7OwvEQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.250.1346860897.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 09/05/2012 11:34 AM, Chris Angelico wrote:
> On Thu, Sep 6, 2012 at 1:22 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
>> The lack of an ORDER BY is the least of the problems with that SQL.
>> He's also using LIMIT without OFFSET, so the only thing that the
>> 'item' argument changes is how many rows are returned (all but one of
>> which are ignored), not which one is actually fetched.
> No, he's using the two-arg form of LIMIT.
>
>> It's a bit sad that these are touted as answers to interview
>> questions.  I wouldn't hire anybody who gave answers like these.
> The code does not work as posted; there are args missing from the
> INSERT example, for, uhh, example. It makes it hard to evaluate the
> quality of the code, in some places. I'm not sure what these posts are
> supposed to be, but I hope they're not being held up as model answers
> to interview questions. For a start, I can't find any sort of clear
> questions.
>
> Or is the code itself the question and "How would you improve this"?
>
> ChrisA

Skip ahead to about page 13 to get more traditional questions,  There,
many of the simplest questions have invalid answers, or confusing
explanations.

For example, on page 15, the question that says " ... if a list of words
is empty..."   uses     a=""   as its source data to test with.

The first question on page 16 forgets to construct a loop, thus
processing only the first line in the file.

page 18 introduces new syntax to the language:
     print n+=1  ##will work

and reassures us in the comment that it will work !!

page 18 also claims that values are passed to function by value.





-- 

DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Python Interview Questions charvigroups@gmail.com - 2012-09-04 23:50 -0700
  Re: Python Interview Questions Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2012-09-05 14:10 +0530
  Re: Python Interview Questions Peter Otten <__peter__@web.de> - 2012-09-05 16:21 +0200
  Re: Python Interview Questions Chris Angelico <rosuav@gmail.com> - 2012-09-06 00:34 +1000
  Re: Python Interview Questions Chris Angelico <rosuav@gmail.com> - 2012-09-06 00:36 +1000
  Re: Python Interview Questions Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-05 09:22 -0600
    Re: Python Interview Questions Roy Smith <roy@panix.com> - 2012-09-05 12:38 -0400
  Re: Python Interview Questions Chris Angelico <rosuav@gmail.com> - 2012-09-06 01:34 +1000
  Re: Python Interview Questions Dave Angel <d@davea.name> - 2012-09-05 12:01 -0400
  Re: Python Interview Questions Roy Smith <roy@panix.com> - 2012-09-05 12:11 -0400
  Re: Python Interview Questions Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-05 10:40 -0600
    Re: Python Interview Questions Roy Smith <roy@panix.com> - 2012-09-05 12:45 -0400
  Re: Python Interview Questions Chris Angelico <rosuav@gmail.com> - 2012-09-06 08:13 +1000
  Re: Python Interview Questions Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2012-09-06 09:54 +0530
  Re: Python Interview Questions MRAB <python@mrabarnett.plus.com> - 2012-09-06 12:38 +0100

csiph-web