C Programming Level 1

C Programming Level 1

Professional Development

20 Qs

quiz-placeholder

Similar activities

Common Mistakes - Part H

Common Mistakes - Part H

4th Grade - Professional Development

20 Qs

El venedor

El venedor

Professional Development

15 Qs

Czas przeszły (A2)

Czas przeszły (A2)

Professional Development

20 Qs

Bank centralny

Bank centralny

Professional Development

15 Qs

Verb To Be - Affirmative Present Tense

Verb To Be - Affirmative Present Tense

KG - Professional Development

15 Qs

Gerunds and infinitives (B1/B2)

Gerunds and infinitives (B1/B2)

9th Grade - Professional Development

15 Qs

Making wishes (present past and future)

Making wishes (present past and future)

Professional Development

15 Qs

Questions & Quick Responses - Part A:A - Biographical Questions

Questions & Quick Responses - Part A:A - Biographical Questions

4th Grade - Professional Development

16 Qs

C Programming Level 1

C Programming Level 1

Assessment

Quiz

Education

Professional Development

Hard

Created by

Training MTEC

Used 5+ times

FREE Resource

20 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

7

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?