MCQs to Test Your       C Programming       Skills

10

A. *a + 3  B. *(a + 3)  C. (a + 3)  D. &(a + 3)

1. How is the 3rd element in an array accessed based on pointer notation?

Check out the answer here!

2. What does the following declaration indicate? int x: 8;

Check out the answer here!

A. x stores a value of 8 B. x is an 8-bit integer  C. Both A and B  D. None of the above

3. Which of the following is the proper syntax for declaring macros in C?

Check out the answer here!

A. *a + 3  B. *(a + 3)  C. (a + 3)  D. &(a + 3)

4. What is the size of the int data type (in bytes) in C?

A. 4  B. 8  C. 2  D. 1

Check out the answer here!

5. If p is an integer pointer with a value of 1000, then what will the value of p + 5 be?

A. 1020  B. 1005  C. 1004  D. 1010

Check out the answer here!

6. In which of the following languages is function overloading not possible?

Check out the answer here!

A. C  B. C++  C. Java  D. Python

7. What is the return type of the fopen() function in C?

Check out the answer here!

A. Pointer to a FILE object  B. Pointer to an integer  C. An integer  D. None of the above

8. How to find the length of an array in C?

Check out the answer here!

A. sizeof(a)  B. sizeof(a[0])  C. sizeof(a) / sizeof(a[0])  D. sizeof(a) * sizeof(a[0])

9. Which of the following is not a storage class specifier in C?

Check out the answer here!

A. volatile  B. extern  C. typedef  D. static

A. Stack  B. Queue  C. Deque  D. Trees

Check out the answer here!

10. Which data structure is used to handle recursion in C?

Are you  prepared to assess C Programming Skills?

Demonstrate your expertise by taking our quiz. Simply click on the ""Try it now"" button to commence.  Best of luck!

Enhance your C Programming Skills with Scaler!

Sign up for Scaler's free masterclasses and events to learn about the latest trends in the IT industry and become a pro.  Don't hesitate any longer, register today!