Data types and type modifiers — C++ MCQs

20
Score: 0
Attempted: 0/20
1. Which of the following is a fundamental data type in C++?



2. Which type modifier can be used to increase the size of an integer?



3. Which of the following is a floating-point data type in C++?



4. What is the size of a bool data type in most C++ implementations?



5. Which of the following is not a valid type modifier in C++?



6. Which type would you use to store large positive integers only?



7. What is the default type of a floating-point literal like 3.14 in C++?



8. Which of the following is a modifier used with char in C++?



9. Which type is used to store very large floating-point numbers in C++?



10. Which of the following is not a valid data type in C++?



11. What is the size of the int data type in most C++ implementations?



12. How many bytes does a char occupy in C++?



13. What is the typical size of a float in C++?



14. How many bytes does a double usually occupy in C++?



15. What is the size of a long in most 64-bit systems?



16. How many bytes does a bool data type occupy in C++?



17. What is the typical size of a short int in C++?



18. How many bytes does a long double occupy in most compilers?



19. What is the size of an unsigned int in most 64-bit C++ systems?



20. How many bytes does a long long int occupy in C++?



Contents Copyrights Reserved By T4Tutorials