Amazon Interview Question
Software Engineer / DevelopersCountry: India
Interview Type: Written Test
is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
Reference: Wikipedia:
- mag January 07, 2012"An expression is said to be referentially transparent if it can be replaced with its value without changing the behavior of a program (in other words, yielding a program that has the same effects and output on the same input). The opposite term is referentially opaque."
So log(x) is referentially transparent, rest are referentially opaque.
Because for given x, log(x) has a certain value. But in case of:
now(): time changes so you can't possibly replace it with an exact value.
strcat(str1, gets()): result depends upon input string received from gets.
rand(0, 1): random number between 0 and 1, cannot have certain value, it will be different each time it is called.