C Programming Quiz

C Programming Quiz

Professional Development

41 Qs

quiz-placeholder

Similar activities

Apply Quality Standards

Apply Quality Standards

Professional Development

42 Qs

Pre_Place_Batch_2027_SET_F

Pre_Place_Batch_2027_SET_F

Professional Development

40 Qs

Foundation_Batch_2025

Foundation_Batch_2025

Professional Development

40 Qs

Java Script

Java Script

9th Grade - Professional Development

39 Qs

HTML and CSS

HTML and CSS

University - Professional Development

36 Qs

LPI Linux Essentials (40 Questions)

LPI Linux Essentials (40 Questions)

Professional Development

40 Qs

SIMULASI DIGITAL - X

SIMULASI DIGITAL - X

KG - Professional Development

40 Qs

Data Preprocessing - 1

Data Preprocessing - 1

Professional Development

40 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

GIST VOICE

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this C code? #include void main() { int x=1,y=0,z=5; int a=x&&y||z++; printf("%d",z); }

6

5

0

Varies

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this C code? #include void main() { int x=1,z=3; int y=x<<3; printf("%d\n",y); }

-2147483648

Runtime Error

8

-1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output? void main() { i=0x10+010+10; printf("\nx=%x",i); }

I=34

X=22

X=34

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Int i=20; Printf(“%X”,i); What is the output?

20

15

14

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the size of the following union declaration? Union test { int x; char y; float z; };

5

4

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the size of the following union declaration? struct test { int x; char y; float z; };

4

5

6

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include int main() { int x = 1, y = 2; int z = x & y == 2; printf("%d\n", z); }

0

1

Error

Depend on compiler

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?