Sei sulla pagina 1di 2

ASSIGNMENT # 01 ( LOOPS AND STRUCTURE )

Q # 1 : List a relational operators available in C++ along with their description.


Write a short program showing the meaningful usage of three of these.
Q # 2 : How many loops are available in C++? Show their syntax and operator
diagrammatically.
Q # 3 : List the decision statements available in C++. Clearly mention the
difference b/w them in the form of bullets. Also write a small programs to show the
syntax.
Q # 4 : What are the benefits of nested structure? Write at least three. How can the
members of nested structure be accessed? Write a simple and Meaningful program
showing the use of nested structure.
Q # 5 : What is the difference b/w structure and enumeration? Mention at least
three in bullets. Write an example program for each one of them.
ASSIGNMENT # 02 ( FUNCTIONS , ARRAYS &STRINGS )
Q # 1 : While passing variables to the functions, how pass by value and pass by
reference are different. List their benefits and limitations ( at least three ) clearly in
the form of bullets.
Also write a simple same program for each one of them.
Q # 2 : Structures can also be passed to functions as arguments. Write a program
with three functions such that the same structure is passed by value, by pointer and
by reference to each one
of them. Write your conclusion after the output of program.
Q # 3 : Why do you think function overloading is an important feature in C++? List
the conditions of overloading the functions. Write a short program in which a
function is overloaded
differently based on all the allowed conditions of overloading.
Q # 4 : Write the benefits and limitations of arrays. Write at least three. What is the
difference between Static and Dynamic arrays? Write a program in which a two
dimensional arrays is passed to a function.
Q # 5 : Declare one, two and three dimensional arrays. Show their representation
diagrammatically.
Q # 6 : List all the string functions supported by the header file "string.h" along
with their description. Also write a program using at least three of these built in
functions.
Q # 7 : Why the String data is so important in programming applications? Mention
at least three
reasons. Write a simple same program with and without using string data type.

ASSIGNMENT # 03 ( STRINGS )
Q # 1 : Briefly describes string data type in C++ with an example program,
Q # 2 : Whats string function strcpy()? Create a program in which a string is copied
to another string using built in function strcpy() and manually.
Q # 3 : List and briefly describe all the built in functions that support strings in C+
+?
Q # 4 : Create a program in C++ which applies all string functions.
Q # 5 : Compare C++ string with C strings, how are strings useful than characters.

Potrebbero piacerti anche