PGDCA- Programming Using C & C++

What is C?

What is data type? Explain different data type available in c.

Write different types of data types used in c.

What are data types in “C” language? Explain.

Write a program in c for finding the list of even & odd number upto 100 by using while & do-while control structure.

How many bites are occupied by character, integer and long integer constants in memory? Find maximum possible value of integer that can be stored in memory.

WAP in c to find factorial of a given number using recursion.

What is operator? Explain the difference types of operator in c.

What is the size of double data type?

Compare x=5 and x==5.

Define polymorphism.

What is array? Explain there types and write c program to enter and display one dimensional array having size 10.

Write a program to print a table of given number.

WAP in c to find the given number is even or odd.

What are the different types of qualifiers in C language? Explain.

What are the different types of operators in c language? Explain.

Explain logical operator in c.

 

What are the utilities of relational operators? Explain with example using relational operator in an “if” statement?

 

What is advantage of conditional operators?

 

What do you understand by. precedence of operators & their associativity?Explain with example.

 

Or

 

What do you understand by operator precedence ? Explain the associativity of Unary operators.

 

Explain the terms “Operator” and “Expression” with the help of example

 

Or

 

How operators and expressions play their role in’C’ language? Explain types of expressions with suitable examples.

 

What is the difference between operators and expressions? Explain with example.

 

What is an identifier and what are the rules for naming them?

 

Or

 

What are identifiers and keywords? Give examples to explain.

 

What do you understand by variables and constants? Explain with example.

Or

 

What is variable? Explain the constant, qualifier, operators and expressions.

 

What are different escape sequence characters.

 

Explain the use of “scanf” and “printf” in ‘C’language with format specifiers.

Write short notes on format specifiers.

 

Explain the storage class specifiers, auto, static, external and register in ‘C’ language.

 

Or

 

Explain our storage class of ‘C language with proper exanmples.

 

List out header-files which can be included in a ‘C program. Why are they included ?

 

What are pre-processors ? List out pre-processor directives of c language.

 

List the control statement in C.

Or

 

Explain nested if else, switch-case structure with suitable example.

Or

What do you understand by control structure? Explain various control sta

in’C language.

 

Short note on compound statement.

 

Explain the following statements with example:

(a) Control statements

(b) Conditional statements

(c) Compound statements

 

Explain decision control type of statements in ‘C’ language with examples.

 

Explain the loop control structure.

 

Explain the syntax of switch case statements. Write a menu driven ‘C” program using switch case to take 2 integers as input and print the sum, difference or

product depending up on the choice provided by thé user.

 

What are the utilities of “switch” statements? Writea programn that demonstrates the use of “switch” statement.

 

Explain the significance of the “break” statement in the “switch-case” construct. What would result in its absence?

Difference between switch and multiple if statements with suitable example.

Explain break and continue statement with suitable example.

 

What is the difference between break and continue statement ? Explain with syntax.

Write format of do while control statement in C. What is the different between while and do-while structure.

 

Differentiate between “while” and “do-while” statement and write a program in”C” language to check for a palindrome using “do-while” statement ?

 

Write the difference bet ween do-while loop and while loop.

 

What is the difference between for loop and do-while loop ? Explain with

example.

 

What is function ? Explain user defined and library functions

 

What do you mean by function ? Explain with example the functions accepting more than one parameter.

 

What is function ? Write the difference between actual parameter and tormal

parameter.

 

Or

 

Write a program in ‘C’ to print factorial through function.

 

What are the advantages of using “function” in ‘C language and explain in brief the concept associated with “function” ?

 

Differentiate between function declaration and function definition with example.

 

Write five built-in functions for string mainpulation.

 

What is the difference between call-by value and call-by reference ? Explain

it with example.

 

Or

 

Short note on call-by-Reference.

 

Write a program to find the factorial ofa given number using recursive function.

 

Write a ‘C’ function for swapping of two values A and B.

 

Explain library function.

 

or

 

What do you mean by library function ? Explain any five library function.

 

What is the Recursion ? Explain.

 

Or

 

What is recursion ? How it is different from function ?

 

Or

 

What is a Recursion ? Explain it by a program to find the sum or 20

numbers.

 

Explain Arrays and its types.

Or

 

what is the difference between Single-Dimension and Multi-Dimension Array? Explain.

Or

 

what is a single-dimensional array and multi-dimensional Array? Write one

program using multi-dimensional array.

 

Or

 

What are multi-dimensional arrays ? Explain with an example.

 

Write various advantages of array in “C” language and write a program that demonstrates multiplication of two matrices.

 

