Sei sulla pagina 1di 3

Programming Concept Using C+ + (1103)

1. a) List the different between C programmingand C++ programming 6


b) Define variable. Explain different rules to create variable. 6
2. a) Define array. Explain multidimensionalarray with suitable example. 6
b) Define function. Explain different componentof function. 6
3. a) What is structure? Explain the syntax of structure with an example. 6
b) What is pointer? Explain different uses of pointer. 6
4. a) Explain the following. 6
i) # Define ii) # error
iii) # include
b) Write a C++ program to check given number is palindrom or not. 6
5. a) Explain the difference between while and do-while loop with suitable 6
example.
b) Explain any five strong functions in C++. 6
6. a) List the difference between structure and union. 6
b) Write a short note on inline function. 6
7. a) Explain the following. 6
i) Pass by value. ii) Pass by reference.
b) Write a short note on pointer to function. 6
8. a) Write a C++ program to find a factional of given number. 6
b) Explain relational operator in C++ 6
********
a) List and explain advantages of C++. 6
b) Explain structure of C++ program. 6

2. a) List and explain relational operators and logical operators. 6


b) Explain switch case with syntax and suitable example. 6
3. a) Explain array with an example. 6
b) What is structure? Give an example. 6

4. a) Explain inline function & recursive function. 6


b) Explain following terms 6
i) # define ii) # include
5. a) What is pointer? Explain its advantages. 6
b) What is loop? Explain do while loop with syntax and example. 6

6. a) Explain following functions 6


i) Strcpy O ii) Strcmp 0 iii) Strcat ( )
b) Write a C++ program to print factorial of given number. 6

7. a) Explain memory management operators. 6


b) Write a C++ program to check given number is prime or not. 6

8. a) Define union Explain union with syntax and example. 6 b) What is if----
else? Explain its syntax with an example. 6

1. a) What is array? Explain one and two dimensional integer array. 6


b) Write difference between C++ and old programming languages. 6
2. a) Explain pass by address method for parameter passing.
b) Explain recursive function with suitable example.
6
6
3. a) Give syntax and example of following control statement. 6
i) if... else ii) do while
b) Explain primitive datatypes of C++. 6
4. a) What is structure in C++? Give example. 6
b) Explain any three string functions. 6
5. a) What is inline function? State the advantages of inline function. 6
b) Write a program to print table of any number. 6
6. a) Define the following terms. 6
i) Pointer ii) Variable ii) Union.
b) Write a note on memory management operators. 6
7. a) Give example demonstrating the use of increment and decrement operator.
6
b) Write a C++ program to check whether the given number is a prime 6
number or not.
8. a) Explain types and scope of variables. 6
b) Write a program to find maximum of array elements.
Programming Concept Using C+ +
Programming Concept Using C+ +
1. a) Explain function with syntax and parameter passing types. 6
b) What is variable ? State rules forming of variables. Give examples. 6
2. a) List and explain the advantages of C++. 6

b) What is array ? Give & explain types of array. 6


3. a) Give difference between structure and union. 6
b) What is looping ? Explain while loop with example. 6

4. a) Write note on pointer memory management operators in C++. 6


b) List and explain types of operators also explain precedence of 6
operators.
5. 6
i) Literals Identifier iii) Keywords with
example

b) Write a program to read and store 2 matrices, calculate and 6 display


rd
their addition using 3 matrics.

c) a) Write a program using function to find sum of digits in a number 6 eg


— number = 2497 sum is = 2+4+9+7=22.

d) Discuss pre — processor directives briefly, 6

6. a) Write short note on pointer. 6

b) What is Branching ? Discuss switch — case statement. 6


7. a) Explain data types in C++.
8- Write note on recursive function with example
Data type
Recursive function in cpp eg

Potrebbero piacerti anche