OOPS Interview Questions
Questions Answers Views Company eMail

Petrol pump mgt. system: To design a program that display an interface for the sale of the Petrol and then make the entries at the backend in the database.

Wipro,

1 3824

write a progra in c++ using class & object to find out wheather a given no. is prim or not.

2 19929

What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++

TCS,

1 3748

create a c++ program that will ask 10 numbers and display their sum using array.

1 3773

create a c++ program that will accepts 9 inputs using 3 by 3 array.

1 2565

This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1635

Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2573

namespace is working on which compiler?

3 3752

What is virtual Function.

Wipro,

1 3423

what is data hiding.

Wipro,

3 5835

What is memory leak and memory corruption?

TCS,

1 7347

What is sub classing in c++?

1 3247

difference between static and non-static variables?

2 3910

what are the different types of qualifier in java?

TCS,

1840

some one give d clear explanation for polymorphism

3 5049


Post New OOPS Questions

Un-Answered Questions { OOPS }

What are functions in oop?

582


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2102


Whats oop mean?

588


What does sksksk mean in text slang?

1532


What is the point of oop?

651






What is the difference between procedural programming and oops?

550


What is persistence in oop?

669


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1778


What is oops concept with example?

575


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1789


What is difference between oop and pop?

611


why reinterpret cast is considered dangerous?

1898


Can you explain polymorphism?

578


Why is oop better than procedural?

602


This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1635