click below
click below
Normal Size Small Size show me how
C++ 2012
C++ 2012 Random multiply or fill in the blank
| Question | Answer | |
|---|---|---|
| #include < io_______ > <br> <hr color=red> const int double return stream main function | stream | #include < iostream > |
| using ____________ std; Statement Expression Variable namespace Array | namespace | using namespace std; |
| What is the required function <br> main<br> return | main | int main() |
| cout <br> cin <br> << <br> >> | cout << | cin >> |
| cout << 5/2 <br> 2<br> 2.5 | 2 | when you divide 2 int <br> result is int or 2 and not 2.5 |
| Conversion <br> widening narrowing implicit explicit all of above | all of above | Widening conversion narrowing conversion implicit conversion explicit conversion |
| #include < cmath > to use abs() ________ | function | abs(x + Y); |
| pow(x, 3); | x^3 or x*x*x | next is pointers strings structures typecasting |
| Overloading Recursion Scope <hr> Data types <hr> Header Files | Inheritance <hr> Polymorphism <hr> Encapsulation | Object Oriented <hr> Procedural Programming |