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 used to create a multi-line comment in C?

2. What is the keyword used to define a macro?

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

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

5. Which of the following is a valid character constant in C?

6. Which of the following can be used to copy strings in C?

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

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

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

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

11. What does the keyword static do?

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

13. Which of the following is a fundamental element of a C program?

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

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

16. What does getch() function do?

17. Which of the following is used to define a symbolic constant in C?

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

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

20. Which of the following function declarations is valid in C?

21. Which operator is used to access the value stored at an address?

22. Which of the following is used for dynamic memory allocation?

23. Which library must be included to use malloc()?

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

25. Which function is used to find the length of a string?


 

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
error: