Join Regular Classroom : Visit ClassroomTech

ZOHO Overall Interview Questions + Coding Solutions – codewindow.in

Hot Topics

ZOHO Solution

Technical Round

What is the difference between interface and abstract class?

Interface
Abstract class
1.    Interface supports the concept of multiple inheritance.
Abstract class doesn’t support the concept of multiple inheritance.
2.    Interface has only abstract methods.
Abstract class can have non-abstract method but it must have at least one abstract method.
3.    Interface keyword is used to declare interface
Abstract keyword is used to declare Abstract class.
4.    Interface has members as public by default.
Abstract class in Java can have private, protected, public and default class members.
5.    Interface supports multiple inheritance.
Abstract class does not support multiple inheritance.
 

Tell me about your project.

Tell about Your Project.

Which programming language are you most comfortable with?

Tell the programming language with which you are most comfortable as interviewer may have follow up questions from that language.

Write a code for the palindrome of a number.

#include<stdio.h>

int main() {
    int n,m,sum=0,temp;
    printf("Enter the number you want to check\n");
    scanf("%d",&amp;n);
    
    temp=n;
    while(n&gt;0){
        m=n%10;
        sum=(sum*10)+m;
        n=n/10;
    }
    
    if(temp==sum){
        printf("It's a palindrome number");
    }
    else{
        printf("It's not a palindrome number");
    }

    return 0;
}
/*
output:
Enter the number you want to check:121
121 , It's a palindrome number
*/

Write a code for the factorial of a number.

#include<stdio.h>
int fact(int);

int main()
{
    int n=5;
    printf("%d",fact(n));

    return 0;
}

int fact(int n){
    if(n==1){
        return 1;
    }
    
    return n*fact(n-1);
}

/*
OUTPUT:
120
*/

How will you declare a function in C?

To declare a function in C we at first need to declare the prototype of function before main function and then after main function ends we will write the function.

What is inheritance?

Inheritance is a mechanism in which an object acquires properties from its parent object. 

What was your recent technical project that you worked on? What were your key responsibility?

Tell about the project you recently worked on and also tell the part of the project on which you have worked on.

What is the use of printf() and scanf() functions?

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. 

What is the static variable? What is its use?

A static variable creates a single copy of the variable and is shared among all the objects at a class level.

What is the difference between call by value and call by reference?

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
 

What is recursion in C?

Recursion is a self-calling function with a terminating condition.

What is NULL pointer and far pointer?

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.

What is a dangling pointer? How is it overcome?

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.

What is an infinite loop?

A loop that never terminates and repeats indefinitely is called infinite loop.

What is a command line argument?

Argument that is passed before compilation of the program.

Can we compile the program without the main function?

Compilation of a program without main() function is possible but it uses main() function indirectly.

What is an object and class?

Object: An object is the reality of the class after creation of which we can access the data members and member functions of the classes. Object memory will be occupied separately.
 
Class: A class in Java is a blueprint which includes all your data. A class contains fields (variables) and methods to describe the behaviour of an object.

Nagarro Solved

Automata Fixing

      

We Love to Support you

Go through our study material. Your Job is awaiting.

Recent Posts
Categories