Hello guys, in this article we will be telling you some important questions from technical as well as HR interview for Amdocs. After going through this article you will get an idea about the exam.
Amdocs Technical Interview Questions
We have given 15 technical interview questions for Amdocs. Go through them carefully to know about it in a better way.
Question 1. How to swap two numbers without the use of the third variable?
int a=1, b=8;
printf(“Before swapping a=%d b=%d”,a,b);a=a+b;//a=30
printf(“After swapping a=%d b=%d”,a,b);
Question 2. What Is The Difference Between Fat32 And Ntfs File Systems?
Answer. NTFS allows compression and file encryption. FAT32 does not.
NTFS is more secure than FAT32
Question 3. Write a program to print “hello world” without using a semicolon?
Answer. #include <stdio.h>
Question 4. What Is The Command To Convert A Fat32 File System To Ntfs? Would There Be Any Loss Of Data?
Answer. The command is CONVERT : /fs:NTFS. There will be no effect on the data. (Data will be safe).But remember this: if you want to convert NTFS partition back to FAT32, you will have to re-format that partition and select the FAT32 file system.
Question 5. Difference between malloc() and calloc() functions?
Answer. malloc and calloc are library functions that allocate memory dynamically, which means that memory is allocated during the runtime from the heap segment.
Malloc and Calloc differ in the number of arguments used, their initialization methods and also in the return values.
Question 6. Why Java is platform-independent?
Answer. Java is called platform independent because of its byte codes which can run on any system irrespective of its underlying operating system.
Question 7. What is the difference between a JDK and a JVM?
Answer. JDK is the Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.
Question 8. What is the difference between the Void and Null Pointer?
Answer. Null pointers generally do not point to a valid location. A pointer is initialized as NULL if we are not aware of its value at the time of declaration.
Whereas, Void pointers are general-purpose pointers which do not have any type associated with them and can contain the address of any type of variable. So basically, the type of data that it points to can be anything.
Question 9. What are wrapper classes in Java?
Answer. Wrapper classes convert the Java primitives into the reference types (objects). Every primitive data type has a class dedicated to it. These are known as wrapper classes because they “wrap” the primitive data type into an object of that class. Refer to the below image which displays different primitive type, wrapper class, and constructor argument.
Question 10. What is a pointer and does Java support pointers?
Answer. The pointer is a reference handle to a memory location. Improper handling of pointers leads to memory leaks and reliability issues hence Java doesn’t support the usage of pointers.
Question 11. What is the difference between while (0) and while (1)?
Answer. While(1) is an infinite loop which will run till a break statement occurs. Similarly, while(2), while(3), while(255), etc will all give infinite loops only.
Whereas, While(0) does the exact opposite of this. When while(0) is used, it means the conditions will always be false. Thus, as a result, the program will never get executed.
Question 12. What are constructors in Java?
Answer. In Java, constructor refers to a block of code which is used to initialize an object. It must have the same name as that of the class. Also, it has no return type and it is automatically called when an object is created.
There are two types of constructors:
Default Constructor: In Java, a default constructor is the one which does not take any inputs. In other words, default constructors are the no-argument constructors which will be created by default in case you no other constructor is defined by the user. Its main purpose is to initialize the instance variables with the default values. Also, it is majorly used for object creation.
Parameterized Constructor: The parameterized constructor in Java, is the constructor which is capable of initializing the instance variables with the provided values. In other words, the constructors which take the arguments are called parameterized constructors.
Question 13. Is Java a pure object oriented language?
Answer. Java uses primitive data types and hence is not a pure object-oriented language.
Question 14. What is Memory Leak in C?
Answer. A memory leak occurs when programmers create a memory in the heap and forget to delete it. It decreases the efficiency of the performance of the system.
Question 15. What is a package in Java? List down various advantages of packages.
Answer. Packages in Java, are the collection of related classes and interfaces which are bundled together. By using packages, developers can easily modularize the code and optimize its reuse. Also, the code within the packages can be imported by other classes and reused. Below I have listed down a few of its advantages:
- Packages help in avoiding name clashes
- They provide easier access control on the code
- Packages can also contain hidden classes which are not visible to the outer classes and only used within the package
- Creates a proper hierarchical structure which makes it easier to locate the related classes
Amdocs HR Interview Questions
Below are the 10 most important HR interview questions for Amdocs. Go through them to get an idea about level.
- How would you improve our product/ company?
- Describe an ideal workplace for you.
- Tell about an instance in the past of a conflict with a coworker and how you resolved it.
- Have you ever had a problem with your peer? Can you give us an example?
- Why did you apply to our company?
- Describe your ability to work under pressure
- Can you tell us something about your previous boss?
- What is one thing that you want to change in yourself?
- Do you have any serious medical condition?
- If you are allowed to change one thing about your last job, what would it be?
We have given some very important questions of Technical and HR interview above. If you have still any queries then you can comment below. We here at Alpigni are always happy to help you.