Practice mode / C Language A C variable name can start with a A Option A: Number B Option B: Plus Sign (+) C Option C: Underscore D Option D: Asterisk (*) Correct answer C. Underscore Show answer Report a problem How we write and check questions
Question 01 / C Language In the call printf(“%d %d”, f(), g());, what does the C standard say about which function is called first? A Option A: g() is always called first B Option B: f() is always called first C Option C: They are always run at the same time D Option D: The order is unspecified, so either may be called first Correct answer D. The order is unspecified, so either may be called first Show answer Open question
Question 02 / C Language What is printed by this C code: printf(“%08.3f”, 3.14159);? A Option A: 00003.14 B Option B: 0003.142 C Option C: 3.142000 D Option D: 3.14159 Correct answer B. 0003.142 Show answer Open question
Question 03 / C Language Which format specifier prints a pointer value with printf()? A Option A: %p B Option B: %u C Option C: %x D Option D: %d Correct answer A. %p Show answer Open question
Question 04 / C Language In printf(“%-6d|”, 42), what does the minus sign in the format do? A Option A: It removes the field width B Option B: It left-justifies 42 within a 6-character field C Option C: It pads the number with leading zeros D Option D: It prints 42 as a negative number Correct answer B. It left-justifies 42 within a 6-character field Show answer Open question
Discussion