C++ Programming - Introduction To C++ Language Questions and Answers

Related Topics:

C++ Programming : Introduction To C++ Language

Here is a collection of multiple choice questions and answers related to the introduction of C++ language.
1. how many types of expression in c++.
[A] 5
[B] 6
[C] 7
[D] 8

Answer: C. 7


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
2. Do-while is an ...... loop.
[A] Entry control
[B] Exit control
[C] Entry enrolled
[D] None of these

Answer: B. Exit control


Do-while is an exit control loop.
3. 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

Answer: C. Multiple inheritance

4. C++ was originally developed by ?
[A] Colcksin and Mellish
[B] Donald E.Knuth
[C] Sir Richard Handlee
[D] Bajarne Stoustrup

Answer: D. Bajarne Stoustrup

5. cfront ?
[A] is the front end of C compiler
[B] is the pre-processor of C compiler
[C] is a tool that translate a C++ code to its equivalent C code
[D] None of above

Answer: C. is a tool that translate a C++ code to its equivalent C code

6. Which of the following is false about object oriented ?
[A] is block structured language
[B] is not a block structured language
[C] aids in object oriented programming
[D] is an extension of C

Answer: A. is block structured language

7. Polymorphism is implemented through which mechanism in C++ ?
[A] Late Interpretation
[B] Late Binding
[C] Early Binding
[D] Overloading

Answer: C. Early Binding

8. Re-usability is a desirable feature of a language as it is ?
[A] Decreases the testing time
[B] Lowers the maintenance cost
[C] Reduce the compilation time
[D] Reduces the exectution time

Answer: B. Lowers the maintenance cost

9. Which of the following is not an extension associated during the creation of a C++ program?
[A] .cpp
[B] .exe
[C] .jpg
[D] .bak

Answer: C. .jpg

10. Which of the following is not a C++ Compiler ?
[A] C front
[B] Turbo C++
[C] Borland C++
[D] C++ compiler

Answer: D. C++ compiler

Comments: (Your feedback is valuable to us)

CM SHARMA 8 months ago Reply

need more

venuste 10 months ago Reply

this is more helpfull