TEST       UR   

      CPP    

      SKILL   

* WRITE THE TEST AND GET A FREE SOFTWARE CD BUNDLE OF WORTH RS.50,000/-           (CONTAINS All ADOBE,   MACROMEDIA, ULEAD, COREL, XP & COFFEECUP SOFTWARE PRODUCTS-REGISTERED FULL VERSIONS)!

                                    * TO GET THE CD YOU MUST SCORE  90/100 (FOR MY CLASSMATES 80/100 IS CONSIDERABLE)!!!

                                    * THE ANSWERS SHOULD BE REACHED ME BY EMAIL OR POST WITH YOUR FULL POSTAL ADDRESS.

                                    *  IF YOU WANT ANY OTHER SOFTWARE INSTEAD OF PRE-SPECIFIED MENTION THE   SOFTWARE NAME & VERSION.        

                                     *  IF YOU NEED THE ANSWERS OR ANY EXPLANATION ABOUT THE QUESTIONS CONTACT WITH  YOUR                                         FULL POSTAL ADDRESS AND EMAIL ID TO mcmilan@vsnl.net (YOU CAN'T WRITE THE TEST FURTHER).

  HOME PAGEREFRESHDOUPT?GO BACK www.cpponline.8m.net FORWARDMINIMIZECONTACT MEWARNING!CLOSE THIS WINDOW  

                                     
         Dear Publishers,

                And at last I complete the documents for releasing a new book namely:

                    GOLDEN RULES OF CPP                                          (NOT FOR BEGINNERS)

                        Contents: 1)GETTING STARTED  2)BASIC CONCEPTS 3)250 GOLDEN RULES AND PROOF 4)100 EVERGREEN PROGRAMS 5)ADVANCED CPP 5)QUESTIONS ASKED IN INTERVIEWS 6)TEST YOUR SKILLS IN CPP 7)CPP COMPILER CONCEPTS 8)APPENDIX

 I AM READY TO WRITE, ARE YOU READY TO PUBLISH?

                                                YES means contact me, I will submit my proof notes.

             

