Computer Elements of “C” Test Online

Important Computer Elements of “C” Question and Answer

Total Questions: 50
Time Allowed: 25 Minutes
Total Marks: 50
How to Attempt Test: Please choose the right Option in MCQ-type question.
Test Helpful For: ECAT Entry Test
Computer Online Test
Interview Questions about Computer
All Universities Entrance Test
Recruitments Tests

Elements of “C” Practice Test Online With Explanation

 0%

Page 1 of 2

1. Which of the following is not a keyword in C?

2. Which is the correct declaration of a function in C?

3. Which of the following is used to define a block of code in C?

4. Which of the following is used to terminate a C program?

5. What will the statement int a = 10, b = 3; printf("%d", a % b); print?

6. What is the function of return 0; in main()?

7. Which keyword is used to define a user-defined data type alias?

8. Which of the following functions is used to concatenate two strings?

9. What is the correct syntax for a ternary operator in C?

10. Which symbol is used to begin a preprocessor directive?

11. Which header file includes the strlen() function?

12. What does the keyword extern indicate?

13. Which operator is used to increment a value by 1?

14. What is the output of printf("%d", 3 == 3);?

15. Which of the following is a valid arithmetic operator in C?

16. Which of the following is a compound assignment operator?

17. Which of the following is the correct syntax to declare a string?

18. Which of these is not a storage class in C?

19. Which operator is used to compare if two values are not equal?

20. What is the correct way to initialize a pointer to NULL?

21. Which of the following is an example of a looping construct?

22. Which keyword is used to define a structure in C?

23. What is the output of: printf("%d", sizeof(5.5));?

24. Which of these is a bitwise operator?

25. Which of these is a decision-making structure in C?


 

Mustansar Khan

Hey Exam Warriors! I'm Mustansar Khan, your ally in conquering tests. Uncover strategies, real-time experiences, and expert advice to turn your study sessions into victories. Let's gear up for success!

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button