C++ General Interview Questions
Questions Answers Views Company eMail

Difference between Top down and bottom up approaches for a given project ?

Siemens, Infosys, HCL, CSC, HP, IIT, BSNL,

14 87827

What and all can a compiler provides by default?

Accenture, HP,

3 8100

What are the different operators in C++?

HP,

3 9897




What is the difference between method and message?

HP,

4 30053

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 39090

when can we use copy constructor?

HP,

6 11275

Describe functional overloading?

HP,

6 6767

Difference between Overloading and Overriding?

IBM, NIIT, GameLoft, HP, Appnetix Techno, Rohde and Schwarz,

35 169896




Difference between Operator overloading and Functional overloading?

HP,

10 40146

What is virtual constructor paradigm?

HCL, HP,

5 8120

when can we use virtual destructor?

HP, HCL, Virage Logic,

7 18762

What is the difference between Class and Structure?

IBM, TCS, HP, Samsung,

40 184186

What is size of null class?

HP,

5 11293

Is structure can be inherited?

HP, ST Micro,

5 11716

How the V-Table mechanism works?

HP,

6 17386


Post New C++ General Questions






Un-Answered Questions { C++ General }

how to access grid view row?

794


write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters

3724


There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

1563


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1577


program explaining feautures of c++

956


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

1080


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

4629


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

607


What type of question are asked in GE code writing test based on c++ data structures and pointers?

2157


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

465


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

744


what are the iterator and generic algorithms.

526


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

531


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

2582


What is expression parser in c++

719