True or False
One array can store more than one data type
False
When would you use for loops over while loops?
When you know how many times it will execute!
True or False
unsigned data types have more numbers than signed data types
False, they have the same amount of numbers.
When and where is my office hour?
Wednesday 3:00 - 4:00 Oldmain 2050
Yes!
When would you use while loops over for loops?
When you are unsure the number of times of execution!
True or False
a char variable has an number value
True, it has ASCII values!
When and where is my next SI Session?
Thursday 6:20-7:35 Old main 3110
What is the square bracket '[]' operator used for?
Access an element at a specific index!
Checks condition for executing the code block
List 5 common data types
Any of the following
int, char, float, double, bool, string, short
Who are your TAs? Where is the office hours located?
Butler 101E
True or False
Array size can be changed at run-time
False! Arrays are set at compilation and cannot be changed at run-time.
True or False: this code will work
int number = 1;
while (number < 10)
{
court << number << endl;
};
False! Number never got incremented.
Is this a correct initialization?
char x = 'abc';
No, chars can only be a single digit.
Where can you find Dr. Jones in Butler Hall
Butler Hall 323 or Hi5 Lab
What does "sizeof(arr);" mean?
The total size of the array in bytes
How many iterations will this code run for (int i = 0; i <= 10; i++) {};
11! 0 up to including 10
Float vs Double whats the difference?
Floats take up less memory and space but are less accurate than doubles
Doubles are way more accurate than floats but take more memory and space.
When are the times of Dr. Jone's Office Hour?
Tuesday & Thursday, 12:30PM - 2:00PM