Search Header Logo

C Programming

Authored by Wayground Content

Computers

University

C Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the size of the following union declaration? (Assuming the size of double = 8, the size of int = 4, and the size of char = 1)

32

40

24

16

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following C code? Options: 3 2 3, 2 2 3, 3 2 2, 2 3 3

3 2 3

2 2 3

3 2 2

2 3 3

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

#include statement must be written __________

Before any scanf() or printf()

After all function definitions

At the end of the program

Only in header files

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input)

1 2

1 3

2 1

0 1

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following C code?

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following C code? Options: 6 -6 0 1, 6 -5 0 1, -6 -6 0 1, 6 -6 0 1

6 -6 0 1

6 -5 0 1

-6 -6 0 1

6 -6 0 1

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following C code?

Hi is printed 9 times

Hi is printed 8 times

Hi is printed 7 times

Hi is printed 6 times

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?