C-Introduction

C-Introduction

1st Grade

23 Qs

quiz-placeholder

Similar activities

Unit 1 Vocabulary - Decisions, Decisions

Unit 1 Vocabulary - Decisions, Decisions

7th Grade

19 Qs

ayden quarantine spelling quiz

ayden quarantine spelling quiz

4th Grade

19 Qs

Colouring in Paint

Colouring in Paint

1st Grade

19 Qs

การเขียนโปรแกรมภาษาซี (C Languang)

การเขียนโปรแกรมภาษาซี (C Languang)

1st Grade

20 Qs

Java Programming Quiz

Java Programming Quiz

12th Grade - University

20 Qs

Advanced

Advanced

University

18 Qs

C Programming Quiz

C Programming Quiz

12th Grade

20 Qs

Banks and Loans

Banks and Loans

University

18 Qs

C-Introduction

C-Introduction

Assessment

Quiz

English

1st Grade

Medium

Created by

Avani Khokhariya

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?