Unix/Linux programming interview questions and asnwers
Question 1: What is the major advantage of a hash table?
Answer: The major advantage of a hash table is its speed. Because the hash function is to take a range of key values and transform them into index values in such a way that the key values are distributed randomly across all the indices of a hash table.
Question 2: What are the techniques that you use to handle the collisions in hash tables?
Answer: We can use two major techniques to handle the collisions. They are open addressing and separate chaining. In open addressing, data items that hash to a full array cell are placed in another cell in the array. In separate chaining, each array element consist of a linked list. All data items hashing to a given array index are inserted in that list.
Question 3: In Unix OS, what is the file server?
Answer: The file server is a machine that shares its disk storage and files with other machines on the network.
Question 4: What is NFS? What is its job?
Answer: NFS stands for Network File System. NFS enables filesystems physically residing on one computer system to be used by other computers in the network, appearing to users on the remote host as just another local disk.
Question 5: What is CVS? List some useful CVS commands.
Anser: CVS is Concurrent Version System. It is the front end to the RCS revision control system which extends the notion of revision control from a collection of files in a single directory to a hierarchical collection of directories consisting of revision controlled files. These directories and files can be combined together to form a software release. There are some useful commands that are being used very often. They are
cvs checkout cvs update cvs add cvs remove cvs commit
Saturday, June 9, 2007
Linux admin interview questions
1. How do you take a single line of input from the user in a shell script?
2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files.
3. Write a regular expression (or sed script) to replace all occurrences of the letter ‘f’, followed by any number of characters, followed by the letter ‘a’, followed by one or more numeric characters, followed by the letter ‘n’, and replace what’s found with the string “UNIX”.
4. Write a script to list all the differences between two directories.
5. Write a program in any language you choose, to reverse a file.
6. What are the fields of the password file?
7. What does a plus at the beginning of a line in the password file signify?
8. Using the man pages, find the correct ioctl to send console output to an arbitrary pty.
9. What is an MX record?
10. What is the prom command on a Sun that shows the SCSI devices?
11. What is the factory default SCSI target for /dev/sd0?
12. Where is that value controlled?
13. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
14. What’s wrong with sendmail? What would you fix?
15. What command do you run to check file system consistency?
16. What’s wrong with running shutdown on a network?
17. What can be wrong with setuid scripts?
18. What value does spawn return?
19. Write a script to send mail from three other machines on the network to root at the machine you’re on. Use a ‘here doc’, but include in the mail message the name of the machine the mail is sent from and the disk utilization statistics on each machine?
Why can’t root just cd to someone’s home directory and run a program called a.out sitting there by typing “a.out”, and why is this good?
20. What is the difference between UDP and TCP?
21. What is DNS?
22. What does nslookup do?
23. How do you create a swapfile?
24. How would you check the route table on a workstation/server?
25. How do you find which ypmaster you are bound to?
26. How do you fix a problem where a printer will cutoff anything over 1MB?
27. What is the largest file system size in solaris? SunOS?
28. What are the different RAID levels?
Posted by
Ayan
at
12:40 PM
0
comments
Saturday, June 2, 2007
Microsoft Windows programming interview questions
1.Which controls can not be placed in MDI ?
2.List out controls which does not have events
3.Which property of textbox cannot be changed at runtime. What is the max size of textbox?
4.How many system controls are available
5.___,_____ and ____ container objects.
6.strech___ Property is to compress a image in image control.
7.___,___ and __ are difference between image and picture controls.
8.Is it possible to set a shortcut key for label.
9.What is the default property of data control?
10.___,__,___ are the type of combo box?
11.__ no of controls in form.
12.OLE is used for _______
13.What is the need of tabindex property is label control.
14.___ is the control used to call a windows application.
15.Clear property is available in ____,___ control.
16.___ Property is used to count no. of items in a combobox.
17.___ is a property to resize a label control according to your caption.
18.Which controls have refresh method.
19___ property is used to change to ___ value to access a identity column in datacontrols.
20._____ is the property to ___,____,____ are valid for recordsource property of dat control.
21.To find the current record position in data control.
22.Timer control contains ________ no. of events.
23.____ property is used to lock a textbox to enter data.
24.What is the need of z-order method?
25.____ is the difference between Listindex and Tab index.
26.____ property of menu cannot be set at run time.
27.Can you create a tabletype of recordset in Jet - connected ODBC dbengine.
28.Difference between listbox and combo box.
29.What are the new events in textbox that has been included in VB
30.Can you create a Updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.
31._____ collection in recordset used to assign a value from textbox to table columns without making 32.abinding in datacontrol.
33.____ argument can be used to make a menu item into bold.
34.What is the difference between Msgbox Statement and MsgboxQ function?
35.What is.the difference between queryunload and unload in form?
36.___,___ arguments will be used to run a executable program in shell function
37.___ property used to add a menus at runtime.
38.What is the difference between modal and module-less window?
39.___ VB constant make the menu item in centre.
40.___ method used to move a recordset pointer in nth position in DAG.
41.To validate a range of values for a property whenever the property values changes,which type of property procedure you use?
42.What are 3 main differences between flexgrid control and dbgrid control?
created in ActiveX Exe and ActiveX D1T
Posted by
Ayan
at
10:17 AM
1 comments
Friday, June 1, 2007
Microsoft platform and database technologies interview questions
1. 3 main differences between flexgrid control and dbgrid control
2. ActiveX and Types of ActiveX Components in VB
3. Advantage of ActiveX Dll over Active Exe
4. Advantages of disconnected recordsets
5. Benefit of wrapping database calls into MTS transactions
6. Benefits of using MTS
7. Can database schema be changed with DAO, RDO or ADO?
8. Can you create a tabletype of recordset in Jet - connected ODBC database engine?
9. Constructors and destructors
10. Controls which do not have events
11.Default property of datacontrol
12.Define the scope of Public, Private, Friend procedures?
13. Describe Database Connection pooling relative to MTS
14. Describe: In of Process vs. Out of Process component. Which is faster?
15. Difference between a function and a subroutine, Dynaset and
16. Snapshot,early and late binding, image and picture controls,Linked Object and Embedded
17. Object,listbox and combo box,Listindex and Tab index,modal and moduless window, Object and Class,Query unload and unload in form.
18. Declaration and Instantiation an object?
19. Draw and explain Sequence Modal of DAO
20.How can objects on different threads communicate with one another?
21.How can you force new objects to be created on new threads?
22. How does a DCOM component know where to instantiate itself?
23.How to register a component?
24. How to set a shortcut key for label?
25. Kind of components can be used as DCOM servers
26. Name of the control used to call a windows application
27. Name the four different cursor and locking types in ADO and describe them briefly.
28. Need of zorder method, no of controls in form, Property used to add a menus at runtime,
29. Property used to count number of items in a combobox,resize a label control according to your caption.
30. Return value of callback function, The need of tabindex property.
31.Thread pool and management of threads within a thread pool.
32.To set the command button for ESC, Which property needs to be changed?
33.Type Library and what is it’s purpose?
34. Types of system controls, container objects, combo box
35.Under the ADO Command Object, what collection is responsible for input to stored procedures?
36.VB and Object Oriented Programming
What are the ADO objects? Explain them.
Posted by
Ayan
at
12:21 PM
1 comments
ASP, ADO and IIS interview questions
1. Why do you use Option Explicit?
2. What are the commonly used data types in VBScript?
3. What is a session object?
4. What are the three objects of ADO?
5. What are the lock-types available in ADO? Explain.
6. What are the cursor types available in ADO? Explain.
7. What is a COM component?
8. How do you register a COM component?
9. What is a virtual root and how do you create one?
10. What is a database index, how do you create one, discuss its pros and cons?
11. How do you use multiple record sets (rs.NextRecordSet)?
12. As soon as you fetch a record set, what operations would you perform?
13. Define a transaction. What are ACID properties of a transaction?
14. How would you remotely administer IIS?
15. What is RAID? What is it used for?
16. What is normalization? Explain normalization types.
17. What is the disadvantage of creating an index in every column of a database table?
18. What are the uses of source control software?
19. You have a query that runs slowly, how would you make it better? How would you make it better in .NET environment?
20. What is a bit datatype? What is it used for?
21. How would you go about securing IIS and MS-SQL Server?
22. What is the difference between Request(”field”) and Request.Form(”field”)?
Posted by
Ayan
at
12:06 PM
1 comments