<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Free Question Bank &#187; Tech</title> <atom:link href="http://www.freequestionbank.com/category/tech-crunch/feed/" rel="self" type="application/rss+xml" /><link>http://www.freequestionbank.com</link> <description>Just another WordPress weblog</description> <lastBuildDate>Sat, 20 Feb 2010 05:10:08 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.1</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Sysadmin sample interview questions</title><link>http://www.freequestionbank.com/question/sysadmin-sample-interview-questions-techinterviews/</link> <comments>http://www.freequestionbank.com/question/sysadmin-sample-interview-questions-techinterviews/#comments</comments> <pubDate>Tue, 19 May 2009 03:37:40 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=611</guid> <description><![CDATA[Why was it that you left the last job that you were at?
What do you think your top 3 strengths ...]]></description> <content:encoded><![CDATA[<div
class="entry-content"><ol><li>Why was it that you left the last job that you were at?</li><li>What do you think your top 3 strengths are?</li><li>What is most important to you in a job?</li><li>Major difference between FAT and NTFS on a local machine?</li><li>How many passwords by default are remembered in an active directory?</li><li>What is a C name record (in DNS)?</li><li>What is a LM host file used for?</li><li>Can you name the FSMO roles in active directory?</li><li>What tolls would you use to gage the effect of group policy before using any tools?</li><li>Explain Active Directory sites and services and linked cost routing?</li><li>When would you use circular logging and exchange?</li><li>Exhange related question &#8211; as an echange admin if someone asked you how to determine if mail was delivered or not which tool would you use?</li><li>Can you explain how you configurated SMS.</li><li>Rate yourself in 3 different areas (1-5, 5 is expert)</li></ol></div><p>via <a
href="http://www.techinterviews.com/sysadmin-sample-interview-questions">Sysadmin sample interview questions | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/sysadmin-sample-interview-questions-techinterviews/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Hiring an IT guy &#8211; questions to ask</title><link>http://www.freequestionbank.com/question/hiring-an-it-guy-questions-to-ask/</link> <comments>http://www.freequestionbank.com/question/hiring-an-it-guy-questions-to-ask/#comments</comments> <pubDate>Tue, 19 May 2009 03:36:57 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=609</guid> <description><![CDATA[
What port does telnet use?
What is SMTP?
How would you troubleshoot a printer?
How does traceroute work?
Walk me through everything that happens ...]]></description> <content:encoded><![CDATA[<ol><li>What port does telnet use?</li><li>What is SMTP?</li><li>How would you troubleshoot a printer?</li><li>How does traceroute work?</li><li>Walk me through everything that happens in the network from the moment you punch in www.google.com in the address bar to when the browser displays the page?</li><li>Can you work this weekend?</li><li>What kind of people are your current users? Do you like them?</li><li>What role do you think computer support analysts should play in the company?</li><li>Assuming you have to work for a living and all jobs pay the same, how would you describe the job you want?</li><li>When conflict arises on your team, how do you handle it?</li><li>How do you stay current?</li><li>What operating system do you prefer and why?</li><li>What part of the project life cycle have you worked on?</li><li>Describe the project or situation that best demonstrates your coding (or analytical) skills.</li><li>What is the differece between local, global and universal groups?</li><li>What is the major difference between FAT and NTFS?</li><li>Name the FMSO roles and their functions.</li><li>You’ve just been asked to create 20 new Users and update 2 GPOs, ASAP! You go to the Administrative Tools, and discover they are all gone. What do you do? What do you suspect happened?</li><li>What is a Global Catalog?</li><li>Explain the function of DNS.</li><li>Explain a “Two-Way Transitive” trust.</li><li>In speaking about trusts, what does “Non-transitive” mean?</li><li>Describe the lease process of DHCP.</li><li>Explain NTP.</li><li>What is the 568B wiring scheme?</li><li>What us your highest achievement while working in the IT field?</li><li>What are your short term goals to achieve?</li><li>You have a user call for support for the 5th time on the same issue. How would you handle the call and what would you do differently?</li><li>List as many ways you can think of to move a file from a Windows machine to a Linux machine.</li><li>Demonstrate recursiveness by implementing a factorial function.</li></ol><p>via <a
href="http://www.techinterviews.com/hiring-an-it-guy-questions-to-ask">Hiring an IT guy &#8211; questions to ask | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/hiring-an-it-guy-questions-to-ask/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Unix admin questions</title><link>http://www.freequestionbank.com/question/unix-admin-questions-techinterviews/</link> <comments>http://www.freequestionbank.com/question/unix-admin-questions-techinterviews/#comments</comments> <pubDate>Tue, 19 May 2009 03:35:43 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[admin]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=607</guid> <description><![CDATA[# How do you list the files in an UNIX directory while also showing hidden files?
# How do you execute ...]]></description> <content:encoded><![CDATA[<p># How do you list the files in an UNIX directory while also showing hidden files?</p><p># How do you execute a UNIX command in the background?</p><p># What UNIX command will control the default file permissions when files are created?</p><p># Explain the read, write, and execute permissions on a UNIX directory.</p><p># What is the difference between a soft link and a hard link?</p><p># Give the command to display space usage on the UNIX file system.</p><p># Explain iostat, vmstat and netstat.</p><p># How would you change all occurrences of a value using VI?</p><p># Give two UNIX kernel parameters that effect an Oracle install</p><p># Briefly, how do you install Oracle software on UNIX.</p><p>via <a
href="http://www.techinterviews.com/unix-admin-questions">Unix admin questions | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/unix-admin-questions-techinterviews/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Linux command line Q&amp;A</title><link>http://www.freequestionbank.com/question/linux-command-line-qa/</link> <comments>http://www.freequestionbank.com/question/linux-command-line-qa/#comments</comments> <pubDate>Tue, 19 May 2009 03:34:50 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[commandline]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=605</guid> <description><![CDATA[You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?
tail ...]]></description> <content:encoded><![CDATA[<div
class="entry-content"><ol><li><strong>You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?<br
/> </strong>tail -15 dog cat horse<br
/> The tail utility displays the end of a file. The -15 tells tail to display the last fifteen lines of each specified file.</li><li><strong>Who owns the data dictionary? </strong><br
/> The SYS user owns the data dictionary. The SYS and SYSTEM users are created when the database is created.</li><li><strong>You routinely compress old log files. You now need to examine a log from two months ago. In order to view its contents without first having to decompress it, use the _________ utility. </strong><br
/> zcat<br
/> The zcat utility allows you to examine the contents of a compressed file much the same way that cat displays a file.</li><li><strong>You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine the location of the command being run? </strong><br
/> which<br
/> The which command searches your path until it finds a command that matches the command you are looking for and displays its full path.</li><li><strong>You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose. </strong><br
/> whatis<br
/> The whatis command displays a summary line from the man page for the specified command.</li><li><strong>You wish to create a link to the /data directory in bob’s home directory so you issue the command ln /data /home/bob/datalink but the command fails. What option should you use in this command line to be successful. </strong><br
/> Use the -F option<br
/> In order to create a link to a directory you must use the -F option.</li><li><strong>When you issue the command ls -l, the first character of the resulting display represents the file’s ___________. </strong><br
/> type<br
/> The first character of the permission block designates the type of file that is being displayed.</li><li><strong>What utility can you use to show a dynamic listing of running processes? __________ </strong><br
/> top<br
/> The top utility shows a listing of all running processes that is dynamically updated.</li><li><strong>Where is standard output usually directed? </strong><br
/> to the screen or display<br
/> By default, your shell directs standard output to your screen or display.</li><li><strong>You wish to restore the file memo.ben which was backed up in the tarfile MyBackup.tar. What command should you type? </strong><br
/> tar xf MyBackup.tar memo.ben<br
/> This command uses the x switch to extract a file. Here the file memo.ben will be restored from the tarfile MyBackup.tar.</li><li><strong>You need to view the contents of the tarfile called MyBackup.tar. What command would you use?</strong><br
/> tar tf MyBackup.tar<br
/> The t switch tells tar to display the contents and the f modifier specifies which file to examine.</li><li><strong>You want to create a compressed backup of the users’ home directories. What utility should you use? </strong><br
/> tar<br
/> You can use the z modifier with tar to compress your archive at the same time as creating it.</li><li><strong>What daemon is responsible for tracking events on your system? </strong><br
/> syslogd<br
/> The syslogd daemon is responsible for tracking system information and saving it to specified log files.</li><li><strong>You have a file called phonenos that is almost 4,000 lines long. What text filter can you use to split it into four pieces each 1,000 lines long? </strong><br
/> split<br
/> The split text filter will divide files into equally sized pieces. The default length of each piece is 1,000 lines.</li><li><strong>You would like to temporarily change your command line editor to be vi. What command should you type to change it? </strong><br
/> set -o vi<br
/> The set command is used to assign environment variables. In this case, you are instructing your shell to assign vi as your command line editor. However, once you log off and log back in you will return to the previously defined command line editor.</li><li><strong>What account is created when you install Linux? </strong><br
/> root<br
/> Whenever you install Linux, only one user account is created. This is the superuser account also known as root.</li><li><strong>What command should you use to check the number of files and disk space used and each user’s defined quotas? </strong><br
/> repquota<br
/> The repquota command is used to get a report on the status of the quotas you have set including the amount of allocated space and amount of used space.</li></ol></div><p>via <a
href="http://www.techinterviews.com/linux-command-line-qa">Linux command line Q&amp;A | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/linux-command-line-qa/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Linux network administrator questions</title><link>http://www.freequestionbank.com/question/linux-network-administrator-questions/</link> <comments>http://www.freequestionbank.com/question/linux-network-administrator-questions/#comments</comments> <pubDate>Tue, 19 May 2009 03:33:23 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[administrator]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=603</guid> <description><![CDATA[
ive an example of set of shell commands that will give you the number of files in a directory
How do ...]]></description> <content:encoded><![CDATA[<ol><li>ive an example of set of shell commands that will give you the number of files in a directory</li><li>How do you tell what process has a TCP port open in Linux</li><li>On a Red Hat Linux Variant how do you control whether a service starts when the system boots</li><li>How do you tell the amount of free disk space left on a volume</li><li>Give an example of a set of shell commands to tell how many times â€œbobâ€ has logged on to the system this month</li><li>Give an example of a recursively copying a directory from one location to another.</li><li>How do you modify the IP and Net mask of a system running a Red Hat Variant of Linux</li><li>Give an example of a set of shell commands that will give you the number of â€œhttpdâ€ processes running on a Linux box.</li><li>On CentOS or Fedora based system using the package management application, how do you tell what package provided the file â€œlibnss_ldap.soâ€</li><li>What is the difference between VTP client, server, and transparent</li><li>What is the maximum length of CAT6</li><li>How does one set up a layer two link to share VLANs</li><li>How does one implement redundant links at Layer 2</li><li>What is the difference between a hub, switch, and a router? What are the security advantages of switch vs. hub?</li><li>Show an example of using telnet to learn the headers of an http server.</li><li>In what OSI layer does PPP exist</li><li>What’s the difference between TCP and UDP</li><li>Given a DNS server that has just started (with an empty cache) and host contacting this DNS server (using it’s OS setting) to learn an address for google.com, list the steps the DNS server will take to learn it with IP addresses (each step will have multiple possible IP addresses â€“ you need choose only one per step).</li><li>Why are layer 2 loops bad, and what protocol was designed to prevent them</li><li>Given a radius server at 10.0.0.2 and a shared key of â€˜abc123′ show the IOS commands necessary to authenticate switch users against the radius server, while still allowing the use of local username / password pairs</li></ol><p>via <a
href="http://www.techinterviews.com/linux-network-administrator-questions">Linux network administrator questions | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/linux-network-administrator-questions/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Basic sed tricks</title><link>http://www.freequestionbank.com/question/basic-sed-tricks/</link> <comments>http://www.freequestionbank.com/question/basic-sed-tricks/#comments</comments> <pubDate>Tue, 19 May 2009 03:31:43 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Exam]]></category> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[questions]]></category> <category><![CDATA[sed]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=601</guid> <description><![CDATA[What is sed? &#8211; sed is stream editor, a Unix tool for working with streams of text data. See the ...]]></description> <content:encoded><![CDATA[<div
class="entry-content"><ol><li><strong>What is sed?</strong> &#8211; sed is <strong>s</strong>tream <strong>ed</strong>itor, a Unix tool for working with streams of text data. See <a
href="http://www.grymoire.com/Unix/Sed.html#toc-uh-0">the awful truth about sed</a>.</li><li><strong>How do you substitute strings with sed?</strong> &#8211; Use ’s/old/new’ command, so sed ’s/hello/goodbye/’ would substitute the occurrence of the word hello to goodbye.</li><li><strong>How do you inject text with sed?</strong> &#8211; &amp; in the substitution string defines the pattern found in the search string. As an example, here’s us trying to find a word ‘hello’ and replacing it with ‘hello and how are you’:<br
/> echo ‘hello there’ | sed ’s/^hello/&amp; and how are you/’</li><li><strong>Can I find several patterns and refer to them in the replacement string</strong>? &#8211; Yes, use (pattern) and then refer to your patterns as \1, \2, \3 and so on.</li><li><strong>If the string is ‘old old old’ and I run ’s/old/new’, I get ‘new old old’ as the result. I need ‘new new new</strong>‘. &#8211; You forgot the global modifier, which would replace every occurrence of the pattern with the substitution. ’s/old/new/<strong>g</strong>‘ will work.</li><li><strong>But I want ‘old old new’ from the previous example</strong>. &#8211; Just use the numeric modifier saying you want the third occurrence to be replaced. ’s/old/new/<strong>3</strong>‘ will work.</li><li><strong>I wrote a rather complex sed script. How do I save and run it</strong>? &#8211; Assuming that your file is named myscript1.sed, you can invoke sed -f myscript1.sed.</li><li><strong>How do I delete trailing whitespaces from each line</strong>? &#8211; sed ’s/[ \t]*$//’ Here we’re replacing any occurrence of a space or a tab with nothing. Check <a
href="http://www.catonmat.net/blog/wp-content/uploads/2008/09/sed1line.txt">sed one-liners</a> for more examples.</li><li><strong>How do you print just a few first lines of the file</strong>? &#8211; sed 1q will give you just the first line, sed 10q the first 10 lines.</li><li><strong>How do you replace a pattern only if it’s found, so that it’s executed faster</strong>? &#8211; Nest the replacement statement: sed ‘/old/ s/old/new/g’ file.txt</li></ol></div><p>via <a
href="http://www.techinterviews.com/basic-sed-tricks">Basic sed tricks | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/basic-sed-tricks/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Two men running</title><link>http://www.freequestionbank.com/question/two-men-running/</link> <comments>http://www.freequestionbank.com/question/two-men-running/#comments</comments> <pubDate>Tue, 19 May 2009 03:21:39 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[puzzles]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=599</guid> <description><![CDATA[Adam and Bob have exact speeds for walking and running &#8211; neither Adam outwalks Bob, nor Bob outruns Adam.
But for ...]]></description> <content:encoded><![CDATA[<p>Adam and Bob have exact speeds for walking and running &#8211; neither Adam outwalks Bob, nor Bob outruns Adam.</p><p>But for a given distance, Adam runs half the time, then walks another half. Bob runs half the distance, then walks another half.</p><p>If they were to compete, which distance would Adam win at, and which distances would Bob be the winner at?</p><p><strong>Answer:</strong></p><div
class="comment-content"><p>Let running speed = r, walking speed = w<br
/> total distance x = x1 + x2<br
/> total time     T = t1 + t2</p><p>for Adam:<br
/> t = T/2<br
/> x1 = rT/2<br
/> x2 = wT/2<br
/> xa = T * (w+r)/2 ——–1</p><p>for Bob:<br
/> t1 = x/2r<br
/> t2 = x/2w<br
/> T = t1 + t2<br
/> xb = T * 2rw/(w+r) ——–2</p><p>divide 1 by 2 -&gt;</p><p>xa/xb = (w^2 + 2wr + r^2) / 4wr ;r &gt; w &gt; 0<br
/> Hance, xa/xb is always &gt; 1</p><p>so Adam always wins!</p><p><strong>Alternate solution: (</strong>by another user on source site<strong>)<br
/> </strong></p><div
class="comment-content"><p>simpler question is… can Adam cover more than 1/2 of distance in 1/2 of the time… if true, Adam always win… since both of them walk for the rest</p><p>We know running is faster than walking… so to cover 1/2 of distance by running and walking… running takes less time… therefore it will take less than 1/2 of the time</p><p>Now you let Adam run for 1/2 of the time, it will surpass 1/2 the distance</p><p>So Adam always win</p></div></div><p>via <a
href="http://www.techinterviews.com/two-men-running">Two men running | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/two-men-running/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Java interview questions and answers</title><link>http://www.freequestionbank.com/question/java-interview-questions-and-answers-techinterviews/</link> <comments>http://www.freequestionbank.com/question/java-interview-questions-and-answers-techinterviews/#comments</comments> <pubDate>Mon, 18 May 2009 23:08:49 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[java]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=585</guid> <description><![CDATA[What is garbage collection? What is the process that is responsible for doing that in java? &#8211; Reclaiming the unused ...]]></description> <content:encoded><![CDATA[<div
class="entry-content"><ol><li><strong>What is garbage collection? What is the process that is responsible for doing that in java?</strong> &#8211; Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process</li><li><strong>What kind of thread is the Garbage collector thread?</strong> &#8211; It is a daemon thread.</li><li><strong>What is a daemon thread?</strong> &#8211; These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.</li><li><strong>How will you invoke any external process in Java?</strong> &#8211; Runtime.getRuntime().exec(….)</li><li><strong>What is the finalize method do?</strong> &#8211; Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected.</li><li><strong>What is mutable object and immutable object?</strong> &#8211; If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, …) If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, …)</li><li><strong>What is the basic difference between string and stringbuffer object?</strong> &#8211; String is an immutable object. StringBuffer is a mutable object.</li><li><strong>What is the purpose of Void class?</strong> &#8211; The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.</li><li><strong>What is reflection?</strong> &#8211; Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes, and the use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions.</li><li><strong>What is the base class for Error and Exception?</strong> &#8211; Throwable</li><li><strong>What is the byte range?</strong> -128 to 127</li><li><strong>What is the implementation of destroy method in java.. is it native or java code?</strong> &#8211; This method is not implemented.</li><li><strong>What is a package?</strong> &#8211; To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability.</li><li><strong>What are the approaches that you will follow for making a program very efficient?</strong> &#8211; By avoiding too much of static methods avoiding the excessive and unnecessary use of synchronized methods Selection of related classes based on the application (meaning synchronized classes for multiuser and non-synchronized classes for single user) Usage of appropriate design patterns Using cache methodologies for remote invocations Avoiding creation of variables within a loop and lot more.</li><li><strong>What is a DatabaseMetaData?</strong> &#8211; Comprehensive information about the database as a whole.</li><li><strong>What is Locale?</strong> &#8211; A Locale object represents a specific geographical, political, or cultural region</li><li><strong>How will you load a specific locale?</strong> &#8211; Using ResourceBundle.getBundle(…);</li><li><strong>What is JIT and its use?</strong> &#8211; Really, just a very fast compiler… In this incarnation, pretty much a one-pass compiler — no offline computations. So you can’t look at the whole method, rank the expressions according to which ones are re-used the most, and then generate code. In theory terms, it’s an on-line problem.</li><li><strong>Is JVM a compiler or an interpreter?</strong> &#8211; Interpreter</li><li><strong>When you think about optimization, what is the best way to findout the time/memory consuming process?</strong> &#8211; Using profiler</li><li><strong>What is the purpose of assert keyword used in JDK1.4.x?</strong> &#8211; In order to validate certain expressions. It effectively replaces the if block and automatically throws the AssertionError on failure. This keyword should be used for the critical arguments. Meaning, without that the method does nothing.</li><li><strong>How will you get the platform dependent values like line separator, path separator, etc., ?</strong> &#8211; Using Sytem.getProperty(…) (line.separator, path.separator, …)</li><li><strong>What is skeleton and stub? what is the purpose of those?</strong> &#8211; Stub is a client side representation of the server, which takes care of communicating with the remote server. Skeleton is the server side representation. But that is no more in use… it is deprecated long before in JDK.</li><li><strong>What is the final keyword denotes?</strong> &#8211; final keyword denotes that it is the final implementation for that method or variable or class. You can’t override that method/variable/class any more.</li><li><strong>What is the significance of ListIterator?</strong> &#8211; You can iterate back and forth.</li><li><strong>What is the major difference between LinkedList and ArrayList?</strong> &#8211; LinkedList are meant for sequential accessing. ArrayList are meant for random accessing.</li><li><strong>What is nested class?</strong> &#8211; If all the methods of a inner class is static then it is a nested class.</li><li><strong>What is inner class?</strong> &#8211; If the methods of the inner class can only be accessed via the instance of the inner class, then it is called inner class.</li><li><strong>What is composition?</strong> &#8211; Holding the reference of the other class within some other class is known as composition.</li><li><strong>What is aggregation?</strong> &#8211; It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.</li><li><strong>What are the methods in Object?</strong> &#8211; clone, equals, wait, finalize, getClass, hashCode, notify, notifyAll, toString</li><li><strong>Can you instantiate the Math class?</strong> &#8211; You can’t instantiate the math class. All the methods in this class are static. And the constructor is not public.</li><li><strong>What is singleton?</strong> &#8211; It is one of the design pattern. This falls in the creational pattern of the design pattern. There will be only one instance for that entire JVM. You can achieve this by having the private constructor in the class. For eg., public class Singleton { private static final Singleton s = new Singleton(); private Singleton() { } public static Singleton getInstance() { return s; } // all non static methods … }</li><li><strong>What is DriverManager?</strong> &#8211; The basic service to manage set of JDBC drivers.</li><li><strong>What is Class.forName() does and how it is useful?</strong> &#8211; It loads the class into the ClassLoader. It returns the Class. Using that you can get the instance ( “class-instance”.newInstance() ).</li><li><strong>Inq</strong> adds a question: Expain the reason for each keyword of<br
/><blockquote><p>public static void main(String args[])</p></blockquote></li></ol></div><p>via <a
href="http://www.techinterviews.com/java-interview-questions-and-answers">Java interview questions and answers | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/java-interview-questions-and-answers-techinterviews/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Perl interview questions and answers</title><link>http://www.freequestionbank.com/question/perl-interview-questions-and-answers-techinterviews/</link> <comments>http://www.freequestionbank.com/question/perl-interview-questions-and-answers-techinterviews/#comments</comments> <pubDate>Mon, 18 May 2009 23:08:03 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Languages]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[perl]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=583</guid> <description><![CDATA[# What arguments do you frequently use for the Perl interpreter and what do they mean?
# What does the command ...]]></description> <content:encoded><![CDATA[<p># What arguments do you frequently use for the Perl interpreter and what do they mean?</p><p># What does the command ‘use strict’ do and why should you use it?</p><p># What do the symbols $ @ and % mean when prefixing a variable?</p><p># What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?</p><p># What are the characteristics of a project that is well suited to Perl?</p><p># Why do you program in Perl?</p><p># Explain the difference between my and local.</p><p># Explain the difference between use and require.</p><p># What’s your favorite module and why?</p><p># What is a hash?</p><p># Write a simple (common) regular expression to match an IP address, e-mail address, city-state-zipcode combination.</p><p># What purpose does each of the following serve: -w, strict, -T ?</p><p># What is the difference between for &amp; foreach, exec &amp; system?</p><p># Where do you go for Perl help?</p><p># Name an instance where you used a CPAN module.</p><p># How do you open a file for writing?</p><p># How would you replace a char in string and how do you store the number of replacements?</p><p># When would you not use Perl for a project?</p><p>via <a
href="http://www.techinterviews.com/perl-interview-questions-and-answers">Perl interview questions and answers | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/perl-interview-questions-and-answers-techinterviews/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>J2EE interview questions and answers</title><link>http://www.freequestionbank.com/question/j2ee-interview-questions-and-answers-techinterviews/</link> <comments>http://www.freequestionbank.com/question/j2ee-interview-questions-and-answers-techinterviews/#comments</comments> <pubDate>Mon, 18 May 2009 23:07:06 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Interview]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[j2ee]]></category> <category><![CDATA[java]]></category> <category><![CDATA[questions]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/blog/?p=581</guid> <description><![CDATA[
What makes J2EE suitable for distributed multitiered Applications?
- The J2EE platform uses a multitiered distributed application model. Application logic is ...]]></description> <content:encoded><![CDATA[<ol><li><strong>What makes J2EE suitable for distributed multitiered Applications?</strong><br
/> - The J2EE platform uses a multitiered distributed application model. Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs. The J2EE application parts are:</p><ul><li>Client-tier components run on the client machine.</li><li>Web-tier components run on the J2EE server.</li><li>Business-tier components run on the J2EE server.</li><li>Enterprise information system (EIS)-tier software runs on the EIS server.</li></ul></li><li><strong>What is J2EE?</strong> &#8211; J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications.</li><li><strong>What are the components of J2EE application?</strong><br
/> - A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components:</p><ol><li> Application clients and applets are client components.</li><li> Java Servlet and JavaServer Pages technology components are web components.</li><li> Enterprise JavaBeans components (enterprise beans) are business components.</li><li> Resource adapter components provided by EIS and tool vendors.</li></ol></li><li><strong>What do Enterprise JavaBeans components contain?</strong> &#8211; Enterprise JavaBeans components contains Business code, which is logic<br
/> that solves or meets the needs of a particular business domain such as banking, retail, or finance, is handled by enterprise beans running in the business tier. All the business code is contained inside an Enterprise Bean which receives data from client programs, processes it (if necessary), and sends it to the enterprise information system tier for storage. An enterprise bean also retrieves data from storage, processes it (if necessary), and sends it back to the client program.</li><li><strong>Is J2EE application only a web-based?</strong> &#8211; No, It depends on type of application that client wants. A J2EE application can be web-based or non-web-based. if an application client executes on the client machine, it is a non-web-based J2EE application. The J2EE application can provide a way for users to handle tasks such as J2EE system or application administration. It typically has a graphical user interface created from Swing or AWT APIs, or a command-line interface. When user request, it can open an HTTP connection to establish communication with a servlet running in the web tier.</li><li><strong>Are JavaBeans J2EE components?</strong> &#8211; No. JavaBeans components are not considered J2EE components by the J2EE specification. They are written to manage the data flow between an application client or applet and components running on the J2EE server or between server components and a database. JavaBeans components written for the J2EE platform have instance variables and get and set methods for accessing the data in the instance variables. JavaBeans components used in this way are typically simple in design and implementation, but should conform to the naming and design conventions outlined in the JavaBeans component architecture.</li><li><strong>Is HTML page a web component?</strong> &#8211; No. Static HTML pages and applets are bundled with web components during application assembly, but are not considered web components by the J2EE specification. Even the server-side utility classes are not considered web components, either.</li><li><strong>What can be considered as a web component?</strong> &#8211; J2EE Web components can be either servlets or JSP pages. Servlets are Java programming language classes that dynamically process requests and construct responses. JSP pages are text-based documents that execute as servlets but allow a more natural approach to creating static content.</li><li><strong>What is the container?</strong> &#8211; Containers are the interface between a component and the low-level platform specific functionality that supports the component. Before a Web, enterprise bean, or application client component can be executed, it must be assembled into a J2EE application and deployed into its container.</li><li><strong>What are container services?</strong> &#8211; A container is a runtime support of a system-level entity. Containers provide components with services such as lifecycle management, security, deployment, and threading.</li><li><strong>What is the web container?</strong> &#8211; Servlet and JSP containers are collectively referred to as Web containers. It manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server.</li><li><strong>What is Enterprise JavaBeans (EJB) container?</strong> &#8211; It manages the execution of enterprise beans for J2EE applications.<br
/> Enterprise beans and their container run on the J2EE server.</li><li><strong>What is Applet container?</strong> &#8211; IManages the execution of applets. Consists of a Web browser and Java Plugin running on the client together.</li><li><strong>How do we package J2EE components?</strong> &#8211; J2EE components are packaged separately and bundled into a J2EE application for deployment. Each component, its related files such as GIF and HTML files or server-side utility classes, and a deployment descriptor are assembled into a module and added to the J2EE application. A J2EE application is composed of one or more enterprise bean,Web, or application client component modules. The final enterprise solution can use one J2EE application or be made up of two or more J2EE applications, depending on design requirements. A J2EE application and each of its modules has its own deployment descriptor. A deployment descriptor is an XML document with an .xml extension that describes a component’s deployment settings.</li><li><strong>What is a thin client?</strong> &#8211; A thin client is a lightweight interface to the application that does not have such operations like query databases, execute complex business rules, or connect to legacy applications.</li><li><strong>What are types of J2EE clients?</strong> &#8211; Following are the types of J2EE clients:<ul><li> Applets</li><li> Application clients</li><li> Java Web Start-enabled rich clients, powered by Java Web Start technology.</li><li> Wireless clients, based on Mobile Information Device Profile (MIDP) technology.</li></ul></li><li><strong>What is deployment descriptor?</strong> &#8211; A deployment descriptor is an Extensible Markup Language (XML) text-based file with an .xml extension that describes a component’s deployment settings. A J2EE application and each of its modules has its own deployment descriptor. For example, an enterprise bean module deployment descriptor declares transaction attributes and security authorizations<br
/> for an enterprise bean. Because deployment descriptor information is declarative, it can be changed without modifying the bean source code. At run time, the J2EE server reads the deployment descriptor and acts upon the component accordingly.</li><li><strong>What is the EAR file?</strong> &#8211; An EAR file is a standard JAR file with an .ear extension, named from Enterprise ARchive file. A J2EE application with all of its modules is delivered in EAR file.</li><li><strong>What is JTA and JTS?</strong> &#8211; JTA is the abbreviation for the Java Transaction API. JTS is the abbreviation for the Jave Transaction Service. JTA provides a standard interface and allows you to demarcate transactions in a manner that is independent of the transaction manager implementation. The J2EE SDK implements the transaction manager with JTS. But your code doesn’t call the JTS methods directly. Instead, it invokes the JTA methods, which then call the lower-level JTS routines. Therefore, JTA is a high level transaction interface that your application uses to control transaction. and JTS is a low level transaction interface and ejb uses behind the scenes (client code doesn’t directly interact with JTS. It is based on object transaction service(OTS) which is part of CORBA.</li><li><strong>What is JAXP?</strong> &#8211; JAXP stands for Java API for XML. XML is a language for representing and describing text-based data which can be read and handled by any program or tool that uses XML APIs. It provides standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and create the appropriate JavaBeans component to perform those operations.</li><li><strong>What is J2EE Connector?</strong> &#8211; The J2EE Connector API is used by J2EE tools vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged into any J2EE product. Each type of database or EIS has a different resource adapter. Note: A resource adapter is a software component that allows J2EE application components to access and interact with the underlying resource manager. Because a resource adapter is specific to its resource manager, there is typically a different resource adapter for each type of database or enterprise information system.</li><li><strong>What is JAAP?</strong> &#8211; The Java Authentication and Authorization Service (JAAS) provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it. It is a standard Pluggable Authentication Module (PAM) framework that extends the Java 2 platform security architecture to support user-based authorization.</li><li><strong>What is Java Naming and Directory Service?</strong> &#8211; The JNDI provides naming and directory functionality. It provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes. Using JNDI, a J2EE application can store and retrieve any type of named Java object. Because JNDI is independent of any specific implementations, applications can use JNDI to access multiple naming and directory services, including existing naming and<br
/> directory services such as LDAP, NDS, DNS, and NIS.</li><li><strong>What is Struts?</strong> &#8211; A Web page development framework. Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between.</li><li><strong>How is the MVC design pattern used in Struts framework?</strong> &#8211; In the MVC design pattern, application flow is mediated by a central Controller. The Controller delegates requests to an appropriate handler. The handlers are tied to a Model, and each handler acts as an adapter between the request and the Model. The Model represents, or encapsulates, an application’s business logic or state. Control is usually then forwarded back through the Controller to the appropriate View. The forwarding can be determined by consulting a set of mappings, usually loaded from a database or configuration file. This provides a loose coupling between the View and Model, which can make an application significantly easier to create and maintain. Controller: Servlet controller which supplied by Struts itself; View: what you can see on the screen, a JSP page and presentation components; Model: System state and a business logic JavaBeans.</li></ol><p>via <a
href="http://www.techinterviews.com/j2ee-interview-questions-and-answers">J2EE interview questions and answers | TechInterviews</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/j2ee-interview-questions-and-answers-techinterviews/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 3/12 queries in 0.373 seconds using disk

Served from: p3slh049.shr.phx3.secureserver.net @ 2010-09-10 00:19:51 -->