Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 1 The following statements are equivalent: count = count + 1 ; count +=

ID: 3555363 • Letter: Q

Question

  

QUESTION 1

The following statements are equivalent:

count = count + 1 ;
count += 1;

True

False

5 points   

QUESTION 2

printf("%.3lf ", x); will output the value of x with a precision of 3 decimal digits, as long as x is double

True

False

5 points   

QUESTION 3

A "Prompt" is a message that tells the user what the program is expecting them to enter.

True

False

5 points   

QUESTION 4

The symbol % in an arithmetic expression has the same precedence as multiplication

True

False

5 points   

QUESTION 5

The symbol % in an arithmetic expression means multiplication

True

False

5 points   

QUESTION 6

A variable in C does not need a data type

True

False

5 points   

QUESTION 7

Given:
int a = 5, b = 4;
int c = a + b;

which of these is valid C code for printing the following message?


Sum is 9

printf("Sum is ", a + b);

printf("Sum is %c");

printf("Sum is %i ", c);

printf("Sum is ",%i, c );

printf("Sum is ", a + b);

printf("Sum is %c");

printf("Sum is %i ", c);

printf("Sum is ",%i, c );

Explanation / Answer

1 True
2. True
3. True
4. False
5. False
6. False
7. printf("Sum is %i ", c);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote