My Report

C Basic Online Test – 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. C99 standard guarantees uniqueness of ___________ characters for external names.

2. Which of the following is not a valid variable name declaration?

3. Why do variable names beginning with the underscore is not encouraged?

4. Variable name resolution (number of significant characters for the uniqueness of variable) depends on ___________

5. Which of the following is not a valid variable name declaration?

6. Which of the following is true for variable names in C?

7. Which of the following is not a valid C variable name?

8. What will be the output of the following C code?

    #include <stdio.h>
    void main()
    {
        int x = 1, y = 0, z = 5;
        int a = x && y || z++;
        printf("%d", z);
    } 

9. All keywords in C are in ____________

10. C99 standard guarantees uniqueness of __________ characters for internal names.


 

Start practicing “1000 MCQs on C”, and once you are ready, you can take tests on all topics by attempting our “C Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.