Walkins Openings in India & Interview Questions

Walkins in Mumbai, Bangalore, Chennai, Delhi, Gurgaon, Pune


‘C++ Interview Questions’ - KyaPoocha.com

Suppose a 3-bit sequence number is used in the selective-reject ARQ, what is the maximum number of frames that could be transmitted at a time? 

If a 3-bit sequence number is used, then it could distinguish 8 different frames. Since the number of frames that could be transmitted at a time is no greater half... Read more »

What is the difference between Stack and Queue? 

Stack is a Last In First Out (LIFO) data structure. Queue is a First In First Out (FIFO) data structure  Read more »

Write a fucntion that will reverse a string. 

char *strrev(char *s) { int i = 0, len = strlen(s); char *str; if ((str = (char *)malloc(len+1)) == NULL) /*cannot allocate memory */ err_num = 2; return (str); } while(len) str[i++]=s[?len]; str[i]... Read more »

How do you write a function that can reverse a linked-list? 

void reverselist(void) { if(head==0) return; if(head->next==0) return; if(head->next==tail) { head->next = 0; tail->next = head; } else { node* pre =... Read more »

What is polymorphism? 

Polymorphism is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and a base class array can store... Read more »

How do you find out if a linked-list has an end? (i.e. the list is not a cycle) 

You can find out by using 2 pointers. One of them goes 2 nodes each time. The second one goes at 1 nodes each time. If there is a cycle, the one that goes 2 nodes... Read more »

How can you tell what shell you are running on UNIX system? 

You can do the Echo $RANDOM. It will return a undefined variable if you are from the C-Shell, just a return prompt if you are from the Bourne shell, and a 5 digit... Read more »

What is pure virtual function? 

A class is made abstract by declaring one or more of its virtual functions to be pure. A pure virtual function is one with an initializer of = 0 in its declaration  Read more »

In C++, what is the difference between method overloading and method overriding? 

Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different... Read more »

What methods can be overridden in Java? 

In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static,... Read more »

In C, what is the difference between a static variable and global variable? 

A static variable declared outside of any function is accessible only to all the functions defined in the same file (as the static variable). However, a global variable... Read more »

In C, why is the void pointer useful? When would you use it? 

The void pointer is useful becuase it is a generic pointer that any pointer can be cast into and back again without loss of information.  Read more »

Explain the scope resolution operator. 

It permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.  Read more »

How many ways are there to initialize an int with a constant? 

Two. There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses... Read more »

What do you mean by virtual methods? 

Virtual Methods are used to use the polymorphisms feature in C++. Say class A is inherited from class B. If we declare say function f() as virtual in class B and... Read more »

What do you mean by multiple inheritance in C++ ? 

Multiple inheritance is a feature in C++ by which one class can be of different types. Say class teachingAssistant is inherited from two classes say teacher and... Read more »

How many ways can an argument be passed to a subroutine? 

An argument can be passed in two ways. They are Pass by Value and Passing by Reference. Passing by value: This method copies the value of an argument into the formal... Read more »

What is difference between overloading and overriding? 

a) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship between a superclass method and... Read more »

What is the difference between superclass and subclass? 

A super class is a class that is inherited whereas sub class is a class that does the inheriting.  Read more »

What is the difference between = and == in C? 

“=” is an assignment operator while, “==” is comparative operator a=b; //b’s value is stored in a if( a==b) // a’s value is compared with b  Read more »

Page 7 of 11« First...«56789»...Last »
  • Subscribe

      Get Latest Walkins in your INBOX, enter your email address:


  • Walkins by Location


  • Walkins by Skills