<?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>interview questions from web</description> <lastBuildDate>Sat, 29 Oct 2011 06:29:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>how to speed up the Fibonacci number calculations</title><link>http://www.freequestionbank.com/question/how-to-speed-up-the-fibonacci-number-calculations/</link> <comments>http://www.freequestionbank.com/question/how-to-speed-up-the-fibonacci-number-calculations/#comments</comments> <pubDate>Wed, 12 Oct 2011 06:47:30 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Algorithm & Data Structures]]></category> <category><![CDATA[Interview]]></category> <category><![CDATA[Languages]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></category><guid
isPermaLink="false">http://www.freequestionbank.com/?p=906</guid> <description><![CDATA[Dynamic programming is essentially a tradeoff of space for time. Repeatedly re-computing a given quantity is harmless unless the time ...]]></description> <content:encoded><![CDATA[<p>Dynamic programming is essentially a tradeoff of space for time. Repeatedly re-computing a given quantity is harmless unless the time spent doing so becomes a bottleneck in the performance. In this case we should better be storing/caching the previously calculated values and looking them up when needed instead of re-computing.</p><p>Think about computing a Fibonacci number by recursion:</p><p>Fn = Fn-1 + Fn-2  (with F0 = 0, F1 = 1)</p><p>Lets explore the two different solutions. one without the caching and other with caching.</p><p>read more <a
href="http://hashfold.com/techfold/algorithms-data-structures/speeding-up-fibonacci-computation-using-caching/">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.freequestionbank.com/question/how-to-speed-up-the-fibonacci-number-calculations/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <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 ...]]></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 ...]]></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 ...]]></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? ...]]></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 ...]]></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[puzzles]]></category> <category><![CDATA[Question]]></category> <category><![CDATA[Tech]]></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 ...]]></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>1</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 ...]]></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> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 8/18 queries in 0.063 seconds using disk: basic
Object Caching 0/0 objects using disk: basic
Content Delivery Network via N/A

Served from: www.freequestionbank.com @ 2012-02-07 03:04:22 -->
