zealoftoday
BAN USER
- 0of 0 votes
AnswersI have been asked to do the following by the interviewer before the Interview:
- zealoftoday in United States
"
In the meantime we're asking each of the candidates to prepare an analysis of our current School Of Architecture website as a well-informed and objective user. This will be a topic of discussion during the interviews."
I am not sure what does that means , well-formed and objective user? Could any one please explain?| Report Duplicate | Flag | PURGE
University of Southern California Web Developer Web - 0of 0 votes
AnswersI was asked to give corresponding number of days for the date string. Say for example, if we have string date variable as follows:
String date = "2011-12-31";
the output should be : 365
If we have ; String date = "2015-01-01"
The output should be : 01
I kind of started like the following but had no clue how to move forward:
- zealoftoday in United Statespublic class DayPrint { public static void main(String[] args) { String jdate = "2011-12-31"; String months = jdate.substring(5,7); int intMonths = Integer.valueOf(months); String date = jdate.substring(8,10); int intdate = Integer.valueOf(date); System.out.println("Months = " + months + "Date =" + date); for (int i = 0 ; i <= intMonths ; i++) { int count = 0; for (int j = 0 ; j < intdate ; j++){ count ++ ; } } }
| Report Duplicate | Flag | PURGE
InvestCloud Integration Software Engineer Ideas - 0of 0 votes
AnswersPlease consider the following tables:
- zealoftoday in United States
Code:
Table Name: Person
Person_Id Name
Table Name: DVD
DVD_ID Owner_ID Title
Here is the query:
Write a query that returns the list of DVDs that belong to owners who own “Superman”
Here is my solution:
Code:
SELECT p.name,d.dvd_id
FROM DVD d,Person p
WHERE p.person_id = d.dvd_id
AND Title = 'Superman' ;
I answered above answer. But interviewer was expecting me to do using Subquery. Is that possible?Please let me know if the above query is correct or not.| Report Duplicate | Flag | PURGE
Software Engineer in Test - 0of 0 votes
AnswersWe have a very large excel file that is produced every day by a batch process. We need to report what records were added and which records were removed compared to the file generated on the previous day. The challenge is that there is no sortable field in the list that we could use (such as a creation date), imagine for the sake of this test that there’s only First Name, Last Name and Email in the excel file, and that the ordering is not consistent from one day to the next. How would you approach the problem?
- zealoftoday in United States| Report Duplicate | Flag | PURGE
Database
Can you explain why are you substracting 1 from month ? I understood that not doing that won't give correct result but still I am wondering logically what is that meant for?
- zealoftoday March 21, 2015Thanks for your answer but it was the last question.
- zealoftoday March 16, 2013
Spring helps in creating loosely coupled application because of Dependency Injection.
- zealoftoday March 21, 2015In spring objects define their associations (dependencies) and do not worry about how to get those dependencies ; now it is the responsibility of Spring to provide the required dependencies for creating objects.
For example : Suppose we have an object Employee and it has a dependency on object Address. So we define a bean corresponding to Employee where it will define its dependency on object Address. When Spring try to create an Object Employee it sees that Employee has a dependency on object Address so first it will create the Address object (dependent object) and then inject this into the Employee Object.
Inversion of Control (IOC) and Dependency Injection (DI) are used interchangeably. IOC is achieved through DI. DI is the process of providing the dependencies and IOC is the end result of DI.
By DI the responsibility of creating objects is shifted from our application code to Spring container hence the phenomenon is called IOC.
Dependency Injection can be done by setter injection, constructor injection.