Web Developer Interview Questions
- 0of 0 votes
AnswersWrite a code snippet to remove the duplicate characters in a string.
- cutesubha2389 April 16, 2015 in India for EPUB
e.x xxxyyyzzz should return xyz using recursion in Javascript| Report Duplicate | Flag | PURGE
Nanosoft Technologies - Chennai Web Developer Algorithm - 0of 0 votes
AnswersPHP,OOPS,javascript,jquery,codeigniter ,Interview question asked by recurtier
- arun6291 April 15, 2015 in India
until now i went 7 company's Plus
3 telephonic rounds and 4 tests Below are the question they are asked to me.
a) current version of PHP?
b) Abstraction and use?
c) Inheritence and use?
d) diffrence b/w console.log and document.write?
e) diff b.w single quote and double quote?
g) diff b/w documen.write and document.writeln?
h) diff b/w javascript and jquery?
i) is PHP fully oop?
j) tell me about document.ready() and window.load event occurs?
k) use of fopen friead in php?
l) senario of include and require and also use and when we will use?
m) how to print date in php?
n) php Joins and types of joins?
o) echo and print diffrence ? cookies and session diff?
p) joins in mysql?
q) codeigniterdatabase connectoin?
r) how to override static function?
s) hoe to load model in codeigniter?
t) use of helpers in codeigniter?
u) write a file upload program?
v) write username and password validation in javascript and php?
w) how to change color using jquery?
x) diffrence b/w if and switch?
y) write 10 array and string functions?
z) how to change char to varchar write a query?
and also normilization and it's types,BCNF?
how to increse php script execution time?
and default time of php program execution?
where you store cookie and session values?
var_dump() use?| Report Duplicate | Flag | PURGE
Web Developer - -1of 1 vote
AnswersThe provided 'site.html' document passes validation (using a service like: http://validator.w3.org/check), however it's not quite "right". Please take a look at it, and: There are 22 errors in site.html
- naren March 13, 2015 in United States
Apply any fixes to the document (in the 'site.html' file)
Changes can be related to best practices, syntax, semantics, formatting, whatever is missing/lacking.
Do not create/add any CSS. We only looking for solid markup and fast/functional JavaScript to perform the content truncation.
site.html
<!DOCTYPE html>
<html lang="en">
<head>
<!-- DO NOT REMOVE THIS LINE: DDC-EX-REV-D -->
<title></title>
<meta charset="utf-8">
<meta content="Lorem ipsum" name="description">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
console.log('document is ready');
$("html body .main-content #primaryContent .press-releases .press_release").each(function(){
if($(this).children("p").length > 1){
$('<div><a href="#readmore" class="readmore">Read More…</a></div>').appendTo($(this));
$(this).children("p").first().addClass('first-p');
$(this).children("p").not('.first-p').hide();
$(this).find('.readmore').click(function(){
$(this).parent().siblings('p').not('.first-p').slideToggle(500);
return false;
});
}
});
});
</script>
</head>
<body>
<header>
<h4><a target="_blank" href="http://www.dealer.com">Dealer.com</a>
</h4>
<nav>
<ul>
<li>
<a href="#solutions">Solutions</a>
<a href="#products">Products</a>
<a href="#services" class="active highlightOrange" style="border-bottom-width:5px;">Services</a>
<a href="#company">Company</a>
</li>
</ul>
</nav>
<span class="contact-info-phone">Call Us Today <a href="#">(802) 555-5555</a></span>
</header>
<section class="main-content">
<div id="primaryContent" class="pressReleasesContainer">
<section class="press-releases">
<article class="press_release">
<h2>Dealer.com Awarded Patent for its Human Voice Inventory Video Technology</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tortor libero, volutpat ut lacinia ut, lobortis at massa. Etiam condimentum laoreet dolor, cursus auctor leo tristique a. Donec congue vulputate nisl, a aliquam libero aliquet at. Proin auctor enim vitae lectus lacinia vitae ullamcorper dolor tempus. Ut at ligula mi. Curabitur nisl sapien, laoreet vel blandit quis, condimentum interdum eros. Duis eget sem justo. Vivamus sit amet ante massa, eu facilisis ipsum. Ut fermentum convallis placerat. Suspendisse sit amet felis cursus mauris tempor facilisis.</p>
</article>
<article class="press_release">
<h2>Dealer.com Awarded "Highest Rated" Dealer Satisfaction Award for MobileSites by DrivingSales</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tortor libero, volutpat ut lacinia ut, lobortis at massa. Etiam condimentum laoreet dolor, cursus auctor leo tristique a. Donec congue vulputate nisl, a aliquam libero aliquet at. Proin auctor enim vitae lectus lacinia vitae ullamcorper dolor tempus. Ut at ligula mi. Curabitur nisl sapien, laoreet vel blandit quis, condimentum interdum eros. Duis eget sem justo. Vivamus sit amet ante massa, eu facilisis ipsum. Ut fermentum convallis placerat. Suspendisse sit amet felis cursus mauris tempor facilisis.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tortor libero, volutpat ut lacinia ut, lobortis at massa. Etiam condimentum laoreet dolor, cursus auctor leo tristique a. Donec congue vulputate nisl, a aliquam libero aliquet at. Proin auctor enim vitae lectus lacinia vitae ullamcorper dolor tempus. Ut at ligula mi. Curabitur nisl sapien, laoreet vel blandit quis, condimentum interdum eros. Duis eget sem justo. Vivamus sit amet ante massa, eu facilisis ipsum. Ut fermentum convallis placerat. Suspendisse sit amet felis cursus mauris tempor facilisis.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tortor libero, volutpat ut lacinia ut, lobortis at massa. Etiam condimentum laoreet dolor, cursus auctor leo tristique a. Donec congue vulputate nisl, a aliquam libero aliquet at. Proin auctor enim vitae lectus lacinia vitae ullamcorper dolor tempus. Ut at ligula mi. Curabitur nisl sapien, laoreet vel blandit quis, condimentum interdum eros. Duis eget sem justo. Vivamus sit amet ante massa, eu facilisis ipsum. Ut fermentum convallis placerat. Suspendisse sit amet felis cursus mauris tempor facilisis.</p>
</article>
<div class="press_release">
<h2>The Dealer.com Digital Website Suite Features Powerful Marketing & Management Apps in One Platform</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tortor libero, volutpat ut lacinia ut, lobortis at massa. Etiam condimentum laoreet dolor, cursus auctor leo tristique a. Donec congue vulputate nisl, a aliquam libero aliquet at. Proin auctor enim vitae lectus lacinia vitae ullamcorper dolor tempus. Ut at ligula mi. Curabitur nisl sapien, laoreet vel blandit quis, condimentum interdum eros. Duis eget sem justo. Vivamus sit amet ante massa, eu facilisis ipsum. Ut fermentum convallis placerat. Suspendisse sit amet felis cursus mauris tempor facilisis.</p>
</div>
</section>
</div>
<div id="secondaryContent" class="aside-right">
<section class="previous-releases previous-releases-individual">
<h2>Previous Releases</h2>
<ul>
<li>
<time datetime="2012-01-23">January 23, 2012</time>
<p>Dealer.com awarded coolest place to work in Burlington, VT. After weeks of voting...</p>
<p>
<a href="#">read more >> </a>
</p>
</li>
<li>
<time datetime="2012-01-01">January 1, 2012</time>
<p>Dealer.com brings in the new year with a bang! The month of January is always an...</p>
<p>
<a href="#">read more >> </a>
</p>
</li>
<li>
<time datetime="2011-12-18">December 18, 2011</time>
<p>Dealer.com awarded coolest place to work in Burlington, VT. After weeks of voting...</p>
<p>
<a href="#">read more >> </a>
</p>
</li>
</ul>
</section>
<section>
<h2>Previous Releases</h2>
<h4>2012 Archive</h4>
<ul>
<li><a href="#">April</a></li>
<li><a href="#">March</a></li>
<li><a href="#">February</a></li>
<li><a href="#">January</a></li>
</ul>
</section>
<section>
<h2>Full Releases Archive</h2>
<ol>
<li><a href="#">2011 Full Archive</a></li>
<li><a href="#">2010 Full Archive</a></li>
<li><a href="#">2009 Full Archive</a></li>
<li><a href="#">2008 Full Archive</a></li>
</ol>
</section>
</div>
</section>
<div class="footer">
<div>
<h1>Learn More About Dealer.com</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tortor libero, volutpat ut lacinia ut, lobortis at massa. Etiam condimentum laoreet dolor, cursus auctor leo tristique a. Donec congue vulputate nisl, a aliquam libero aliquet at. Proin auctor enim vitae lectus lacinia vitae ullamcorper dolor tempus. Ut at ligula mi. Curabitur nisl sapien, laoreet vel blandit quis, condimentum interdum eros. Duis eget sem justo. Vivamus sit amet ante massa, eu facilisis ipsum. Ut fermentum convallis placerat. Suspendisse sit amet felis cursus mauris tempor facilisis.</p>
<table>
<tbody>
<tr>
<td>
<a href="#linkedin" class="linked">
<span class="icon"></span> LinkedIn
</a>
</td>
<td>
<a href="#facebook" class="facebook">
<span class="icon"></span> Facebook
</a>
</td>
<td>
<a href="#rss" class="rss">
<span class="icon"></span> Subscribe
</a>
</td>
</tbody>
</table>
</div>
<div class="asideRight">
<p>Please fill out the form below and a sales representative will contact you.</p>
<form action="#" method="post" id="quick-contact-form">
<fieldset>
<ul>
<li>
<label for="field-name">Full Name </label>
<input type="text" id="field-name" name="name" required>
</li>
<li>
<label for="field-phone">Phone </label>
<input type="text" id="field-phone" name="phone" required class="phoneUS" placeholder="(555) 555-5555">
</li>
<li>
<label for="field-email">Email</label>
<input type="email" id="field-email" name="email" required placeholder="me@example.com">
</li>
<li>
<label for="field-comments">Comments</label>
<textarea required id="field-comments" name="comments" rows="4" cols="20"></textarea>
</li>
<li>
<input type="submit" value="Contact Now" name="quick-contact-submit">
</li>
</ul>
</fieldset>
</form>
</div>
</div>
</body>
</html>| Report Duplicate | Flag | PURGE
dealer.com Web Developer Front End Web Development - 6of 6 votes
AnswersGiven a array int a[]={2,5,1,9,3,7,2,8,9,3} and the no. of swap operations.We are allowed to do swap operations.
swap constraint: exchange only adjacent element.
Find the max number that can be formed using swap operations.
- koustav.adorable May 11, 2014 in Indiapublic static int[] maximize(int arr[],int swapsAllowed);
| Report Duplicate | Flag | PURGE
Amazon Web Developer Coding - 0of 0 votes
AnswersThere are n points on a 2D plan, find the k points that are closest to origin ( x=0, y=0)
- k October 17, 2013 in United States| Report Duplicate | Flag | PURGE
Facebook Web Developer Algorithm - 0of 0 votes
AnswersCreate a basic implementation of Deferred.
- Kevin.Pheasey April 10, 2013 in United States for AWS
Deferred#resolve => Marks the deferred / promise as completed successfully and calls success callbacks
Deferred#reject => Marks the deferred / promise as failed and calls failed callbacks
Deferred#promise => Returns promise object for watching completion
#addCallback => Adds a callback function to be called if the activity is successful
#addFailCallback => Adds a callback function to be called if the activity fails
var promise = myAsyncThingy(); // Call the API that starts some async work and returns a promise
promise.addCallback(function () { console.log("We did it"); }); // Register a success callback
promise.addFailCallback(function () { console.error("We failed"); }); // Register a failure callback
function myAsyncThingy() {
var def = new Deferred(); // Create a deferred to use for managing our async behavior
setTimeout(function () { def.resolve() }, 1000); // In one second call the resolve function to mark it as success
return def.promise(); // return the promise for our deferred to the client
}| Report Duplicate | Flag | PURGE
Amazon Web Developer - 3of 3 votes
AnswersUsing the mythical Hydra as an example, create a button that is destroyed by clicking it, but two new buttons are created in it's place.
- Kevin.Pheasey April 10, 2013 in United States for AWS| Report Duplicate | Flag | PURGE
Amazon Web Developer JavaScript - 2of 2 votes
AnswersCreate a function that will reverse the words in a sentence.
- Kevin.Pheasey April 10, 2013 in United States for AWS| Report Duplicate | Flag | PURGE
Amazon Web Developer JavaScript - 0of 0 votes
AnswersWrite an efficient function that returns the n’th Fibonacci number (There are many ways to solve this problem. Please write the most efficient method possible). Each Fibonacci number is the sum of the last two. The first 10 are: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55.
- bs March 23, 2013 in United States
long getNthFibonacci(long i) { ... }| Report Duplicate | Flag | PURGE
Amazon Web Developer Algorithm - 0of 0 votes
AnswersSetup:
- bs March 23, 2013 in United States
Assume primitive Facebook. FB has Members.
class Member {
String name;
String email;
List<Member> friends;
}
Question:
Code printSocialGraph(Member m). Direct friends of m are Level 1 friends. Friends of friends are level 2 friends.....and so on
Print level 1 friends first. Then print level 2 friends....and so on
void printfriendsByLevel(Member m){
//Your code here
}| Report Duplicate | Flag | PURGE
Amazon Web Developer Coding - 0of 0 votes
AnswersLet's say we're developing a vector graphics application. It will allow the user to create lines, rectangles, circles, text, etc. and manipulate them independently - move them, resize them, etc. Design an object model for this application. (How would you model the representation of the document in an object oriented language? What classes would you define? What methods would you have? What would your API look like?)
- bs March 23, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Web Developer Object Oriented Design - 0of 0 votes
Answersdesign Multi level categories in eCommerce website using no sql. How is it better than modified preorder traversal with relational database like mysql.
- tomb February 16, 2012 in United States| Report Duplicate | Flag | PURGE
LiteratureBay.com Web Developer - 0of 0 votes
AnswersWrite code to create a form with two tabs. First tabs contains a form which has name, address etc. After filling first form when we click submit button, page goes to second tab which has some information or something. You have to write in javascript/css/html.
- JavaJavas February 19, 2011
Both tabs should be visible, but not forms.| Report Duplicate | Flag | PURGE
PayPal Web Developer Coding - 0of 0 votes
AnswersDid you faced any stuburn person on your job and how did you handled it ??
- Anonymous September 15, 2010| Report Duplicate | Flag | PURGE
Web Developer Behavioral - 0of 0 votes
AnswersWrite a Java program that prints the size of a non-primitive Java object.
- Anonymous August 08, 2009| Report Duplicate | Flag | PURGE
Oracle Web Developer Java - 0of 0 votes
AnswersGiven the following MySQL table schema, write a query to return the employee with the 7th highest salary.
CREATE TABLE `employee_salary` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL,
`salary` decimal(10,2) NOT NULL,
PRIMARY KEY (`id`),
KEY `IDX_salary` (`salary`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
My Answer:SELECT name, salary FROM ( SELECT name, salary FROM Employees ORDER BY salary, desc ) WHERE ROWNUM >=3 and ROWNUM <=7
something like that....
- Silvimass May 27, 2009
here is the discription
http://coldfusion.sys-con.com/node/43794| Report Duplicate | Flag | PURGE
Amazon Web Developer Database - 0of 0 votes
AnswersWrite a class to extract basic data from an Amazon Product Detail web page when passed a URL The following information must be extracted into an array: ISBN10, ISBN13, Weight, Dimensions, and Current Price. This code must be written in PHP. An example URL is:
- Silvimass May 27, 2009
http://www.amazon.com/Biology-MasteringBiology-8th-Neil-Campbell/dp/0321543254/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1233281929&sr=8-1
My Answer: it's really easy. Check for the values into actual page and then just truncate string accordingly| Report Duplicate | Flag | PURGE
Amazon Web Developer PHP - 0of 0 votes
AnswersWrite a basic web application, following the Model-View-Controller/Modular design pattern. The following URLs should be functional:
- Silvimass May 27, 2009
• http://www.server.com/index.php?page=showTime - Displays the current system time.
• http://www.server.com/index.php?page=showDate - Displays the current system date.
• http://www.server.com/index.php?page=showVersion - Displays the current PHP / Java version.
Each page should be represented by an individual class. Any of the following languages can be used: PHP| Report Duplicate | Flag | PURGE
Amazon Web Developer PHP Object Oriented Design - 0of 0 votes
AnswersUtilizing two common Object-Oriented design patterns, write a set of classes, which can be used to log a given message. The message should be logged to either a MySQL database or a file, depending on a configuration setting. There should be only one connection opened to the database (or the log file should only be opened once) throughout the use of the application. ). Any of the following languages can be used: PHP
- Silvimass May 27, 2009
My Answer:
create a buffer to generate a log and then copy entire buffer to your designated file
but downsize of this method is .... you will loose all data if system fail to commite or fail to log...//power shutdown| Report Duplicate | Flag | PURGE
Amazon Web Developer PHP Object Oriented Design - 0of 0 votes
Answers"hELLo wOrLd1"
- dal March 12, 2008
Reverse the characters, upper to lower,
lower to upper, etc...| Report Duplicate | Flag | PURGE
Microsoft Web Developer C - 0of 0 votes
AnswersCreate a program that traverses a tree full of nodes and calls a function when it reaches a leaf node.
- dal December 04, 2007
<node> childnode
a node
+ childnodes
b node
+ childnodes
c node
+ childnodes
x node
d node
g node
p node| Report Duplicate | Flag | PURGE
Microsoft Web Developer Trees and Graphs Coding - 0of 0 votes
AnswersAsked my oppinions on Javascript and other client-side web technologies (the answer that they want is that you should AVOID them at all costs)
- John Doig October 03, 2006| Report Duplicate | Flag | PURGE
IBM Web Developer Terminology & Trivia - 0of 0 votes
AnswersAsked for my knowledge of encryption methods
- John Doig October 03, 2006| Report Duplicate | Flag | PURGE
IBM Web Developer General Questions and Comments - 0of 0 votes
AnswersThe position was intended for an individual in strong in PHP/mySQL, so many questions were concerning PHP.
- John Doig October 03, 2006| Report Duplicate | Flag | PURGE
IBM Web Developer General Questions and Comments - 0of 0 votes
AnswerAsked for examples of some of my previous web designs.
- John Doig October 03, 2006| Report Duplicate | Flag | PURGE
IBM Web Developer Experience - 0of 0 votes
AnswersBasically told me what they need and how comfortable I am with completing that assignment.
- Jack April 06, 2006| Report Duplicate | Flag | PURGE
Interactive Design Web Developer General Questions and Comments - 0of 0 votes
AnswersSent a 150 MB portfolio. Received offer shortly after.
- Jack March 27, 2006| Report Duplicate | Flag | PURGE
Iconologic Web Developer General Questions and Comments - 0of 0 votes
AnswersMostly behavorial questions dealing with experience.
- Jack March 01, 2006| Report Duplicate | Flag | PURGE
Iconologic Web Developer Behavioral