Selex Interview Question - 1 QUESTION Given a 100 row HTML...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1) QUESTION: Given a 100 row HTML table with an id of "table1", use jQuery to make the background color of every fourth row "#eeeeee". 2) QUESTION: Given the following C# code a. How many times do queries execute on the database? b. On which lines will a query execute on the database? c. What is the value of temp5? 01 02 03 04 05 06 07 08 09 // there are 50 rows in states_lookup // lazy loading is enabled using ( ApplicationEntities context = new ApplicationEntities ()) { var temp1 = context.states_lookup; var temp2 = temp1.Take(10).Select(x => x.state_id); var temp3 = temp1.ToList(); var temp4 = temp1.Count(); var temp5 = temp4 + temp2.Count(); } 3) QUESTION: Fix the following issues with the .NET (C# 4.0) and T-SQL (SQL Server 2008 R2) code snippet below. Each answer MUST only change OR move ONE line of code. No exceptions. Yes, all are solvable without disobeying this rule. Answer each question by stating what line number should be changed to what code, or what line number to move to what line number. You can use a debugger, Google, Visual Studio, or any other programming tools. a. The function should not be an instance method. (Answered for you as an example.) Change line 3 to: public static int CountEmployeesByName(string[] namesToSearch) { b. The database fails to store 2 employees that have the same name. Do not sacrifice the usage of the primary key index seek for searching by name.
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern