Example Questions



1. Given the following, determine the natural type of the symbols, as though they were written in a C/C++ program.



  1. 'a' = _______


  2. "Hello" = _______


  3. 928787 = _______


  4. 42 = _______


  5. 420 = _______


  6. 292.923 = _______


  7. 928.43f = _______

2. What is the output of the following program:

    #include 
    #include 
    using namespace std;

    int main() {
      if (true) {
         cout << "Yes." << endl;
      } else { 
         cout << "No." << endl;
      }
      return 0;
    }