C Programming

C Programming

University

20 Qs

quiz-placeholder

Similar activities

Basic C++ Programming Questions

Basic C++ Programming Questions

University

20 Qs

EXCEPTION HANDLING IN PYTHON

EXCEPTION HANDLING IN PYTHON

University

22 Qs

Java Quiz based on array

Java Quiz based on array

University

15 Qs

Python Programming Quiz

Python Programming Quiz

9th Grade - University

20 Qs

Pointers in C

Pointers in C

University

24 Qs

Coding and Debugging

Coding and Debugging

University

15 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

BS TEST2

BS TEST2

University

20 Qs

C Programming

C Programming

Assessment

Quiz

Computers

University

Hard

Created by

Wayground Content

FREE Resource

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

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?