Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C++ General Interview Questions
Questions Answers Views Company eMail

write a c++ program that gives output 4 3 4 2 3 4 1 2 3 4 using looping statement

4 7314

A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.

2 19771

i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????

1 5525

what is object?

7 4055

write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

1705

In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 2615

if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3

3 5618

write a program to add two numbers without using an arithmetic operator.

NIIT,

1 3258

write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

1397

can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "< 1183


I need to find a specific string between two strings how do I do it?

Infosys,

1 2545

How would you represent an error detected during constructor of an object?

1 2050

why and when we can declar member fuction as a private in the class?

1182

class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;

Manhattan,

4 3701

write a C++ programming using for loop: * * * * * * * * * *

TCS,

4 4351


Post New C++ General Questions






Un-Answered Questions { C++ General }

Explain the concept of dynamic allocation of memory?

162


Can c++ do everything c can?

132


What is wrapper class in c++?

167


What is a class definition?

141


Explain selection sorting. Also write an example.

154






Is c++ a good first language to learn?

135


What is expression parser in c++

1421


What do manipulators do?

125


What is a hash function c++?

109


what are function pointers?

135


What happens when you make call 'delete this;'?

166


Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2

2184


Difference between pointer to constant vs. Pointer constant

143


Do class declarations end with a semicolon? Do class method definitions?

160


What is called array?

130