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

CSCI 1103 Final Exam Study Guide Questions and Answers| Latest Update

Rating
5.0
(1)
Sold
-
Pages
5
Grade
A+
Uploaded on
22-03-2025
Written in
2024/2025

CSCI 1103 Final Exam Study Guide Questions and Answers| Latest Update

Institution
CSCI 1103
Course
CSCI 1103









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

Written for

Institution
CSCI 1103
Course
CSCI 1103

Document information

Uploaded on
March 22, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSCI 1103 Final Exam Study Guide Questions
and Answers| Latest Update

arrays ✔️✔️are blocks of contiguous memory which all contain the same type of data and which
we access via subscript or numeric index (zero-based) - arrays of intrinsic data types are not
initialized therefore we have to write the code to initialize them when we use them - arrays of
objects have each item in the array initially set to NULL



there are two types of decision-making structures in C/C++ ✔️✔️if statements are for true/false
decision making and switch - case statements are for multiple choice based on integer or
enumerated values



"if" statements are... ✔️✔️for true/false decision making



switch-case statements are... ✔️✔️for multiple choice based on integer or enumerated values


we create new classes either through ____________ or through ________________
✔️✔️inheritance or composition. For example: our Hand and Deck classes are composed of other
classes (arrays of Cards) whereas our Point3D class inherited all the capabilities of the Point2D
class and added the necessary bits to add a third dimension



in the HighScore class we made it so that each HighScore could... ✔️✔️compare itself to another
HighScore and return an integer value which indicated less than (negative), equal to (zero), or
greater than (positive)



in a class the constructor is the only function which has... ✔️✔️no return type and is named
EXACTLY like the class - the constructor allows us to more easily create new objects by passing
default parameters to our newly created objects - Point2D spawn( 45, 65 ); for example

, we use access modifiers to... ✔️✔️control who can see and use different parts of our classes -
private means only our class code can see or use the variables or functions while public means
that those variables and functions are available to other programs which use our classes as well



encapsulation ✔️✔️is the term applied to the idea that a class should be fully self-contained
(encapsulated within itself) - it should have all of the variables and functions it needs for itself



we use the "this" keyword when writing classes to ✔️✔️allow class functions to access the
specific memory variables of a member of that class (Cole's Hand would be able to access his
data while Haley's Hand could only access her specific data)



Why include iostream? ✔️✔️uses the objects cin and cout for sending data to and from the
console



Why include fstream? ✔️✔️File stream: allows us to use both ofstream and ifstream which
means it can create files, write information to files, and read information from files.



Why use sstream? ✔️✔️C++ String Streams. The stringstream, ostringstream, and istringstream
objects are used for input and output to a string. They behave in a manner similar to fstream,
ofstream and ifstream objects.



Why use cstdlib? ✔️✔️Has randomization functions



Why use the ctime library? ✔️✔️Has time function to ask CPU what current time is. Useful for
our random number program.



Why use the cmath library? ✔️✔️Has all math functions like sin, cos, sqrt



classes are... ✔️✔️definitions of a group of like things called objects (abstract constructs)

Reviews from verified buyers

Showing all reviews
5 days ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
Copilot Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
21
Member since
1 year
Number of followers
0
Documents
4415
Last sold
1 week ago
A+ GRADES

ON THIS PAGE YOU WILL FIND VERIFIED STUDY MATERIALS TO BOOST YOUR CAREERS. (EXAMS, STUDY GUIDES, TEST BANKS, PRACTICE TEST QUESTIONS, TEXT BOOKS & CLASS NOTES FOR ALL COURSES) LETS WORK SMART TO EXCEL, WELCOME!!!

4.9

8 reviews

5
7
4
1
3
0
2
0
1
0

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