SEE ALSO:    C++ GLOSSARY

                      C++ PROGRAMS

                      C++   PROJECTS

                      C++      DOUBTS

                      C++ CONCEPTS

                      C++          RULES

 

                         LETS START          

                                 "WE LEARN MOST WHEN WE HAVE TO INVENT"

                  SEND YOUR ANSWERS TO  :  MCMILLAN @VSNL.NET                                                  LAST UPDATED ON               :  23/06/2002   

 

  1) WHAT IS C++?

     ANS: ENHANCED VERSION OF C WITH SIMULA CLASSES IS CALLED AS C++ WHICH IS AN OBJECT ORIENTED LANGUAGE.

 2) HOW MANY DIGITS CAN BE HOLD BY A SINGLE PRECISION DATA TYPE?

 3) THE MAXIMUM NEGATIVE VALUE HOLD BY AN INTEGER IS -32,768,BUT THE MAXIMUM POSITIVE VALUE IS ONLY 32,767.WHY NOT IT IS 32,768.? (Don't Answer like' 0 is assumed as positive', Refer Negative Number representation !)

 4) What is the 'Alert Execution character'?

 5) When a LVALUE becomes a RVALUE?

 6) Tell the common Error when you COMPILE a C program in a C++ Compiler?

 7) How do you Encapsulate the Data in C++ ?

 8) Is it possible to write a C++ program without main() function? Yes means How?

 9) What is pseudo Return Type?

 10) What is RTTI? How it is achieved in C++ ?

 11) What is the Associative of Insertion operator( or cascaded cout)? Example please?

 12) What is the iostream manipulator?

 13) What are the Terminating characters of CIN (or Extraction operator)?

 14) What is the size of a Reference variable?

 15) Differentiate Statements-Expressions-Assignments?

 16) Is it possible to define a variable as ' int main; ' ? Why?

 17) Differentiate Declaration-Definition-Initialization? (with examples)

 18) For what Data Types setw ( ) IGNORES the input?

 19) What are Built-in Compound Data Types?

 20) What is the Ternary operator in C++ ? Is it work with binary?

 21) Write the forever statement and its equivalent while statement?

 22) Can you Initialize all the members  of an Union? How ?

 23) Is it possible to define a loop variable within the loop? How?

 24) Is it possible to 'continue' an Unembedded Decision? How?

 25) Why exit(0) normally returns a zero?

 26) What are the four predefined stream objects in c++ ?

 27) Enumerator within another Enumerator - Possible or not? How?

 28) Why the array subscript( Array size) must be a constant?

 29) In a two dimensional array you must specify the row value, even if you initialize the array? Why?

 29) What are command line arguments? Explain?

 30) How many arguments can be passed as arguments for main() function? (maximum)

 31) Can you initialize an Member (structure/class) in Declaration itself? How?

 32) What is the Data Type of an structure Definition?

 33) Define a variable that can be changed by external sources, but not by the program?

 34) Is it possible to define an enumerated type without enum name and enum variable? How?

 35) How do you assign an integer to an enumerated variable?

 36) Is it possible to specify a 'class' (with member function) as 'struct'  ? Why?

 37) How do you define a Boolean Type (Not for ANCI c++) ?

 38) What is the difference between 'Function Declaration' & 'Function Specifier'

                                                                                    ( Don't refer ROBERT LAFORE books)

 39) What are Function specifiers?

 39) What function doesn't return anything? (Including void)? (Don't try default return type)

 40) What is the difference between Arguments and Parameters? (Not ROBERT LAFORE's)

 41) How do you initialize the Function arguments?

 42) What are the types of function calls?

 43) When you subtract two subsequent pointers, the answer is one ? Why ?

 44) Arrays are passed by default in what method?

 45) When 'Inline' Functions are ignored by the Compiler? (only with 'Inline' keyword!!)

 46) Can you overload a function only with different return types?

 47) What is the International standard for C++ character set?

 48) What are Primitive integral types?

 49) What is the use of Register class? (Storage class)

 50) What is the use of static external variable?

 51) Diff compiler-Interpreter? Is C++ is a compiler or interpreter? (TURBO C++)

 52) Why it is named as C++?

 53) What is modular programming ? Is CPP is modular?

 54) What is the maximum possible size of an integer array and also long array? Why?

 55) Whenever  a variable is initialized automatically?

 56) What is the STRINGIZING operator?

 57) Is all Binary operators having Left to Right Associative?

 58) What is recursion?

 59) Write a program to print all Armstrong numbers? (Limit up to Integer's capacity)

 60) How can you access a global variable when there is a local variable with same name?

 61) Write a program to exchange two numbers without using Arithmetic operators and not using a third variable?

 62) Generate PRIME numbers without goto statement?

 63) Write a program to multiply two numbers without using Any Arithmetic operators?

 64) When does the increment expression in a for loop execute?

 65) Where you can declare a variable?( Refer diff between declaration & Definition)

 66) Where you can combine both declaration & Definition?

 67) What are the functions available in C not be used in C++? (Just a relax)

 68) What are storage class specifiers? (At least four)

 69) What are Preprocessing C++ Tokens?

 70) What are the labeled statements in C++ ?

 71) What are the CPP Qualifiers?

 72) What is a  Volatile Variable?

 73) What is the output:         cout<<char(10);

 74) Write a program to find the range of any DATA TYPE ? (not in bytes or size of() )

 75) Tell any Drawback of C++ ?

 76) What is lvalue & rvalue?

 77) What is Heap object ? (Dynamic object)

 78) Give any use of TYPEDEF ?

 79) Form a loop without any Iteration? (Without using for, while and do)

 80) What is the default storage class, return type, data type, & text condition ?( 4 answers)

 81) How can you access the class member function without using object?

 82) What is INTEGRAL WIDENING CONVERSION?

 83) Give a program that return an object?

 84) What are the possible class keys?

 85) How many constructor and destructor a class can hold? (maximum)

 86) What is meant by Arithmetic Conversion?

 87) What is meant by Short-Circuit Evaluation? (Don't answer electrically)

 88) Write a program for FIBONACCI series generator? (EXE File size must be <= 23.7 KB)

 89) What is meant by COERCION?

 90) What is the output ?

         int i=5;

         cout<<(i, i++, i+5, ++i, i++, i);

                      ANS: 8 Why ?

 91) what does ISO-7 Standard refer to ?

 92) What is the output of (strcmp ("mcmillan","mcmillan");

 93) Write any two functions (Not examples) that are not be overloaded ?

 94) What is sequencing operator?

 95) What is the boolean value of (int x=10) ?

 96) what is the output ?

         int j; int i=j=10;

         if((j=100)|| (i=200))   

         cout<<i<<'\t'<<j;     

                    ANS is:     10         100                --Why?

 97) What is the difference between 'structure' and 'class'? (Don't ans with member functions)

 98) What is the difference between function overloading and function overriding?

 99) What is integral promotion rule?

 100) What is the output ?Why ?

            int x=10, y=5;

            int* p =&x. *q = &y;

            cout<<p-q;

NOTE TO NEW COMERS:

ON SEEING THIS QUESTIONS YOU MAY THINK THAT  ' THEY ARE NOT QUESTIONS-BUT ONLY FOR JOKES!!'

SORRY FRIENDS! IF YOU NEED THE ANSWER TO THE ABOVE QUESTIONS PLEASE DO THE FOLLOWING: - WRITE THE ANSWER FOR MAXIMUM POSSIBLE QUESTIONS YOU KNOW, TO PROVE THAT YOU ARE NOT A BEGINNER OF C++. (This is because, I will explain the answers based only on your knowledge in c++)

 2) You may EMAIL/POST me the Answers with your Full Postal Address and all Email IDs.

 3) If you score above 70, your name will be published in this page.

PREVIOUS TEST RESULTS (Top Scorers):

Mr. S. GOBALAKRISHNAN - 82/100 -Received the CD bundle!

Mr. M. DHINESH ROY -     76/100

Mr. S. JOEL LOUI      -71/100

Mr. E. ARUN PRADHAP SINGH -71/100

TOTAL NO OF PERSONS ATTENDED THIS TEST YET : 418 (FROM APRIL-1999)