logo

Crowdly

Browser

Add to Chrome

Course 1061

Looking for Course 1061 test answers and solutions? Browse our comprehensive collection of verified answers for Course 1061 at distance.digipen.edu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which expression(s) clear(s) bit 5 (where bit 0 is LSB) of variable x?  (select only one)

0%
100%
0%
0%
View this question

union U { 

    short s; 

    char c[2]; 

} u = {0xA1B2}; 

On a little-endian system, what is the value of u.c[0] in hexadecimal?

100%
0%
View this question

You want to check if bit 4 (where bit 0 is LSB) is set in a variable systemFlags. Complete the single C++ expression that evaluates to true if bit 4 is set: 

bool isSet = systemFlags Answer Question 7;

View this question

Describe one practical use case for a union in games or robot programming: 

View this question

True or False: After writing to one member of a union, you can safely read from any other member without issues.

0%
100%
View this question

To set bit 3 of a variable (where bit 0 is the least significant bit), which mask would you use with the OR ( | ) operator?

100%
0%
0%
0%
View this question

What is the value of x after:    x = 12 << 2;

0%
100%
0%
0%
View this question

union Data { 

    int i; 

    float f; 

    double d; 

}; 

If sizeof(double) == 8, what is sizeof(Data)?

View this question

Write the result of:  (prefer hexadecimal)

0xF0 & 0x0F

View this question

If a little-endian system stores the 32-bit integer 0xA1B2C3D4 in memory, what byte appears at the lowest memory address?

0%
0%
0%
100%
View this question

Want instant access to all verified answers on distance.digipen.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome