0% found this document useful (0 votes)
19 views3 pages

Question Bank

The document is a comprehensive question bank for C++ programming, organized by marks from 1 to 5. It covers fundamental concepts such as recursion, structures, arrays, functions, loops, and operators, along with practical programming tasks. Each section includes a variety of questions aimed at assessing knowledge and understanding of C++ programming principles.

Uploaded by

rasnesiddesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Question Bank

The document is a comprehensive question bank for C++ programming, organized by marks from 1 to 5. It covers fundamental concepts such as recursion, structures, arrays, functions, loops, and operators, along with practical programming tasks. Each section includes a variety of questions aimed at assessing knowledge and understanding of C++ programming principles.

Uploaded by

rasnesiddesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Question Bank

C++
Mark 1:
1. What is recursion?
2. What is a structure?
3. What is an array in C++?
4. What is an inline function?
5. What is C++?
6. What is a header file in C++?
7. What is the syntax of a switch statement?
8. What is Variable?
9. What is an array?
10. What is Constant?
11. Enlist out the decision control structures.
12. Define operator.
13. Define Keyword.
14. What is a reference variable?
15. What is recursion?
16. What is a Pointer?
17. Define address variable.
18. Enlist out the looping structures.
19. What is union?
20. What is String?
21. What is a friend function?
22. What is the difference between a structure and union in C++?
23. What is a structure?
24. What is an array in C++?
25. Who is an inventor of C++?
26. What is initial name of C++?
27. Define variable in C++?
28. Define comments in C++.
29. Define Identifier in C++.
30. Define keywords in C++.
31. Define Operator in C++.
32. List any two types of operators in C++.
33. Define comments in C++.
34. Define operator precedence in C++.

Mark 2:
1. What is the difference between a for loop and do-while loop?
2. What is relational operators?
3. What is loop? Enlist the loops in C++.
4. Explain any two advantages of C++.
5. Define following terms: i) identifier ii) keywords.
6. What is control statement? Enlist the control statement in C++.
7. What is inline function? Give syntax to declare function as inline.
8. What is the use of switch case statement, give its syntax.
9. Explain inline function with example.
10. What is do-while loop, give its syntax.
11. Define following terms: i) #include ii) #error.
12. What is the tokens in C++? Give example.
13. How do you declare a structure in C++?
14. Define following terms: i) Tokens ii) Identifiers.
15. Explain following terms: i) #include ii) #define.
16. Differentiate between identifiers and variables in C++.
17. Differentiate between identifiers and keywords in C++.
18. Explain the concept of operator precedence with an example.
19. List the different types of tokens in C++.
20. What are keywords in C++? Provide examples.

Marks 3:
1. Explain the concept of pointer to function in C++.
2. Explain the use of memory management operators (new and delete).
3. What does the #error directive do in C++?
4. Write a program to find out factorial of a given number.
5. Explain function components in short.
6. Define any three string functions with their uses.
7. Explain call by address with an example.
8. Write a program to print Fibonacci series up to n terms.
9. Define any three string functions with their uses.
10. Compare unary and binary operators with examples.
11. Discuss the purpose of operator associativity in C++.
12. Explain the types of tokens in C++ with suitable examples.
13. Write a program that uses logical operators in C++.

Marks 4:
1. What is the use of strlen() function in C++? Give an example.
2. What is pass by reference? Give a suitable example.
3. What is parameter passing? Explain call by reference with an example.
4. Write a program to print the addition and average of array elements.
5. Write a program to find out the largest element between array elements.
6. Define parameter passing? Explain call by value with an example.
7. Discuss the advantages of object-oriented programming in C++.
8. Write a program to demonstrate the use of arithmetic operators.
9. Explain operator precedence and associativity with suitable examples.
10. Discuss the different types of operators in C++ with examples.
11. Explain the role of constants and their usage in C++ programming
Marks 5:
1. Explain the difference between structures and union in C++.
2. Explain the advantages of C++ over other programming languages.
3. State the difference between while and do-while loop.
4. What is string? Explain array of strings with an example.
5. Explain the advantages of C++ in brief.
6. Write difference between structure and union.
7. Explain the types of operators in c++ with examples.
8. Discuss the advantages of C++ in details.
9. State the difference between C++ and C in details.
10. Discuss the different types of loops in C++ with examples.
11. Explain the concept of arrays and their types in detail with examples.

You might also like