Showing posts with label Interview. Show all posts
Showing posts with label Interview. Show all posts

Sunday, May 1, 2011

Servlet Interview Question | Latest Servlet/JSP Interview Question

Q) What is the difference between JSP and Servlets ?A)JSP is used mainly for presentation only. A JSP can only be HttpServlet that means the only supported protocol in JSP is HTTP. But a servlet can support any protocol like HTTP, FTP, SMTP etc.Q )What is difference between custom JSP tags and beans?A)Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any number of JSP files. To use custom JSP tags, you need to define three separate components: the tag handler class that defines the tag’s behavior ,the tag library descriptor file that maps the XML element names to the tag implementations and the JSP file that uses the tag libraryJavaBeans are Java utility...

SBI Exam Practice paper | Latest SBI exam Sample papers with answers

Q)Study each of the following table and choose the alternative which can best replace the question mark (?)*1 2 3 2 10 12*2 5 12 10 16 13*1 2 1 ? 10 24options :(a) 5   (b) 11   (c) 13   (d) 8Ans (c) Q)Study each of the following table and choose the alternative which can best replace the question mark (?)*3 8 10 2 ? 1*6 56 90 2 20 0options:(a) 0 (b) 3 (c) 5 (d) 7Ans (c) Q)In the following question one term in the number series is wrong. Find out the wrong term.*11, 5, 20, 12, 40, 26, 74, 54options:(a) 5 (b) 20 (c) 40 (d) 26Ans (c) Q)In the following question one term in the number series is wrong. Find out the wrong term.*8, 14, 26, 48, 98, 194, 386options:(a) 14 (b) 48 (c) 98 (d) 194Ans (b) Q)Calculate value of each word by the following formula:Consonants = (2...

Latest PHP Interview Question Answers | Basic & Most asked Question of PHP

Q 1)Which function in PHP gives us absolute path of a file on the server?< ?php $p = getcwd(); echo $p; ?> Ans: getcwd() Here I have stored my files under httdocs (using php5,i haven’t checked under php4) so I get the output as C:\apache2triad\htdocs you may get your path information while runnings the above code. Q 2)what is the php solution to dynamic caching ?www.w3answers.com PHP offers an extremely simple solution to dynamic caching in the form of output buffering. Q 3)What is the difference between strstr() and stristr()?strstr — Find first occurrence of a string strstr() example < ?php$email = 'user@example.com';$domain = strstr($email, '@');echo $domain; // prints @example.com?> stristr — Case-insensitive strstr() stristr() example < ?php$email = 'USER@EXAMPLE.com';echo...

Basic MySql Database Questions with Answers | MySql Mostly Asked Question in Interview

Q 1 how to do login in mysql with unix shellA: By below method if password is pass and user name is rootA# [mysql dir]/bin/mysql -h hostname -u root -p pass Q 2 how you will Create a database on the mysql server with unix shellA: mysql> create database databasename; Q 3 how to list or view all databases from the mysql server.A: mysql> show databases; Q4 How Switch (select or use) to a database.A: mysql> use databasename; Q 5 How To see all the tables from a database of mysql server.A: mysql> show tables; Q 6 How to see table’s field formats or description of table .A: mysql> describe tablename; Q7 How to delete a database from mysql server.A : mysql> drop database databasename; Q 8 How we get Sum...