Answer:
error: incompatible types
Explanation:
Given
The attached code
Required
The output
Variable "a" is declared as float
While p is declared as a pointer to an integer variable
An error of incompatible types will be returned on line 3, <em>int *p = a;</em>
Because the variables are not the same.
To assign a to p*, we have to use type casting.
Hence, (b) is correct
Answer:
Consistency
Explanation:
Bi integrating marketing communications, we can infer that the different brands working under Excel Enterprises have the same basic design, so the marketing department can sell their features easily, without having to create different campaigns or protocols for each individual product.
This homogeneous design then turns intuitive for the user, a textbook definition of consistent design, and the tone is maintained through the different brands.
Just like when you move from Microsoft's Excel to Microsoft's Word, you know the usage of each program is different, but the layout is the same, allowing you to understand the basics of the UX (user interface) of one, by understanding the other.
Answer:
I wrote this myself, it should be working. I think this is what the instructions were looking for.
The code below should return
Squared: 1296
Mod: 0
Quadrupled: 16
Explanation:
def threeParams(squared, mod, quadruples):
array = [squared, mod, quadruples]
array[0] = squared ** 2
array[1] = mod % 5
array[2] = quadruples * 4
return array
valueArr = threeParams(36, 15, 4)
print(f"Squared: {valueArr[0]}\nMod: {valueArr[1]}\nQuadrupled: {valueArr[2]}")