400 puzzles-and-answers-for-interview. 1. 400 puzzles -collected by Bipul Kumar Bal 01. Three friends divided some bullets equally. After all of them shot 4 bullets the total number of bullets remaining is equal to the bullets each had after division.
Find the original number divided. Answer for more papers please visit www.downloadmela.com www.downloadm ela.com A-PDF Watermark DEMO: Purchase from www.A-PDF.com to remove the watermark. 18 Assume that initial there were 3.X bullets. So they got X bullets each after division. All of them shot 4 bullets. So now they have (X - 4) bullets each.
But it is given that, after they shot 4 bullets each, total number of bullets remaining is equal to the bullets each had after division i.e. X Therefore, the equation is 3. (X - 4) = X 3. X - 12 = X 2.
X = 12 X = 6 Therefore the total bullets before division is = 3. X = 18 2. Find sum of digits of D. Let A= 19991999 for more papers please visit www.downloadmela.com www.downloadm ela.com. B = sum of digits of A C = sum of digits of B D = sum of digits of C (HINT: A = B = C = D (mod 9)) Answer the sum of the digits of D is 1. Let E = sum of digits of D.
It follows from the hint that A = E (mod 9) for more papers please visit www.downloadmela.com www.downloadm ela.com. Consider, A = 19991999 1). On the first day 1 medal and 1/7 of the remaining m - 1 medals were awarded. On the second day 2 medals and 1/7 of the now remaining medals was awarded; and so on. On the nth and last day, the remaining n medals were awarded. How many days did the contest last, and how many medals were awarded altogether?
Answer Total 36 medals were awarded and the contest was for 6 days. On day 1: Medals awarded = (1 + 35/7) = 6: Remaining 30 medals On day 2: Medals awarded = (2 + 28/7) = 6: Remaining 24 medals On day 3: Medals awarded = (3 + 21/7) = 6: Remaining 18 medals On day 4: Medals awarded = (4 + 14/7) = 6: Remaining 12 medals On day 5: Medals awarded = (5 +7/7) = 6: Remaining 6 medals On day 6: Medals awarded 6 for more papers please visit www.downloadmela.com www.downloadm ela.com. I got this answer by writing small program. If anyone know any other simpler method, do submit it.
A number of 9 digits has the following properties:. The number comprising the leftmost two digits is divisible by 2, that comprising the leftmost three digits is divisible by 3, the leftmost four by 4, the leftmost five by 5, and so on for the nine digits of the number i.e. The number formed from the first n digits is divisible by n, 2B, B-C, C-A 2. A-B, B-C, C-B 3.
A-B, B-A, C-A 4. A-B, B-A, C-B 5. A-C, C-B, B-A 6.
A-C, C-B, B-C 7. A-C, C-A, B-A 8. A-C, C-A, B-C Out of which, there are only two cases under which the ants won't collide:. A-B, B-C, C-A.
Billy madison movie script. A-C, C-B, B-A for more papers please visit www.downloadmela.com www.downloadm ela.com. 40. No question here. Answer There are total 8 such series: 1. Sum of 2000 numbers starting from -999 i.e.
Summation of numbers from -999 to 1000. (-999) + (-998) + (-997) +. + (-1) + 0 + 1 + 2 +.
+ 997 + 998 + 999 + 1000 = 1000 2. Sum of 400 numbers starting from -197 i.e. Summation of numbers from -197 to 202. (-197) + (-196) + (-195) +.
+ (-1) + 0 + 1 + 2 +. + 199 + 200 + 201 + 202 = 1000 3. Sum of 125 numbers starting from -54 i.e. Summation of numbers from -54 to 70. (-54) + (-53) + (-52) +. + (-1) + 0 + 1 + 2 +.
+ 68 + 69 + 70 = 1000 4. Sum of 80 numbers starting from -27 i.e. Summation of numbers from - 27 to 52. (-27) + (-26) + (-25) +.
+ (-1) + 0 + 1 + 2 +. + 50 + 51 + 52 = 1000 5. Sum of 25 numbers starting from 28 i.e.
Summation of numbers from 28 to 52. 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 = 1000 6. Sum of 16 numbers starting from 55 i.e.
Summation of numbers from 55 to 70. 55 + 56 + 57 + 58 + 59 +60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 = 1000 7. Sum of 5 numbers starting from 198 i.e. Summation of numbers from 198 to 202. 198 + 199 + 200 +201 + 202 = 1000 8. Sum of 1 number starting from 1000.
1000 = 1000 for more papers please visit www.downloadmela.com www.downloadm ela.com. 41. There is a 4-character code, with 2 of them being letters and the other 2 being numbers.
How many maximum attempts would be necessary to find the correct code? Note that the code is case-sensitive. Answer The maximum number of attempts required are 16,22,400 There are 52 possible letters - a to z and A to Z, and 10 possible numbers - 0 to 9. Now, 4 characters - 2 letters and 2 numbers, can be selected in 52.52.10.10 ways.
These 4 characters can be arranged in 4 C2 i.e. 6 different ways - the number of unique patterns that can be formed by lining up 4 objects of which 2 are distinguished one way (i.e. They must be letters) and the other 2 are distinguished another way (i.e. They must be numbers). Consider an example: Let's assume that @ represents letter and # represents number. The 6 possible ways of arranging them are: @@##, @#@#, @##@, #@@#, #@#@, ##@@ Hence, the required answer is = 52.52.10.10.6 = 16,22,400 attempts = 1.6 million approx. Thanks to Tim Sanders for opening BrainVista's brain!!!
For more papers please visit www.downloadmela.com www.downloadm ela.com. 42. How many possible combinations are there in a 3x3x3 rubics cube? In other words, if you wanted to solve the rubics cube by trying different combinations, how many might it take you (worst case senerio)? How many for a 4x4x4 cube? Submitted Answer There are 4.3252.
10^19 possible combinations for 3x3x3 Rubics and 7.4012. 10^45 possible combinations for 4x4x4 Rubics. Let's consider 3x3x3 Rubics first.
There are 8 corner cubes, which can be arranged in 8! Each of these 8 cubes can be turned in 3 different directions, so there are 3^8 orientations altogether. But if you get all but one of the corner cube into chosen positions and orientations, only one of 3 orientations of the final corner cube is possible. Thus, total ways corner cubes can be placed = (8!). (3^8)/8 = (8!). (3^7) Similarly, 12 edge cubes can be arranged in 12!
Each of these 12 cubes can be turned in 2 different directions, so there are 2^12 orientations altogether. But if you get all but one of the edge cube into chosen positions and orientations, only one of 2 orientations of the final edge cube is possible. Thus, total ways edge cubes can be placed = (12!). (2^12)/2 = (12!).
(2^11) Here, we have essentially pulled the cubes apart and stuck cubes back in place wherever we please. In reality, we can only move cubes around by turning the faces of the cubes. It turns out that you can't turn the faces in such a way as to switch the positions of two cubes while returning all the others to their original positions. Thus if you get all but two cubes in place, there is only one attainable for more papers please visit www.downloadmela.com www.downloadm ela.com.
choice for them (not 2!). Hence, we must divide by 2. Total different possible combinations are = (8!). (3^7). (12!). (2^11) / 2 = (8!).
(3^7). (12!). (2^10) = 4.3252. 10^19 Similarly, for 4x4x4 Rubics total different possible combinations are = (8!). (3^7). (24!).
(24!) / (4!^6) / 24 = 7.4011968. 10^45 Note that there are 24 edge cubes, which you can not turn in 2 orientations (hence no 2^24 / 2). Also, there are 4 center cubes per face i.e. (24!) / (4!^6). You can switch 2 cubes without affecting the rest of the combination as 4.4.4 has even dimensions (hence no division by 2). But pattern on one side is rotated in 4 directions over 6 faces, hence divide by 24. Substitute digits for the letters to make the following relation true.
N E V E R L E A V E + M E - A L O N E Note that the leftmost letter can't be zero in any word. Also, there must be a one- to-one mapping between digits and letters.
If you substitute 3 for the letter M, no other letter can be 3 and all other M in the puzzle must be 3. For more papers please visit www.downloadmela.com www.downloadm ela.com. Answer A tough one!!! Since R + E + E = 10 + E, it is clear that R + E = 10 and neither R nor E is equal to 0 or 5. This is the only entry point to solve it. Now use trial-n-error method.
N E V E R 2 1 4 1 9 L E A V E 3 1 5 4 1 + M E + 6 1 - - A L O N E 5 3 0 2 1 44. One of the four people - Mr.
Clinton, his wife Monika, their son Mandy and their daughter Cindy - is a singer and another is a dancer. Clinton is older than his wife and Mandy is older than his sister.
If the singer and the dancer are the same sex, then the dancer is older than the singer. If neither the singer nor the dancer is the parent of the other, then the singer is older than the dancer. If the singer is a man, then the singer and the dancer are the same age. If the singer and the dancer are of opposite sex then the man is older than the woman. If the dancer is a woman, then the dancer is older than the singer. Whose occupation do you know?
And what is his/her occupation? Answer for more papers please visit www.downloadmela.com www.downloadm ela.com. Cindy is the Singer. Clinton or Monika is the Dancer. From (1) and (3), the singer and the dancer, both can not be a man.
From (3) and (4), if the singer is a man, then the dancer must be a man. Hence, the singer must be a woman.
CASE I: Singer is a woman and Dancer is also a woman Then, the dancer is Monika and the singer is Cindy. CASE II: Singer is a woman and Dancer is also a man Then, the dancer is Mr. Clinton and the singer is Cindy. In both the cases, we know that Cindy is the Singer. And either Mr. Clinton or Monika is the Dancer.
There are 20 people in your applicant pool, including 5 pairs of identical twins. If you hire 5 people randomly, what are the chances you will hire at least 1 pair of identical twins?
(Needless to say, this could cause trouble;)) Submitted Answer The probability to hire 5 people with at least 1 pair of identical twins is 25.28% 5 people from the 20 people can be hired in 20C5 = 15504 ways. Now, divide 20 people into two groups of 10 people each: for more papers please visit www.downloadmela.com www.downloadm ela.com.
G1 - with all twins G2 - with all people other than twins Let's find out all possible ways to hire 5 people without a single pair of indentical twins.
Convert Reports to AS400 PDF SpoolFlex allows you to easily convert your AS400 reports to PDF without printing or re-keying information. PDF files can easily be Emailed or posted directly to the IFS on the AS400 or directly to your server for easy access by end users.
Turn over the task of spool file management and report distribution to the users generating the reports. Software is native AS400 software. Convert reports to PDF files automatically without any programming. SpoolFlex Features – Convert Reports to AS400 PDF Files. Create text searchable PDF files.
Add logo graphics to your PDF files. Archive PDF files directly to IFS or your file server. Automatically convert reports and spool files to PDF files. Burst reports into multiple PDF files. Dynamic naming of PDF files.
Password protect PDF files. Email reports as PDF files. Software is native AS400 software. Menu Driven for Users or APIs for programmers. Very intuitive and easy to use!
Top 20 python interview questions and answers pdf ebook free download. 1. Interview questions and answers – free pdf download Page 1 of 44 Top 20 python interview questions and answers. Interview questions and answers – free pdf download Page 2 of 44.
Interview questions and answers – free pdf download Page 3 of 44 Job interview checklist: - Pick out proper clothes. Research the company. Speak to past and present employees. Run through questions you may be asked.
Practice with a friend or family member. Interview questions and answers – free pdf download Page 4 of 44 TOP JOB INTERVIEW MATERIALS. questions-and-answers.
win-every-job-interviews. Top 7 job search, resume writing, job interview materials: interview-materials.html. Interview questions and answers – free pdf download Page 5 of 44 Tell me about yourself? This is probably the most asked question in python interview. It breaks the ice and gets you to talk about something you should be fairly comfortable with. Have something prepared that doesn't sound rehearsed. It's not about you telling your life story and quite frankly, the interviewer just isn't interested.
Unless asked to do so, stick to your education, career and current situation. Work through it chronologically from the furthest back to the present.
Interview questions and answers – free pdf download Page 6 of 44 What is Python? Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes.
Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C. It is also usable as an extension language.
Interview questions and answers – free pdf download Page 7 of 44 for applications that need a programmable interface. Finally, Python is portable: it runs on many Unix variants, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2. Interview questions and answers – free pdf download Page 8 of 44 What Can You Do for Us That Other Candidates Can't? What makes you unique?
This will take an assessment of your experiences, skills and traits. Summarize concisely: 'I have a unique combination of strong technical skills, and the ability to build strong customer relationships. This allows me to use my knowledge and break down information to be more user-friendly.' . Interview questions and answers – free pdf download Page 9 of 44 What are the rules for local and global variables in Python? In Python, variables that are only referenced inside a function are implicitly global.
If a variable is assigned a new value anywhere within the function's body, it's assumed to be a local. If a variable is ever assigned a new value inside the function, the variable is implicitly local, and you need to explicitly declare it as 'global'. Though a bit surprising at first, a moment's consideration explains this. On one hand, requiring global for assigned variables provides a bar. Interview questions and answers – free pdf download Page 10 of 44 against unintended side-effects.
On the other hand, if global was required for all global references, you'd be using global all the time. You'd have to declare as global every reference to a builtin function or to a component of an imported module. This clutter would defeat the usefulness of the global declaration for identifying side- effects. Interview questions and answers – free pdf download Page 11 of 44 How do I copy an object in Python?
In general, try copy.copy or copy.deepcopy for the general case. Not all objects can be copied, but most can. Some objects can be copied more easily. Dictionaries have a copy method: newdict = olddict.copy Sequences can be copied by slicing: newl = l:. Interview questions and answers – free pdf download Page 12 of 44 How do I convert a number to a string? To convert, e.g., the number 144 to the string '144', use the built-in function str. If you want a hexadecimal or octal representation, use the built-in functions hex or oct.
For fancy formatting, use the% operator on strings, e.g. '%04d'% 144 yields '0144' and '%.3f'% (1/3.0) yields '0.333'.
See the library reference manual for details. Interview questions and answers – free pdf download Page 13 of 44 Is there a scanf or sscanf equivalent? For simple input parsing, the easiest approach is usually to split the line into whitespace- delimited words using the split method of string objects and then convert decimal strings to numeric values using int or float. Split supports an optional 'sep' parameter which is useful if the line uses something other than whitespace as a separator.
Interview questions and answers – free pdf download Page 14 of 44 For more complicated input parsing, regular expressions more powerful than C's sscanf and better suited for the task. Interview questions and answers – free pdf download Page 15 of 44 How do I convert between tuples and lists?
The function tuple(seq) converts any sequence (actually, any iterable) into a tuple with the same items in the same order. For example, tuple(1, 2, 3) yields (1, 2, 3) and tuple('abc') yields ('a', 'b', 'c'). If the argument is a tuple, it does not make a copy but returns the same object, so it is cheap to call tuple when you aren't sure that an object is already a tuple. The function list(seq) converts. Interview questions and answers – free pdf download Page 16 of 44 any sequence or iterable into a list with the same items in the same order.
For example, list((1, 2, 3)) yields 1, 2, 3 and list('abc') yields 'a', 'b', 'c'. If the argument is a list, it makes a copy just like seq: would. Interview questions and answers – free pdf download Page 17 of 44 What's a negative index? Python sequences are indexed with positive numbers and negative numbers. For positive numbers 0 is the first index 1 is the second index and so forth.
Sample Questions And Answers For Interview
For negative indices -1 is the last index and -2 is the penultimate (next to last) index and so forth. Think of seq-n as the same as seqlen(seq)-n.
Using negative indices can be very convenient. For example S:-1 is all of the string except for its last character, which is useful for removing the trailing newline from a string. Interview questions and answers – free pdf download Page 18 of 44 What is a class? A class is the particular object type created by executing a class statement. Class objects are used as templates to create instance objects, which embody both the data (attributes) and code (methods) specific to a datatype.
A class can be based on one or more other classes, called its base class(es). It then inherits the attributes and methods of its base classes. Saw 1 streaming vostfr. This allows an object model to be successively refined by inheritance. You might have a.
Interview questions and answers – free pdf download Page 19 of 44 generic Mailbox class that provides basic accessor methods for a mailbox, and subclasses such as MboxMailbox, MaildirMailbox, OutlookMailbox that handle various specific mailbox formats. Interview questions and answers – free pdf download Page 20 of 44 How do I call a method defined in a base class from a derived class that overrides it?
If you're using new-style classes, use the built-in super function: class Derived(Base): def meth (self): super(Derived, self).meth If you're using classic classes: For a class definition such as class Derived(Base). You can call method meth defined in Base (or one of Base's base classes) as Base.meth(self, arguments.). Here, Base.meth is an unbound method, so you need to provide the self argument. Interview questions and answers – free pdf download Page 21 of 44 How can I organize my code to make it easier to change the base class? You could define an alias for the base class, assign the real base class to it before your class definition, and use the alias throughout your class. Then all you have to change is the value assigned to the alias.
Incidentally, this trick is also handy if you want to decide dynamically (e.g. Depending on availability of resources) which base class to use.
Example:. Interview questions and answers – free pdf download Page 22 of 44 BaseAlias = class Derived(BaseAlias): def meth(self): BaseAlias.meth(self). Interview questions and answers – free pdf download Page 23 of 44 Where is the math.py (socket.py, regex.py, etc.) source file? There are (at least) three kinds of modules in Python: 1.
Modules written in Python (.py); 2. Modules written in C and dynamically loaded (.dll,.pyd,.so,.sl, etc); 3. Modules written in C and linked with the interpreter; to get a list of these, type: import sys print sys.builtinmodulenames. Interview questions and answers – free pdf download Page 24 of 44 What is self?
Self is merely a conventional name for the first argument of a method. A method defined as meth(self, a, b, c) should be called as x.meth(a, b, c) for some instance x of the class in which the definition occurs; the called method will think it is called as meth(x, a, b, c).
Opening position. Interview questions and answers – free pdf download Page 25 of 44 How do I apply a method to a sequence of objects? Use a list comprehension: result = obj.method for obj in List More generically, you can try the following function: def methodmap(objects, method, arguments): 'methodmap(a,b, 'meth', (1,2)) gives a.meth(1,2), b.meth(1,2)' nobjects = len(objects) methods = map(getattr, objects,. Interview questions and answers – free pdf download Page 26 of 44 method.nobjects) return map(apply, methods, arguments.nobjects). Interview questions and answers – free pdf download Page 27 of 44 Why don't my signal handlers work?
The most common problem is that the signal handler is declared with the wrong argument list. It is called as handler(signum, frame) so it should be declared with two arguments: def handler(signum, frame):. Interview questions and answers – free pdf download Page 28 of 44 How can I execute arbitrary Python statements from C? The highest-level function to do this is PyRunSimpleString which takes a single string argument to be executed in the context of the module main and returns 0 for success and -1 when an exception occurred (including SyntaxError). If you want more control, use PyRunString; see the source for PyRunSimpleString in Python/pythonrun.c.
Hope ya will make good music now 😉 And as you did really know for sure this pack is gonna kick ass, even other VST’s can’t really comply to what Sytrus gives out of sound! All presets made with hard days accomplishes, most of them were made out of DX7 synths presets. The presets are mainly for electro, house and dubstep, but you will use them for sure in another music genres too. The pack is split in three parts each one being filled with pads, arps, basses, leads effects/ percussions and more. Fl studio gms presets download.
Interview questions and answers – free pdf download Page 29 of 44 Where is Freeze for Windows? Freeze' is a program that allows you to ship a Python program as a single stand-alone executable file. It is not a compiler; your programs don't run any faster, but they are more easily distributable, at least to platforms with the same OS and CPU. Interview questions and answers – free pdf download Page 30 of 44 How do I interface to C objects from Python? Depending on your requirements, there are many approaches. To do this manually, begin by reading the 'Extending and Embedding' document.
Realize that for the Python run-time system, there isn't a whole lot of difference between C and C - so the strategy of building a new Python type around a C structure (pointer) type will also work for C objects. Interview questions and answers – free pdf download Page 31 of 44 How do I generate random numbers in Python? The standard module random implements a random number generator. Usage is simple: import random random.random This returns a random floating point number in the range 0, 1). Interview questions and answers – free pdf download Page 32 of 44 Top 6 tips for job interview. Interview questions and answers – free pdf download Page 33 of 44 Tip 1: Do your homework You'll likely be asked difficult questions during the interview.
Preparing the list of likely questions in advance will help you easily transition from question to question. Spend time researching the company. Look at its site to understand its mission statement, product offerings, and management team.
A few hours spent researching before your interview can impress the hiring manager greatly. Read the company's annual report (often posted on the site), review the employee's LinkedIn profiles, and search the company on Google News, to see if they've been. Interview questions and answers – free pdf download Page 34 of 44 mentioned in the media lately. The more you know about a company, the more you'll know how you'll fit in to it. Ref material: jobguide247.info/job-interview-checklist-40-points Tip 2: First impressions When meeting someone for the first time, we instantaneously make our minds about various aspects of their personality. Prepare and plan that first impression long before you walk in the door.
Continue that excellent impression in the days following, and that job could be yours. Therefore:.
Interview questions and answers – free pdf download Page 35 of 44. Never arrive late. Use positive body language and turn on your charm right from the start. Switch off your mobile before you step into the room. Look fabulous; dress sharp and make sure you look your best. Start the interview with a handshake; give a nice firm press and then some up and down movement. Determine to establish a rapport with the interviewer right from the start.
Always let the interviewer finish speaking before giving your response. Express yourself fluently with clarity and precision. Interview questions and answers – free pdf download Page 36 of 44 Useful material: jobguide247.info/top-10-elements-to-make-a- good-first-impression-at-a-job-interview Tip 3: The “Hidden” Job Market Many of us don’t recognize that hidden job market is a huge one and accounts for 2/3 of total job demand from enterprises. This means that if you know how to exploit a hidden job market, you can increase your chance of getting the job up to 300%. In this section, the author shares his experience and useful tips to exploit hidden job market. Interview questions and answers – free pdf download Page 37 of 44 Here are some sources to get penetrating into a hidden job market: Friends; Family; Ex-coworkers; Referral; HR communities; Field communities; Social networks such as Facebook, Twitter; Last recruitment ads from recruiters; HR emails of potential recruiters Tip 4: Do-It-Yourself Interviewing Practice There are a number of ways to prepare for an interview at home without the help of a professional career counselor or coach or a fee-based service. You can practice interviews all by yourself or recruit friends and family to assist you.
Interview questions and answers – free pdf download Page 38 of 44 Useful material: jobguide247.info/free-ebook-75-interview- questions-and-answers Tip 5: Ask questions Do not leave the interview without ensuring that you know all that you want to know about the position. Once the interview is over, your chance to have important questions answered has ended. Asking questions also can show that you are interested in the job.
Be specific with your questions. Ask about the company and the industry. Avoid asking personal questions of the interviewer and avoid asking questions pertaining to politics, religion and the like. Interview questions and answers – free pdf download Page 39 of 44 Ref material: jobguide247.info/25-questions-to-ask-employers- during-your-job-interview Tip 6: Follow up and send a thank-you note Following up after an interview can help you make a lasting impression and set you apart from the crowd. Philip Farina, CPP, a security career expert at Manta Security Management Recruiters, says: 'Send both an email as well as a hard-copy thank-you note, expressing excitement, qualifications and further interest in the position.
Invite the hiring manager to. Interview questions and answers – free pdf download Page 40 of 44 contact you for additional information. This is also an excellent time to send a strategic follow-up letter of interest.'