STL (140)
OOPS (873)
C++ General (2409) Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]
1 2056Identify the error in the following program.
#include
Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69
2 2199Write a program to read two numbers from the keyboard and display the larger value on the screen
1 1162
What is overriding in oop?
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.
What are c++ data types?
What are separators in c++?
Who invented oop?
What is the outcome of cout< a) 16 b) 17 c) 16.5
What is inheritance in oop?
Why do while loop is used?
Is it possible for the objects to read and write themselves?
Should I learn c or c++ first?
Is c++ a float?
What is object in c++ example?
What is overloading in oop?
State two differences between C and C++.
It is possible to build a C++ compiler on top of a C compiler. How would you do this?