C Programming Quiz

C Programming Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Quiz - Pointers and Callby value & Reference

Quiz - Pointers and Callby value & Reference

Professional Development

15 Qs

C programming_Shivank

C programming_Shivank

Professional Development

20 Qs

Code X Trade

Code X Trade

Professional Development

15 Qs

Quiz on File, Memory Alloc, Preprocessor, Structure & Union

Quiz on File, Memory Alloc, Preprocessor, Structure & Union

Professional Development

20 Qs

C CODE MASTER B

C CODE MASTER B

Professional Development

15 Qs

BrightChamps Technical Round - C language

BrightChamps Technical Round - C language

Professional Development

15 Qs

Java Basics

Java Basics

Professional Development

25 Qs

PSC Quiz1

PSC Quiz1

University - Professional Development

20 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Lavanya J

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of the following program? #include int main(){ int x; x=10,20,30; printf("%d",x); return 0; }

10

20

30

0

Compilation error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of following program? #include int main(){ int a = 320; char *ptr; ptr =( char *)&a; printf("%d ",*ptr); return 0; }

2

320

64

Compilation error

None of above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output when you will execute following c code? #include int main(){ char arr[11]="The African Queen"; printf("%s",arr); return 0; }

The African Queen

The

The African

Compilation error

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of the following c program? #include int main(){ int _=5; int __=10; int ___; ___=_+__; printf("%i",___); return 0; }

5

10

15

Compilation error

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of the following program? #include int main(){ float a=0.7; if(a<0.7){ printf("C"); } else{ printf("C++"); } return 0; }

C

C++

NULL

Compilation error

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of the following program? #include int main(){ int a=2,b=7,c=10; c=a==b; printf("%d",c); return 0; }

0

1

7

2

Compilation error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of the following c program? #include int main(){ int max-val=100; int min-val=10; int avg-val; avg-val = max-val + min-val / 2; printf("%d",avg-val); return 0; }

55

105

60

Compilation error

None of these

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?