Write a program for matrix multiplication?

 

What is the use of array ? Write a ‘C program to search the key value in a set of n values print the position of key-value if, it is successful search.

 

A palindrome is a word that is spelled the same forward ánd backward, such as RADAR. Write a ‘C’ program to read a word and determine whether the word is palindrome or not ?

 

Write a program for matrix addition in’C language.

 

Explain strings in ‘C’ with suitable example.

 

What is pointer? Write a program in C for pointer.

 

Or

 

What is pointer and use of pointer ?

 

Or

 

What is pointer ? How can it be initiated ?

 

What is the use of array of pointers ? Explain pointer with suitable example.

 

Write short note on pointer and string.

 

What do you mean by void pointers ? Explain it

 

Explain pointer to pointer in’C language, with an example.

 

Write a program to calculate Sum of all numbers in a given matrix using pointers.

 

Write short notes on Arithmetic operations on pointers.

 

What are the advantage of pointers over array ? Write a ‘C’ program to count the number of vowels in string using pointer.

 

Explain the difference between an array and a pointer with the help of example.

 

 

UNIT-II

 

What is an object ?

 

Or

 

What is class ?

 

Or

What do you mean by object & class?

Or

Explain class and object with example.

 

What is the difference between constructor & destructor ?

Or

 

What is Destructor ?

 

Write a program in C++ to explain the concept of constructor & destructor.

 

Or

 

Explain single inheritance in short.

 

Write five file handling function used in C++

Or

 

Write any five file handing function used in C++.

 

What are the státic data & static member function?

 

Write the difference between over-loading & over-riding.

 

Explain the concept of copy construction.

 

What are string in C++.

 

Name the storage class in C++

 

What is the scope resolution operation ?

 

What is the output of 5.0% 2 ?

 

Are the exceptions & error’s are same ?

 

Define tellg () & tellp ().

 

Define Virtual destructor.

 

Write the basic concepts of OOPS.

Or

 

What do you mean by Object Oriented Programming ? Discuss main features of C++.

Or

 

What is the concept of OOPS ? Explain their features.

Or

Write the main features of OOP.

 

WAP in C++ to explain the concept of function over-loading

Or

Explain function over-loading with example.

Or

 

Write short notes on function over-loading.

 

What is the friend function in C++? Explain with example.

Or

What is friend function? What are merits and demerits of friend functions ?

Or

 

What is friend function ? What are its properties ?

 

Write short notes on inline function.

 

Write the difference between object oriented programming and procedural oriented programming language.

 

What is the difference between C & C++?

 

Explain different types of constructor used in C++ with example.

Or

Explain constructor & destructor with suitable Example?

 

 

UNIT-III

 

Define operator over-loading. What are the rules for over-loading operators?

or

Write short notes on Operator Over-loading.

 

What do you mean by operator over-loading ? Demonstrate a binary operator over-loading with suitable example.

 

Explain Unary Operator Over-loading?

 

Explain Binary Over-loading with example.

 

What is type casting?

or

Discuss the use of type casting.

Or

Explain type conversion.

 

Explain string manipulation with the help of operator.

 

 

UNIT-IV

 

What is inheritance ? Explain the types of inheritance available in C++.

Or

What is hierarchical inheritance?

Or

What is the use of Inheritance ? Explain it.

Or

 

What do you mean by inheritance ? Explain different types of inheritance with examples.

 

WAP in C++ for multi-level & multiple inheritance.

 

WAP to implement multiple inheritance.

 

WAP to create class called string & implement the following:

(1) String S1 = “Korba”

(2) String S2 = “C.G.”

(3) String S3 = S1+SS2

 

Explain hybrid inheritance.

 

What is virtual function?

or

What is the need of virtual function.

 

Explain virtual base class.

 

What is meant by abstract class?

or

Explain abstract class.

 

Explain virtual base class with example.

 

 

UNIT-V

Explain Input/Output operations on files.

Or

Explain file modes.

 

WAP in C++ for opening & closing a file.

 

Write short notes on File Handling in ‘C’ language.

Or

 

What is the use of file handling in ‘C’ ?

 

Differentiate between Text file & Binary file:

 

Write a program in ‘C’ Language to create a squential data file [assume your own fields and data].

Or

Write any file handing program of’C’ Language.

 

What is Pointer ?

 

What is pointer to object?

 

What is ‘this Pointer?

 

What do you mean by virtual function ? Explain with example.

Or

What is virtual function?

 

Write about the pure virtual function.

Or

What is pure virtual function ?

 

Create a file by using constructor.

 

Write a programm to work with multipl

error: Content is protected !!