C, SQL, UNIX interview for experienced developer @ AMDOCS


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:

  1. Tell me about yourself?
  2. Which industries does your company serve? Telecom, Automotive, Banking etc.,?
  3. What is the nature of your job technically? Do you deal with database or file management etc.,?
  4. Do you have any questions? (at the end of interview)

C Questions:

  1. How do you rate yourself in C?
  2. Assume an array a[5][5] defined as following:
  3. 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}
    };
  4. Can one access elements a[0][6] or a[0][5]? Justify your answer.
  5. How does memory get allocated in multi-dimensional arrays in C?
  6. In below code snippet
  7. char a[5] = "hello";
    char *b;
  8. How do you copy String in array a to b using strcpy function?
  9. How do you copy the string in array a to b without using the strcpy function?
  10. Should you dynamically allocate memory when you copy the string in above program?
  11. What are the differences between malloc and calloc?
  12. What is realloc? Can you give an example?
  13. How to use the function free? Give an example?
  14. How to use functions memset, memcpy?
  15. Write a program in C that dynamically creates a multi-dimensional array?
  16. What is the difference between a union and a structure in C?
  17. What are command line arguments in C?
  18. What is the data type of argc?
  19. What is the data type of argv?

SQL Questions:

  1. How to create an index in SQL?
  2. What is the difference between Primary Key and Index?
  3. What are constraints? Name the types of constraints?
  4. What is a check constraint?
  5. What is a snapshot?

UNIX Questions:

  1. How do you find free space in file system?
  2. Have you ever worked on shell scripting?
  3. What is wrong with this script below:
  4. a= k
    echo $a
    
    b=10
    a=10
  5. In the above script, how do you check if the value of variable a is same as that of b?
  6. What is the difference between = and -eq operator in shell script?
  7. What does #? return?
  8. Why do you write interpreter line
    #! /bin/bash

    at the start of shell scripts?

You may want to Answer these questions by commenting below.


About the Author:  Sridhar Jammalamadaka is the Editor of Interview Mantra. He's a typically non-typical Software Engineer from Pune, India. He likes entrepreneurship, web technologies and Micro Controller programming. He enjoys playing cricket and piano (but rarely does these activities). Through this website, he wishes to gather a large community of aspiring engineers, entrepreneurs and professionals from all parts of the globe. You can connect with him on Facebook - http://www.facebook.com/sridhar.j



All comments of post - "C, SQL, UNIX interview for experienced developer @ AMDOCS":

:Haha! I'am the first! Yeh~

Thank you!

Add a Comment / Trackback url

  1. #6  Mohit VohraNo Gravatar

    C Questions:

    3. When we declare a [5] by [5] array, that means we are allocating space for elements a[0][0] to a[4][4].

    We can try to jump and try to access a[0][5] and a[0][6] and the compiler won’t detect any error in this. All it will do is print the garbage value of those two elements as they haven’t been initialized yet.

    10/05/29 09:33
  2. #5  KhushbooNo Gravatar

    Amdocs selection procedure…

    1. Written Test – In total 6 sections

    a. First 2 sections are of Aptitude-

    1st section is little bit tricky – Questions on Venn diagram(Difficult ones),
    Cubes(Like a cube is divided into 216 cubes n then painted from outside, from this 4-5 questions are asked like how many cubes have 3 sides painted, only one side painted, no side is painted etc.),
    Profit & Loss,
    Blood relation
    2nd section (it’s easy) – You will be able to solve it easily. It is based on verbal reasoning.

    b. Comprehension(Very Easy)
    c. Technical written – 3 sections
    JAVA – You have given SCJP then it won’t be difficult for you to crack.
    Clear your concepts on Threads, Exceptions, File (You will find 2-3 big programs on these) rest part is simple.
    SQL – Mainly the questions are on JOINS, Views ..One question I remember is which thing represents a row ( Options : entity, tuple, record etc)
    UNIX – for this just go through first 5-6 chapters of UNIX shell scripting by Kanetkar. It will take maximum 2 hours.

    One Thing you have to keep in Mind while giving the written Test is the Time Constraint. There’s no go back. You have to complete the section in that particular time.

    2. Interview – They will ask you questions on JAVA,SQL and UNIX
    OOPs Concept explanation, Strings, some programs logic, they can ask anything depends on the panel
    SQL joins, group by, aggregate functions any query they can ask you to write.
    UNIX they just asked me to write 10 commands of UNIX as I have directly told them that I have not worked on it.

    Rest prepare about your Projects and your Role in the project.

    All the very best..!!

    10/05/19 17:05
  3. #4  Mohit VohraNo Gravatar

    Hi,

    Nice article. Thanks.

    Regards,

    Mohit Vohra

    10/05/04 23:16
  4. #3  sushamaNo Gravatar

    How do you copy the string in array a to b without using the strcpy function?

    10/04/07 14:43
  5. #2  rajeshNo Gravatar

    Please send me questions and answer on my mail id please.

    rajeshdhannawat@yahoo.co.in

    10/03/28 15:21
  6. #1  Jagdish Borde

    Unix Answer

    1 df -h by using this command you can find the free space in file system.

    3. Shell scripting

    a= k in this command a=k is right answer a= k is wrong

    b=10
    a=10

    to find the value of a And b

    use echo $a $b

    difference between = and -eq is
    = is used for arithmetic operation
    -eq is used for the logical operation

    6. echo $?
    when command execute successfully at that time echo $? return 0 otherwise it return non-zero

    7. it indicate that which shell is used
    i.e #!/bin/bash

    that means your script support /bin/bash shell

    09/12/14 03:32

Show all Show 5 so far Close all

Comment begin from here or jump up!