Arrays
Loops
Data Types
William and Faculty
100

True or False

One array can store more than one data type

False

100

When would you use for loops over while loops?

When you know how many times it will execute!

100

True or False

unsigned data types have more numbers than signed data types

False, they have the same amount of numbers.

100

When and where is my office hour?

Wednesday 3:00 - 4:00 Oldmain 2050

200
Are arrays mutable

Yes!

200

When would you use while loops over for loops?

When you are unsure the number of times of execution!

200

True or False

a char variable has an number value

True, it has ASCII values!

200

When and where is my next SI Session?

Thursday 6:20-7:35 Old main 3110

300

What is the square bracket '[]' operator used for?

Access an element at a specific index!

300
What happens in statement 2 for (statement 1, statement 2, statement 3) {};?

Checks condition for executing the code block

300

List 5 common data types

Any of the following

int, char, float, double, bool, string, short

300

Who are your TAs? Where is the office hours located?

Butler 101E

400

True or False

Array size can be changed at run-time

False! Arrays are set at compilation and cannot be changed at run-time.

400

True or False: this code will work

int number = 1;

while (number < 10)

{

     court << number << endl;

};


False! Number never got incremented.

400

Is this a correct initialization?

char x = 'abc';

No, chars can only be a single digit.

400

Where can you find Dr. Jones in Butler Hall 

Butler Hall 323 or Hi5 Lab

500

What does "sizeof(arr);" mean?

The total size of the array in bytes

500

How many iterations will this code run for (int i = 0; i <= 10; i++) {};

11! 0 up to including 10

500

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.

500

When are the times of Dr. Jone's Office Hour?

Tuesday & Thursday, 12:30PM - 2:00PM

M
e
n
u