Shared Flashcard Set

Details

Game Development Programming
Chapter 3
17
Computer Science
10th Grade
03/18/2013

Additional Computer Science Flashcards

 


 

Cards

Term
What is a for loop?
Definition
for loops let you repeat sections of code, its for counting and moving through a sequence
Term
What is a for loop example?
Definition
for (initialization; test; action)
statement:
Term
Empty Statements in for loops
Definition
Used for initialization and action statements
Term
Nesting for Loops
Definition
Putting one loop in the other
Term
data member
Definition
a data element of an object
Term
member fuction
Definition
function of an object
Term
string
Definition
provides its own set of member functions
(object)
Term
find()
Definition
member functions searches the calling string object.
Term
erase()
Definition
removes a specified substring
Term
empty()
Definition
returns a bool value
Term
array
Definition
provides a way to work with elements of any type
Term
Why should I use string objects instead of C-style strings?
Definition
string objects have advantages over C-style strings.
Term
Why should you use multidimensional arrays?
Definition
To make working with a group of elements more intuitive.
Term
What is wrong with this code...

cout<<"\nThe sequence 'Over' begins at location ";
cout <
Definition
cout<<"\nThe sequence 'Over' begins at location "; cout <
Term
It's possible to simply declare a multidimensional array without initializing?

True or False
Definition
True
Term
Is a while loop better than a for loop?
Definition
Neither is better just use what best fits your needs.
Term
I can use the =+ operator to concatenate string.

Fix what is needed
Definition
+=
Supporting users have an ad free experience!