1)What is max(min(1,2),3)? A) 1 B) 2 C) 3 2) What is min(1,3)? A) 1 B) 2 C) 3 3)
ID: 3554909 • Letter: 1
Question
1)What is max(min(1,2),3)?
A) 1
B) 2
C) 3
2) What is min(1,3)?
A) 1
B) 2
C) 3
3) How many spaces will be between a and b after being displayed by the following code?
cout << "a" << setw(4) << "b" << endl;
A)1
B)2
C) 3
4) How many spaces will be between a and b after being displayed by the following code?
cout << "a" << setw(2) << left << endl;
A) 0
B) 1
C) 2
5) If you read a string input: DARTON STATE COLLEGE using the following code, what will be the value of s?
cout << "Enter a string: ";
string s;
getline(cin,s);
A) DARTON STATE COLLEGE
B) DARTON
C) COLLEGE
6) If you read a string input: DARTON STATE COLLEGE using the following code, what will be the value of s?
cout << "Enter a string: ";
string s;
cin >> s;
A) DARTON STATE COLLEGE
B) DARTON
C) COLLEGE
7) We can declare a variable output of ofstream type and specify the file to use all in one statement as follows:
ofstream output("myfile.txt");
TRUE/FALSE
8) The following set of statements is legitimate:
int myValue = 'x';
TRUE/FALSE
Explanation / Answer
1) C
2) A
3)B
4) A
5) A
6) B
7) true
8) false
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.