Hot Topics
Infosys Solution
Technical Round
- Question 1
What was the recent technical project you have worked on? What were your key responsibilities?
- Answer
Tell about your technical project and the responsibility you had in that project.
- Question 2
What do you like about the IT industry? What do you enjoy the least about it?
- Answer
The exposure we get in IT industry is phenomenal with learning new technologies.
You can say that working long hours in front of laptop increases the screen time and may cause health issues.
- Question 3
Why is a solution design document important?
- Answer
Solution design document is important so that a person who is newly appointed for the project doesn’t face any problem while referring to some other’s work.
- Question 4
How many programming languages do you know?
- Answer
Tell about the programming languages you are most comfortable with as interviewer will further ask you questions from that language.
- Question 5
What is the use of printf() and scanf() functions?
- Answer
printf() – printf function is used to print character stream of data on stdout console.
scanf() – scanf function is used to read formatted input from stdin. It returns the whole number of characters written in it otherwise, returns a negative value.
- Question 6
What is a static variable? What is its use?
- Answer
A static variable creates a single copy of the variable and is shared among all the objects at a class level.
- Question 7
What is difference between call by value and call by reference in C
- Answer
Call By Value | Call By Reference |
1. When a copy of a value is passed to the function, then the original value is not modified. | When a copy of value is passed to the function, then the original value is modified. |
2. Actual arguments and formal arguments are created in separated memory locations. | Actual arguments and formal arguments are created is same memory location. |
3. In this case, actual argument remain safe as they cannot be modified. | In this case, actual arguments are not reliable, as they are modified. |
4. The copied of the actual arguments are passed to the formal arguments. | The address of actual arguments are passed to their respective formal arguments |
- Question 8
What is recursion in C?
- Answer
Recursion is a self-calling function with a terminating condition.
- Question 9
What is a pointer in C? What are its uses?
- Answer
Pointer is a variable that holds the address of another variable.
Pointers are used to:
Pass arguments by reference
For accessing array elements
Dynamic memory allocation
Implement data structures
- Question 10
What is a NULL pointer and far pointer?
- Answer
NULL pointer is a pointer that is pointing to nothing. NULL pointer points to empty location in memory. The value of NULL pointer is 0.
Far pointer is a 32-bit pointer that can access information which is outside the computer memory.
- Question 11
What is a dangling pointer? How is it overcome?
- Answer
A pointer that points to a non-existing memory location is called a dangling pointer.
To avoid dangling pointer we can initialize the pointer to the NULL value.
- Question 12
What is an infinite loop?
- Answer
Loop is an iteration procedure of a specific block of code. A loop that never terminates and repeats indefinitely is called infinite loop.
- Question 13
What is a command line argument?
- Answer
Argument that is passed before compilation of the program.
- Question 14
Can we compile a program without main() function?
- Answer
No, without main() function we cannot compile.
- Question 15
What is an object and class?
- Answer
Object is a real-world entity that has a state and behavior.
Class is a blueprint of similar type of objects.
- Question 16
What do you mean by JVM, JDK & JRE?
- Answer
JVM stands for Java Virtual Machine which is an abstract machine that provides a run-time environment in which Java bytecode can be executed.
JDK stands for Java Development Kit, a tool which is necessary to compile, document and Java programs. It contains JRE + development tools.
JRE stands Java Runtime Environment, a runtime environment in which Java bytecode can be executed. It is an implementation of JVM which physically exists.
- Question 17
How can you restrict inheritance?
- Answer
Inheritance can be restricted using the final keyword.
- Question 18
What are static methods and static variables?
- Answer
static method – In static method we don’t need to create any object of the class which has static keyword. Without creating an object of the class we can access the method which has static keyword in it.
Static variable – A static variable creates a single copy of the variable and is shared among all the objects at a class level.
- Question 19
What is enumeration?
- Answer
Enumeration often referred to as enum is a special data type which contains a set of pre-defined constants.
E.g.
enum day {
Mon, Tues, Wed, Thru, Fri, Sat, Sun
}
- Question 20
What is the use of “this” keyword in JAVA?
- Answer
“this” keyword is used to carry the reference of the calling object.
- Question 21
What is the final variable?
- Answer
When the final keyword is used with a variable then its value can’t be changed once assigned. In case no value has been assigned to the final variable then using only the class constructor a value can be assigned to it.
- Question 22
Why JAVA is platform independent?
- Answer
Java is platform independent because it’s bytecodes which run on any system irrespective of its underlying operating system.
- Question 23
What are access modifiers in JAVA?
- Answer
Access modifiers in Java are keywords that control visibility of data members, methods and constructor to other class.
There are four types of access modifiers in Java:
public
private
protected
default
- Question 24
What is method overloading?
- Answer
Method overloading in Java is a feature that allows a class to have same method names but different signature of methods. Method overloading does not depend upon return type of the method.
- Question 25
What is interpreted language?
- Answer
In interpreted language source code is converted into machine language line by line and then executed by some other program. Interpreted language is slower than compiled language and to remove this just-in-time compilation is used. E.g. JavaScript, Python, etc.
Popular Category
Hot Topics
Recent Posts
Categories
- Question 15