Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

csce final questions with complete solutions

Document preview thumbnail
Preview 2 out of 9 pages

csce final questions with complete solutions

Content preview

csce final questions with complete solutions

'\n' is two characters. Correct Answer False

A function that is associated with an object is called a ________
function. Correct Answer member

A stub is a function that is completely defined and well tested.
Correct Answer False

A two dimension array can also be thought of as Correct
Answer an array of arrays

A void function can be used in an assignment. Correct Answer
False

A void function can return any value. Correct Answer False

A void function may not be used in an output statement. Correct
Answer True

Arrays can be passed to functions. Correct Answer True

Arrays can be returned from a function. Correct Answer False

Call-by-reference parameters are passed Correct Answer the
actual argument

Data that is sent to an output stream representing a file will be
immediately saved to disk. Correct Answer False

, Functions can return at most one value. Correct Answer True

Given the following function definition for a search function,
and the following variable declarations, which of the following
are appropriate function invocations?

const int SIZE=1000;
int search(const int array[], int target, int numElements);
Correct Answer result=search(array, target,
numberOfElements);

Given the function definition
void something ( int a, int& b )
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
what is the output of the following code fragment that invokes
something?
(All variables are of type int.)
r = 1;
s = 2;
t = 3;
something(t, s);
cout << r << ' ' << s << ' ' << t << endl; Correct Answer 1 14 3

If a file did not open correctly, you should Correct Answer
display an error message and take some suitable action such as
exit.

Document information

Uploaded on
October 10, 2024
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Classroom
4.0
(1205)
Sold
4966
Followers
3241
Items
56174
Last sold
8 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions