Zusammenfassung der Ressource
Frage 1
Frage
Check all that are valid declarations:
Frage 2
Frage
What will the following code return:
#include <iostream>
int main() {
__int16 t = 1400;
std::cout << t + sizeof(t);
}
Frage 3
Frage
Which of the following may not be of type void?
Antworten
-
Objects
-
Arrays
-
Functions
-
References
Frage 4
Frage
The range of values that a 32 bit int can hold are from [+/- [blank_start]2,147,000,000[blank_end]]
Antworten
-
32,768
-
1,200,000,000
-
2,147,000,000
-
9,000,000,000
Frage 5
Frage
List the Floating Point types from least to greatest:
[blank_start]float, long double, double[blank_end]
Antworten
-
double, long double, float
-
long double, double, float
-
double, float, long double
-
float, double, long double
Frage 6
Frage
Debug the following code:
#include <iostream>
#include <string> // Allows use of strings
// [blank_start]missing namespaces[blank_end]
int main() {
std::string n; // [blank_start]Debug[blank_end]
int num // [blank_start]Debug[blank_end]
std::cout<<"Enter a #"<< std::endl; // [blank_start]Debug[blank_end]
std::getline(cin, n); // [blank_start]Debug[blank_end]
[blank_start]function[blank_end] >> num;
}
For lines w/o mistakes return 0