Académique Documents
Professionnel Documents
Culture Documents
Show Answer Answer = Bajarne Stoustrup 2) cfront ? A. B. C. D. is the front end of C compiler is the pre-processor of C compiler is a tool that translate a C++ code to its equivalent C code None of above
Show Answer Answer = is a tool that translate a C++ code to its equivalent C code 3) Which of the following is false about object oriented ? A. B. C. D. is block structured language is not a block structured language aids in object oriented programming is an extension of C
Show Answer Answer = is block structured language 4) Polymorphism is implemented through which mechanism in C++ ? A. B. C. D. Late Interpretation Late Binding Early Binding Overloading
Show Answer Answer = Early Binding 5) Re-usability is a desirable feature of a language as it is ? A. B. C. D. Decreases the testing time Lowers the maintenance cost Reduce the compilation time Reduces the exectution time
6) Which of the following is not an extension associated during the creation of a C++ program? A. B. C. D. .cpp .exe .jpg .bak
Show Answer Answer = .jpg 7) Which of the following is not a C++ Compiler ? A. B. C. D. C front Turbo C++ Borland C++ C++ compiler
Show Answer Answer = C++ compiler 8) Why every program begins with main () in C++ ? A. B. C. D. As this is from the compiler knows that program execution actually starts. Because its name is main Both A and B None of above
Show Answer Answer = As this is from the compiler knows that program execution actually starts. 9) The wrapping up of data and functions into a single unit is called ? A. B. C. D. Inheritance Polymorphism Encapsulation Overloading
Show Answer Answer = Encapsulation 10) The process by which objects of one class acquire the attributes of another class is known as............? A. B. C. D. Inheritance Polymorphism Data Abstraction Binding
Show Answer
Answer = Inheritance - See more at: http://edugrip.blogspot.in/2013/05/introduction-to-cpp-programming-questionsand-answers.html#sthash.uTpfZ6Ua.dpuf ........ means the ability that one thing can take several distinct forms ? [A] Dynamic Binding [B] Early Binding [C] Polymorphism [D] None of above View AnswerReport Discuss in Forum -by Deepika
2. What is the only function all C++ programs must contain? A. start() B. system() C. main() D. program() 3. What punctuation is used to signal the beginning and end of code blocks? A. { } B. -> and C. BEGIN and END D. ( and ) 4. What punctuation ends most lines of C++ code? A. . B. ; C. : D. ' 5. Which of the following is a correct comment? A. */ Comments */ B. ** Comment ** C. /* Comment */ D. { Comment } 6. Which of the following is not a correct variable type? A. float B. real C. int D. double 7. Which of the following is the correct operator to compare two variables? A. := B. = C. equal D. ==