Interview preparation with Scripting or Programming scenarios

It would be very common on interview panel to write a program or scripting for specific scenarios. Leading the recruiters in to technical side would be always be safer side in any kind of interview session rather than communication panel or stress panel. This would help to express ourselves the way of thinking and too showcase our capacity. 

Many people will think in such a way that not to fall on technical panel indeed you cannot know what are the other traps you would be waiting for. 

Always try to push the recruiters on your own way and get them diverted in to what you are capable on. That's the easiest way of clearing the interview. 

On regards of technical side, you may have good practice in different sets of scripting or programming language. Let me give you some sample scenarios which you could practice on your own. 

I am categorizing these practices into 3 different areas.


a. Beginners scripting scenarios

Starting up with beginners of course, this would help you in such a way to explore more on syntax and basic stuff's but cannot act as interview questions. These question may helpful on your examinations but not on recruitment. Because recruiters know very well that these basic questions would have already practiced by you or worse case even you would have memorized.

So below questions would only helps you to understand the basics and helpful to move ahead for next level.

1. Write a program to perform Arithmetic operation such as addition, subtraction, division, multiplication and modulus based on 2 runtime inputs.

2. Write a program to find given number is even or odd number. 

3. Write a program to count number of lines in a file called input.txt. 

4. Write a program to find given number is prime number or not.

5. Write a program to perform string comparison (example: str = "My name is Mageshwaran", lets find whether variable "str" have string called "Magesh" or not)

6. Write a program for Matrix addition with 2 runtime Matrix inputs.

7. Write a program for Matrix multiplications with 2 runtime Matrix inputs. 


b. Intermediate scripting scenarios: 

In case you would managed to solve the beginner session scenarios, now you would be in the position for next level which would be scenario based questions. Recruiters will always be focusing on scenario based questions because it makes you to think and analysis the different possibilities and also test how familiar you are. 

1. Find prime numbers in Fibonacci series (<= 100).

2. Write program to produce following output with runtime input as odd integer. In case runtime input is even number than exit the code by stating its even number.

example: 

runtime input : 5

output: 

5

4 4

3 3 3

2 2

1

3. Find and display all the numbers in the given text files input.txt.

content of input.txt:

My name is apple bucket.

I have 12 number of apples.

my serial number is 823571.

My shipping tracking number is 9721749342781.

Expected output for above case is:

12

823571

9721749342781

4. Matrix output to follow a pattern as mentioned below. 

1 3 5 7

9 8 9 1

0 7 9 2

9 7 8 2

Lets consider above one as 4x4 matrix input. The output should be "1 3 5 7 1 2 2 8 7 9 0 9 8 9 9 7". The pattern follows something like clockwise circling which will finish top layer first and then pass on to inner layers.

5. Display the string in a file input.txt which matches pattern "Serial No: <any numbers>"

content of input.txt:

product:apple, inport: Kashmir, Serial No: 9284329643

product: tomoto, inport: Bangalore, Serial No: 2937493

Bucket completed !!

product: Mango, Serial No: 924197243299, inport: Odissa 

Order Done.

Expected output:

Serial No: 9284329643

Serial No: 2937493

Serial No: 924197243299


c. Advanced scripting scenarios:

Now, in case you managed to complete above 2 phases, you are in final phase. Writing program for kind of 2D games would be very well accomplishments. And you can mention these categories practices in your resume under "Accompishments" column. This will express special interest upon you on recruiters makes them no possibility scenario for them to reject you. Even if they try to cross examine you on these gaming questions, you would be very well able to answer since you would have already practiced. 

More over the certification, these like self study and achievements would help you more in interview panel. Because even the certification or external courses are also only helps you to learn the basics.    

1. Write a program for game called "Pallaanguli"

2. Write a program for game called "GOAT and TIGER"

3. Write a program for game called "5 cards"(Logic of game called 5 CARDS for programming)

4. Write a program for game called "Tic Tac Toe" (O X game)


Conclusion:

The above scenario is not complex and it is not required to be in perfect UI games. Example, you can get it be done even with C/C++ terminal itself. Making use of clear screen each time when you try to get runtime input would be helpful. Not only in C language, you may follow same technique in JAVA or Python or Shell scripting.

Personally, I would prefer you all to learn one scripting and one programming language. If you ask me to choose, I will choose Shell scripting and JAVA. Shell scripting would be LINUX dependent and it helps wide way in future wherever Linux environment are being in use and JAVA still gives more security over web application development like jar/ear packages.

No comments: