C++ Interview Questions
Questions Answers Views Company eMail

write a programming using for loop in c++ to generate diamond trangel?

NIIT,

1 7391

Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

1721

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

1791

write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX

1 3228

Write a c++ program to display pass and fail for three student using static member function

2819

explain defference between structure and class with example

1 2983

WAP find square root of any number (without using sqrt() )?

3 7623

what is different between oops and c++

IIT,

2004

Program to check whether a word is a sub-string or not of a string typed

1601

how to making game in c++ ?

2183

i got a backdoor offer in process global,Bangalore..Can i work with it?

2329

can we make game by using c

SmartData,

1 3433

What is byval and byref? What are differences between them?

HCL, Wipro,

1691

What is abstrac class?where is it use?

2 3444

What is interface? When and where is it used?

1664


Un-Answered Questions { C++ }

What is conversion constructor in C++

583


What do you mean by function and operator overloading in c++?

613


Is overriding possible in c++?

578


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

660


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

3064






Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1648


What is lazy initialization in c++?

656


Which one between if-else and switch is more efficient?

605


What is the basic structure of a c++ program?

616


What is the prototype of printf function?

659


How is computer programming useful in real life?

596


What are the defining traits of an object-oriented language?

696


Why do we use constructor?

605


Why interface is used?

555


Explain the concept of memory leak?

631