|
Question |
Rating |
View Answer |
|
what are the disadvantages of copy constructor?? |
|
View Answer |
|
Hi, I was asked the below question in one interivew.
Imagine you're maintaining a big project which is having 50k+ lines of code and as part of enhancements, you received a request to add a functionality in one of the .cpp files. For this, you need to add a new function. How do you write a new fucntion without adding a prototype to the header file (because, if you add prototype in the headerfile, the compiler has to compile all the other files). So, the requirement is not to touch the header file but add functionality in the cpp file. How do you add? |
|
View Answer |
|
How can you tell what shell you are running on UNIX system? |
|
View Answer |
|
What are the steps involved in designing? |
|
View Answer |
|
Write a program on abstract class. |
|
View Answer |
|
When do we use abstract.h?Give an example with a small program. |
|
View Answer |
|
Differences of C and C++ Could you write a small program that will compile in C but not in C++ ? |
|
View Answer |
|
What do you mean by binding of data and functions? |
|
View Answer |
|
Will it execute or not?
|
|
View Answer |
|
Q1.write C++ program to accept a string and display ascii value letter by letter then display sum of all ascii values. Q2.write C++ program to accept 20 nos and then display max & min. |
|
View Answer |
|
Write a C++ program that contains a structure named “Student” having two data members
1) Name
2) CGPA Declare array of structure “Student” of size 10 .Populate this array by taking data from file inputFile.txt.File inputFile.txt contains Name and CGPA of the students for current semester. There is a single space between the Name and CGPA.
Display the un-sorted list of students on screen. Compare the CGPAs of all the students and sort Student List with respect to CGPA in ascending or descending order.
Display the sorted list of students, highest CGPA and lowest CGPA on screen and also write the result in File outputFile.txt with tab characters between the Name and CGPA. Sample InputFile.txt Ahmer 4.0
Aasim 3.5 Usman 3.4 Maria 2.4 Anila 3.0 Humza 2.6 Junaid 3.0 Talaal 3.8 Haris 3.9 Saira 2.6 Sample OutputFile.txt
Sample outputFile.txt
Name CGPA
===============
Maria 2.4
Humza 2.6
Saira 2.6
Anila 3.0
Junaid 3.0
Usman 3.4
Aasim 3.5
Talaal 3.8
Haris 3.9
Ahmer 4.0
===============
Highest CGPA = 4.0
Lowest CGPA = 2.4
Sample output of screen:
Unsorted List of Students
Name CGPA
Ahmer 4.0
Aasim 3.5
Usman 3.4
Maria 2.4
Anila 3.0
Humza 2.6
Junaid 3.0
Talaal 3.8
Haris 3.9
Saira 2.6
Sorted List of Students
Name CGPA
===============
Maria 2.4
Humza 2.6
Saira 2.6
Anila 3.0
Junaid 3.0
Usman 3.4
Aasim 3.5
Talaal 3.8
Haris 3.9
Ahmer 4.0
===============
Highest CGPA = 4.0 Lowest CGPA = 2.4 |
|
View Answer |
|
What is an object? |
|
View Answer |
|
create six large matrices in subprogram (100*100) two static and three stack dynamic ...fill two static,two stack matrices with random numbers 1 to 100 ..the code in subprogram must perform large matrix multiplication on static matrices and should repeat this with stack dynamic ...compare and explain result? |
|
View Answer |
|
How can i create a program in C++ which would input 5 random numbers, then it would arrange them in an ascending order, in descending order, from highest to lowest value and from lowest to highest value? |
|
View Answer |
|
How can I set the background in flash like camera?( black color that some times for a specific time your background becomes white) |
|
View Answer |
|
What do you meant by active and passive objects? |
|
View Answer |
|
List out some of the object-oriented methodologies. |
|
View Answer |
|
Given an integer N>0,write a recursive c++ function that writes the integer 1,2,.......N ? |
|
View Answer |
|
What is multithreading? |
|
View Answer |
|
How to write a program to read sequences of integer from keyboard.program should sum all even and odd numbers? |
|
View Answer |