C-Introduction

C-Introduction

1st Grade

23 Qs

quiz-placeholder

Similar activities

Coding Basics

Coding Basics

12th Grade - University

20 Qs

Conditionals(Zero & First & Second & Third)

Conditionals(Zero & First & Second & Third)

10th Grade

20 Qs

hard

hard

6th Grade

18 Qs

Personal Pronounce

Personal Pronounce

2nd - 5th Grade

20 Qs

C Programming test

C Programming test

University

23 Qs

Byte the panel game

Byte the panel game

University

20 Qs

FOR and WHILE loop in Python

FOR and WHILE loop in Python

9th - 12th Grade

18 Qs

ICFES Test

ICFES Test

10th - 11th Grade

20 Qs

C-Introduction

C-Introduction

Assessment

Quiz

English

1st Grade

Hard

Created by

Avani Khokhariya

Used 1+ 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?