Vous êtes sur la page 1sur 5

) C++ was originally developed by ? A. B. C. D. Colcksin and Mellish Donald E.

Knuth Sir Richard Handlee Bajarne Stoustrup

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

Show Answer Answer = Lowers the maintenance cost

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

Answer & Explanation


Answer: Option [C] 12. The technique by which objects communicate with each other is called ? [A] information passing [B] function passing [C] message passing [D] none of above View AnswerReport Discuss in Forum -by Deepika

Answer & Explanation


Answer: Option [B] 13. Dragons have wings like a bird and scales like a lizard. In object oriented verabage, we would say this is an example of ? [A] Multilevel Inheritance [B] Polymorphism [C] Multiple inheritance [D] Aggregation View AnswerReport Discuss in Forum -by Davinder Singh

Answer & Explanation


Answer: Option [C] 14. how many types of expression in c++. [A] 5

[B] 6 [C] 7 [D] 8 View AnswerReport Discuss in Forum -by B ANTESHWAR

Answer & Explanation


Answer: Option [C] Explanation: there are 7 types of expressions in c++. 1) Constant expression 2) Integer expression 3) Float expression 4) Pointer expression 5) Logical expression 6) Relational expression 7) Bitwise expression 15. Do-while is an ...... loop. [A] Entry control [B] Exit control [C] Entry enrolled [D] None of these View AnswerReport Discuss in Forum -by B ANTESHWAR

Answer & Explanation


Answer: Option [B] Explanation: Do-while is an exit control loop. 16. Which operator is used to define a member of a class from outside the class definition [A] scope resolution [B] -> View AnswerReport Discuss in Forum -by Aanchal Porwal

Answer & Explanation


Answer: Option [A]
1. What is the correct value to return to the operating system upon the successful completion of a program? A. -1 B. 1 C. 0 D. Programs do not return a value.

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. ==

Vous aimerez peut-être aussi