Code Snippets Interview Questions
Questions Answers Views Company eMail

How do you test for file properties in shell scripts?

1 2363

How do you do Boolean logic operators in shell scripting?

1 2085

How do you find out the number of arguments passed to the shell script?

1 2219

What’s a way to do multilevel if-else’s in shell scripting?

1 2102

How do you write a for loop in shell?

1 2070

How do you find out the current directory you’re in?

1 1906

What’s the command to find out users on the system?

1 1936

What’s the command to find out today’s date?

1 1941

How do you stop a process?

1 2027

How do you find out about all running processes?

1 2130

How do you stop all the processes, except the shell window?

1 2319

How do you define a function in a shell script?

1 1858

How do you read keyboard input in shell scripts?

1 2450

How does a case statement look in shell scripts?

1 2105

Consider the following markup:

London by night
A landscape of London by night
Is it valid? If not, can you explain why?

1 6869


Un-Answered Questions { Code Snippets }

What is GUID anyway?

573


How to get one hasmap value in another hashmap ,only value not key

908


write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

3920


Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37

2027


Write a script to delete all the files in a folder except one desired file.

912






Which tag is used to find the version of XML and the syntax?

359


We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character

3930


How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.

1900


I have multiple datasets and I have to search a particular string in all of them at a single time. Please suggest a full jcl or rexx tool for it.

679


What is CDATA?

348


i don't know about working of nested for loop can any one help me

1769


What is the functionality of SendMessage?

724


how to create Expandable and Collapsible Menus

2637


How can you relate the function with the structure? Explain with an appropriate example.

2877


Is there any static classes are in java give some examples

1656