Author Archives: admin

Basic sed tricks

What is sed? - sed is stream editor, a Unix tool for working with streams of text data. See the awful truth about sed.
How do you substitute strings with sed? - Use ’s/old/new’ command, so sed ’s/hello/goodbye/’ would substitute the occurrence of the word hello to goodbye.
How do you inject text with sed? - & [...]

Posted in Unix/Linux | Leave a comment

40 student interview questions from NetApp

Why did you choose your major?
Why did you choose your school?
Describe a recent leadership experience.
Which courses have you enjoyed the most? The least? Why?
What is your GPA?
If you could do so, how would you plan your education differently?

Posted in General | 1 Comment

Programming phone screen questions

kSquared at GameDev community forums posted a list of phone screen questions from Google, with some answers that he attempted. You’ll have to head to GameDev to read the answers, but here’s the list of questions to ponder:

You are shrunk to the height of a nickel and your mass is proportionally reduced so as to [...]

Posted in Database, General, Puzzles | 18 Comments

Linux network administrator questions

A pretty funny story - someone was offered a test of basic Linux questions for a junior network administrator position, and figured out that the best way to impress the future employer with good answers is to post the list on UbuntuForums. Good idea, right? That’s where all the Linux experts hang out. Unfortunately, that’s [...]

Posted in Networking, Unix/Linux | 7 Comments

Basic programming questions

Design a data structure such that given a stream of numbers, you can find the maximum of the numbers at any point and also all the numbers.
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions.
Find the common ancestor of [...]

Posted in General | 3 Comments

Linux command line Q&A

You need to see the last fifteen lines of the files dog, cat and horse. What command should you use? tail -15 dog cat horse The tail utility displays the end of a file. The -15 tells tail to display the last [...]

Posted in Unix/Linux | 2 Comments

SQL interview questions and answers

What are two methods of retrieving SQL?
What cursor type do you use to retrieve multiple recordsets?
What is the difference between a "where" clause and a "having" clause? - "Where" is a kind of restiriction statement. You use where clause to restrict all the data from DB.Where clause is using before result retrieving. But [...]

Posted in Database, Windows | 3 Comments

Java interview questions and answers

Describe what happens when an object is created in Java?
Several things happen in a particular order to ensure the object is constructed properly: 1. Memory is allocated from heap to hold all instance variables and implementation-specific data of the object and its superclasses. Implementation-specific data includes pointers to class and method [...]

Posted in Java | 2 Comments

WinRunner question encyclopedia with answers

176 questions, so warm up that fireplace.

Explain WinRunner testing process? - a) WinRunner testing process involves six main stages
i.Create GUI Map File so that WinRunner can recognize the GUI objects in the application being tested
ii.Create test scripts by recording, programming, or a combination of both. While recording tests, insert checkpoints where you want to check [...]

Posted in Testing | Leave a comment

Java threads question set

Do I need to use synchronized on setValue(int)? - It depends whether the method affects method local variables, class static or instance variables. If only method local variables are changed, the value is said to be confined by the method and is not prone to threading issues.
Do I need to use synchronized on setValue(int)? - [...]

Posted in Java | 2 Comments

Unix admin questions

How do you list the files in an UNIX directory while also showing hidden files?
How do you execute a UNIX command in the background?
What UNIX command will control the default file permissions when files are created?
Explain the read, write, and execute permissions on a UNIX directory.
What is the difference between a soft link and a [...]

Posted in Unix/Linux | 12 Comments

Hiring an IT guy - questions to ask

This is an aggregated list of questions discussed for hiring an IT guy for your organization at SpiceWorks community forum. Check out their discussion, and description of what question are good and which ones are not that good.

What port does telnet use?
What is SMTP?
How would you troubleshoot a printer?
How does traceroute work?
Walk me through everything [...]

Posted in General, Unix/Linux, Windows | 11 Comments