Can someone help me with my C PROGRAMMING study guide... 1. C appends the low-va
ID: 3690678 • Letter: C
Question
Can someone help me with my C PROGRAMMING study guide...
1. C appends the low-value hexadecimal byte ____ as the end-of-file (EOF) sentinel when a file is closed.
a. 0x00
b. 0x01
c. 0x99
d. 0xFF
2. ____ is not a definition statement.
a. struct {int month; int day; int year;} birth;
b. struct {int month; int day; int year;} birth, current;
c. struct Date {int month; int day; int year;};
d. struct Date {int month; int day; int year;} birth;
3. The ____ function reads a set of characters up to either a blank space or a newline character.
a. Readline()
b. Gets()
c. Scanf()
d. Putchar()
4. All ____ arrays are created and destroyed each time the function they are local to is called and completes its execution.
a. Global
b. Static
c. Auto
d. Extern
5. A(n) ____, is used to store and process a set of values, all of the same data type, that forms a logical group.
a. Data structure
b. Scalar variable
c. Array
d. Atomic variable
6. ____ creates a new file and makes the file available for output; if a file exists with the same name, the old file is erased.
a. fileOut = fopen("prices.dat","r");
b. fileOut = fopen("prices.dat","w");
c. fileOut = fopen("prices.dat","a");
d. fileOut = fopen("prices.dat","b");
Explanation / Answer
Answer:
1. None of the above
2. c) struct Date {int month; int day; int year;};
3. None of the above.
4) c) Auto
5) c) Array
6) d) fileOut = fopen("prices.dat","b");
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.