Question: QUESTION 1 Terminal input redirection is a way to redirect input so that the standard inputs come from a file instead of having the user

QUESTION 1

Terminal input redirection is a way to redirect input so that the standard inputs come from a file instead of having the user type them during program execution.

True

False

10 points

QUESTION 2

When writing and executing your code, replacing all endl keywords with the character will always produce the same result.

True

False

10 points

QUESTION 3

A pass by value parameter does not create a local copy of the argument, but rather the parameter refers directly to the argument variable's memory location.

True

False

5 points

QUESTION 4

Click on any of the posts below that do NOT follow our classroom norms.

A.

lowkey can't believe I missed that typo. i'm shook.

B.

AHHHHH. THIS IS DRIVING ME CRAZY!!! I cannot figure out this dumb bug. HELP!

C.

Thanks for your help, brah. Dude, I have been working for hours on this. Really appreciate it.

D.

tbh, I just can't figure this out. lolz. guess I should just try again tomorrow.

5 points

QUESTION 5

The function getline(cin, stringVar) gets all remaining text on the current input line, up to the next _______ character.

A.

whitespace

B.

non-whitespace

C.

newline

D.

string literal ("")

5 points

QUESTION 6

Which of the following is the predecessor that C++ classes expand upon to create the object-oriented aspects of the C++ programming language?

structs

functions

header files

10 points

QUESTION 7

The only way for the extraction operator (>>) or getline to fail is if the end of file (EOF) character is reached.

False

True

10 points

QUESTION 8

What is this type of loop called (best answer)?

for (double e : V){

cout << e << endl;

}

a for loop

a while loop

a range based loop

a foreach loop

both c and d

10 points

QUESTION 9

Is lab attendance required?

Yes

No

5 points

QUESTION 10

If you use terminal input redirection, you must recompile your program to execute it with the new inputs.

False

True

10 points

QUESTION 11

The vector's at() member function (v.at()) does the exact same thing as the square bracket access (v[i]).

False

True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!