100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COP 3330 FSU Exam 1 Graded A+

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
12-12-2025
Written in
2025/2026

COP 3330 FSU Exam 1 Graded A+

Institution
COP 3330
Course
COP 3330









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
COP 3330
Course
COP 3330

Document information

Uploaded on
December 12, 2025
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COP 3330 FSU Exam 1 Graded A+
Consider the following function prototype:

void Funky (const int * a, size_t size);

and suppose your have a client program with an array declared as follows:

int intArray[20];

a)
The call
Funky(intArray,10);
is not allowed to change the value of intArray.
b)
The call
Funky(intArray,10);
will likely result in a compile error.
c)
The call
Funky(intArray,20)
is allowed to change the value intArray[20].
d)
The call
Funky(intArray,10)
is not allowed to change the value of intArray[5]. - ANSWER-The call
Funky(intArray,10)
is not allowed to change the value of intArray[5]

Consider the following program:

int F(int a, int& b)
{
a = a - 1;
b = b - 1;
return a + b;
}

int main()
{
int x,y,z;
x = 2; y = 3; z = 4;
std::cout << "x = " << x << '\n'
<< "y = " << y << '\n'
<< "z = " << z << '\n';

, }

What is the screen output?

a)
x=2
y=3
z=4
x=2
y=3
z=4
b)
x=1
y=2
z=3
x=2
y=2
z=5
c)
x=2
y=3
z=4
x=2
y=2
z=5
d)
x=2
y=3
z=4
x=2
y=2
z = 3 - ANSWER-x = 2
y=3
z=4
x=2
y=2
z=3

Discuss why an init is preferred over initialization inside the constructor body. -
ANSWER-Efficiency
Clarity
Universality
Good Habits

Given the class definition:

Get to know the seller

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.
CLOUND Exam
View profile
Follow You need to be logged in order to follow users or courses
Sold
601
Member since
2 year
Number of followers
389
Documents
10885
Last sold
1 week ago
PROF MM

HELLO WELCOME TO THIS PAGE WHERE YOU WILL FIND ALL EXAMS ,STUDY GUIDE ,CASE, TESTBANKS AND ANY OTHER STUDY MATERIALS,

3.9

116 reviews

5
58
4
16
3
29
2
3
1
10

Recently viewed by you

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

Frequently asked questions