Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

C++ Interview Questions and Answers

Test your skills through the online practice test: C++ Quiz Online Practice Test

Related differences

C vs C++Java vs C++

Ques 131. Is C an object-oriented language?


C is not an object-oriented language, but limited object-oriented programming can be done in C.

Is it helpful? Add Comment View Comments
 

Ques 132. Name some major differences between C++ and Java.


C++ has pointers; Java does not. Java is platform-independent; C++ is not. Java has garbage collection; C++ does not. Java does have pointers. In fact all variables in Java are pointers. The difference is that Java does not allow you to manipulate the addresses of the pointer

Is it helpful? Add Comment View Comments
 

Ques 133. 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

Is it helpful? Add Comment View Comments
 

Ques 134. 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] = NULL;
return (str);
}

Is it helpful? Add Comment View Comments
 

Ques 135. What is the software Life-Cycle?


The software Life-Cycle are
1) Analysis and specification of the task
2) Design of the algorithms and data structures
3) Implementation (coding)
4) Testing
5) Maintenance and evolution of the system
6) Obsolescence

Is it helpful? Add Comment View Comments
 
2) Name some major differences between C++ and Java. 3) What is the difference between Stack and Queue? 4) Write a fucntion that will reverse a string. 5) What is the software Life-Cycle? " />

Most helpful rated by users:

©2024 WithoutBook