• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

CSCI 240 Final Test Questions with Verified Correct Answers

Document preview thumbnail
Preview 2 out of 6 pages

CSCI 240 Final Test Questions with Verified Correct Answers

Content preview

CSCI 240 Final Test Questions with Verified
Correct Answers
an instance of a class is known as a/an

object

The various string functions that were discussed in lecture (strcpy, strcmp, etc...) are

contained in the _______ library

cstring

T/F

It is legal and acceptable to have two local variables in two different functions with the

same name and same datatype

True

What values are contained in array ar?

int ar[10] = { 2, 4, 6, 8, 10} ;

2 4 6 8 10 0 0 0 0 0

T/F

A function prototype is place before int main()

True

void fn( double &, double &)

double var1, var2



What is one possible calling statement for the fn function, using var1 and var2

fn (var1, var2);

, The two types of access methods that were discussed in class are _____ and _____

methods.

set and get

In an if/else statement, the code that follows the else statement is executed if the

condition is _______

false

double x = 3.1415, y = 9.8765;

double &ref = x;

ref = y;

what does the third line do?

Assign 9.8765 to x

what will the following for loop display?



int k;



for (k = 2, k <4, k++)

cout << k;

4

T/F

int array [] is a valid array declaration

false

Document information

Uploaded on
August 26, 2026
Number of pages
6
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

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.
KenAli
2.6
(18)
Sold
114
Followers
5
Items
23937
Last sold
6 days 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