Search Header Logo

C-Introduction

Authored by Avani Khokhariya

English

1st Grade

Used 3+ times

C-Introduction
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h>

int main() {

int i = 17;

char c = 'c'; /* ascii value is 99 */

int sum; sum = i + c;

printf("Value of sum : %d\n", sum); }

116

96

98

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() {

int sum = 17, count = 5;

double mean;

mean = sum / count;

printf("Value of mean: %f\n", mean); }

3.0000

3.4000

3

3.500

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() {

int sum = 17, count = 5;

double mean;

mean = (double) sum / count;

printf("Value of mean: %f\n", mean); }

3.4000

3.000

3

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main() {

int x = 1;

x = x++ + x++ + ++x;

printf("%d", x);

return 0;

}

7

8

6

5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main() {

int x = 1,y;

y = x++ + x++ + ++x;

printf("%d %d",y, x);

return 0;

}

6 , 6

6, 4

4,6

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main() {

int i;

for(i = 0; i < 5; i++) {

if(i % 2 == 0)

continue;

printf("%d", i);

}

return 0;

}

1 2 3

1 2

1 3

1

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main() {

int x = 3, y = 4;

int z = (x > y) ? x++ : y++;

printf("%d %d %d", x, y, z);

return 0;

}

3 5 4

4 5 4

4 4 3

3 4 3

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?