Generate Quiz 6A2727FFD27DE

You have 30 minutes to complete the quiz


Generate Quiz 6A2727FFD27DE

1 / 10

C

#include 

 

int main() {

float f = 3.14;

int i = (int) f;

char c = (char) i;

 

printf(“f = %.2f, i = %d, c = %c\n”, f, i, c);

return 0;

}

What is the output of this code?

2 / 10

Which of the following is a valid initializing a variable statement?

3 / 10

Which of the following are used by the compiler as an aid to compile the program?

4 / 10

C

#include 

 

int main() {

int x = 10;

while (x–) {

if (x == 5) {

x -= 2;

}

printf(“%d “, x);

}

return 0;

}

 

What is the output of this code?

5 / 10

How many types of constants are there?

6 / 10

Which of the following is a strong indication that C is a strongly typed language?

7 / 10

The variables are created in which of the following?

8 / 10

C

#include 

 

int main() {

int x = 2;

printf(“%d %d %d\n”, x, x–, x);

return 0;

}

What is the output of this code?

9 / 10

What will be the output of the following code?(Arithmetic Operator)

C

int x = 9;

x = x % 4;

printf (“\n %d is result “, x);

.

10 / 10

C

#include

int main() {

int x = 0;

x = x– – –x – x–;

printf(“x = %d\n”, x);

return 0;

}

 

What is the output of this code?

Your score is

0%

PLS Academy App!

Learn Anytime, Anywhere

🔥HURRY! Big Sale 50% OFF

Protected