1. int x = 328 , y = 6; printf (\"%c\" , x / y ); What is the output? A) 6 B) 54
ID: 3651048 • Letter: 1
Question
1.int x = 328 , y = 6; printf ("%c" , x / y ); What is the output?
A) 6
B) 54
C) 54.666666
D) 55
2.
An error that causes the program to give an unexpected answer is a
A) Logical Error
B) Runtime
C) Poor Programming Practice Error
D) Syntax Error
3.
The ____ sign is a signal to a C preprocessor.
A) !
B) &
C) ;
D) #
4.
On most computer systems characters read by the keyboard are stored in a temporary holding area called a ____ immediately after they are pressed.
A) register
B) buffer
C) stack
D) RAM
5.
The expression sum = sum + 10 can be written as ____.
A) sum =+ 10
B) sum += 10
C) sum = sum ++ 10
D) sum ++ 10
6.
The logical OR operator is ____.
A) ||
B) &&
C) !
D) %%
7.
Which of the following operators has the highest precedence?
A) !
B) *
C) &&
D) ||
8.
What will the following program print on screen?
int tenure = -5;
if (tenure + 5)
printf("Congratulations!");
else
printf("Sorry");
A) Congratulations!
B) Sorry
C) Runtime error.
D) Nothing; the program will not compile.
9.
Including one or more if-else statements within an if or if-else statement is referred to as a ____ if statement.
A) compound
B) nested
C) multiway
D) short-circuit
10.
In a switch statement, the keyword ____ identifies the values that will be compared to the value of the switch expression.
A) if
B) break
C) case
D) default
Explanation / Answer
it's me
please rate - thanks
int x = 328 , y = 6; printf ("%c" , x / y ); What is the output?
A) 6 in integer 328/6 = 54 54 is the ascii value of 6
B) 54
C) 54.666666
D) 55
2.
An error that causes the program to give an unexpected answer is a
A) Logical Error
B) Runtime
C) Poor Programming Practice Error
D) Syntax Error
3.
The ____ sign is a signal to a C preprocessor.
A) !
B) &
C) ;
D) #
4.
On most computer systems characters read by the keyboard are stored in a temporary holding area called a ____ immediately after they are pressed.
A) register
B) buffer
C) stack
D) RAM
5.
The expression sum = sum + 10 can be written as ____.
A) sum =+ 10
B) sum += 10
C) sum = sum ++ 10
D) sum ++ 10
6.
The logical OR operator is ____.
A) ||
B) &&
C) !
D) %%
7.
Which of the following operators has the highest precedence?
A) !
B) *
C) &&
D) ||
8.
What will the following program print on screen?
int tenure = -5;
if (tenure + 5) -5 + 5 = 0, 0 is false, so the false clause is printed
printf("Congratulations!");
else
printf("Sorry");
A) Congratulations!
B) Sorry
C) Runtime error.
D) Nothing; the program will not compile.
9.
Including one or more if-else statements within an if or if-else statement is referred to as a ____ if statement.
A) compound
B) nested
C) multiway
D) short-circuit
10.
In a switch statement, the keyword ____ identifies the values that will be compared to the value of the switch expression.
A) if
B) break
C) case
D) default
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.