Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

C++ Interview Questions and Answers

Ques 131. Is C an object-oriented language?

Ans.
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.
Ans.
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?
Ans.
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.
Ans.
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?
Ans.
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:

©2016 WithoutBook