Question 115 pts Which of the following is the correct operator to compare two v
ID: 3911120 • Letter: Q
Question
Question 115 pts
Which of the following is the correct operator to compare two variables?
!=
:=
==
Equal
=
Flag this Question
Question 125 pts
Which of the following below is/are valid C identification? Select all that apply
_one
var
int
main
char
Flag this Question
Question 135 pts
Which of the following below is/are valid C keywords? Select all that apply
double
String
Integer
int
Double
Flag this Question
Question 145 pts
What is the output from this program?
#include<stdio.h>
int main()
{
int i;
for(i=1; i<=5; i++)
{
if ( (i % 2) != 0 ) {
printf("%d", i);
}
}
return 0;
}
Compile error
24
135
An infinite loop
1234
Flag this Question
Question 155 pts
What is the output from this program?
int main()
{
int i = 0;
while ( i < 5 ) {
printf(“*”);
}
return 0;
}
Compile error
****
An infinite loop
*****
Flag this Question
Question 165 pts
Which of the following can be used as a case label in a switch-case statement? Please select all that apply.
Assume that FIVE is a constant int and five is an int.
#define FIVE 5
int five = 5;
5
FIVE + 1
five
FIVE
five++
Explanation / Answer
Which of the following is the correct operator to compare two variables?
Answer:
==
Which of the following below is/are valid C keywords
Answer:
double
int
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.