INTERNATIONAL INDIAN SCHOOL-DAMMAM
DEPARTMENT OF COMPUTER SCIENCE
BOYS ‘SECONDARY SECTION
Theory Questions in C++ Max. Marks : 4
Chapter-1 , chapter-2, 3&4 refer corresponding worksheets.
Chapter –5
1. Explain the following functions with examples :
i. getchar()
ii. putchar()
iii. gets()
iv. puts()
v. fflush()
chapter –6
1. What is array and why do we need to use array?
2. What is base address of an array?
3. Why array is called derived data type?
4. Why array is called static type?
5. How do u initialize integer arrays?
6. What is 2D array explain with examples.
7. What is string ?
8. How do u read strings?
9. What is ‘\0’? Why is needed?
10. What is multidimensional arrays ?
Chapter-7
1. What are functions in C++? Why is needed?
2. What is function proto type?
3. What are arguments? What are return types?
4. What is function definition and function call?
5. What is passing constants to functions?
6. What are actual and formal arguments?
7. What is cal by value and call by reference?
8. What are default arguments?
9. What is the scope of the variables ?
10. What is nested functions ?
11. How do u pass array to functions?
12. What is auto or local variables?
13. What is static variables ? What is the difference between local static and global variables ?
14. What is global variables?
15. What is the life time of the variables?
16. What is meant by visibility of variables?
17. What is function over loading ?
18. What is recursive functions ?
19. What is the use of return statement ?
20. What is the difference between bult-in functions and user –defined functions
21. What are reference variables? What is its use?
22. What is default return type of an function ?
23. Name the different types of formal parameters supported in C++
Chapter –8.
Explain the the following function with examples
Isaplha(), isdigit(), isupper(), islower(),isalnum(), tolower(), toupper(), strlen(), strcpy(), strcmp(), strrev(), fabs(), abs(), floor(), fmod(), log(), log10(), frexp(), pow(), sqrt(), sin(), cos(), tan(), atoi(), itoa() labs(), atof() .
More gothrough help file in c++
chapter-9 structures
1. What is structure ? differentiate arrays and structures ?
2. How do u access struct members
3. How do u initialize struct members
4. What is nested structure ?
5. What is the use of typedef?
6. What enum, ? explain with example.
7. What is the use of :: operator?
8. What is the use of structure specifier?
9. What is the use of arrays of structures ?
10. What is global structures ?