These questions were asked in a job posting at Amdocs. The job was for developers experienced in C language, SQL and UNIX. This interview lasted for 30 minutes. Answers to these questions would be posted soon. If you wish to answer any of these questions, please comment below, the Section Name, Question Number along with your Answer.
General Questions:
- Tell me about yourself?
- Which industries does your company serve? Telecom, Automotive, Banking etc.,?
- What is the nature of your job technically? Do you deal with database or file management etc.,?
- Do you have any questions? (at the end of interview)
C Questions:
- How do you rate yourself in C?
- Assume an array a[5][5] defined as following:
- Can one access elements a[0][6] or a[0][5]? Justify your answer.
- How does memory get allocated in multi-dimensional arrays in C?
- In below code snippet
- How do you copy String in array a to b using strcpy function?
- How do you copy the string in array a to b without using the strcpy function?
- Should you dynamically allocate memory when you copy the string in above program?
- What are the differences between malloc and calloc?
- What is realloc? Can you give an example?
- How to use the function free? Give an example?
- How to use functions memset, memcpy?
- Write a program in C that dynamically creates a multi-dimensional array?
- What is the difference between a union and a structure in C?
- What are command line arguments in C?
- What is the data type of argc?
- What is the data type of argv?
int a[5][5] = {
{2,3,6,32,66},
{33,6,36,8,86},
{78,33,2,71,47},
{17,48,3,7,22},
{85,2,6,7,2}
};
char a[5] = "hello"; char *b;
SQL Questions:
- How to create an index in SQL?
- What is the difference between Primary Key and Index?
- What are constraints? Name the types of constraints?
- What is a check constraint?
- What is a snapshot?
UNIX Questions:
- How do you find free space in file system?
- Have you ever worked on shell scripting?
- What is wrong with this script below:
- In the above script, how do you check if the value of variable a is same as that of b?
- What is the difference between = and -eq operator in shell script?
- What does #? return?
- Why do you write interpreter line
#! /bin/bash
at the start of shell scripts?
a= k echo $a b=10 a=10
You may want to Answer these questions by commenting below.