MABS Institution
11th Computer Science Weekly Test - 1 ( Arrays and Structures )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
What are called global objects?
-
Write the syntax of declaring one dimensional array?
-
Write a program to assign data to members of a structure variable and display the contents.
-
How to access members of a structure? Give example.
-
-
Explain one-dimenstional array with an example.
-
Write about initialization of 2-D array.
-
-
Write the syntax and an example for structure.
-
Explain returning structures from functions with an example.
-
Explain memory representation of 2-D array.
-
-
Write a C++ Program to declare a structure book containing name and author as character array of 20 elements each and price as integer. Declare an array of book. Accept the name, author, price detail for each book. Define a user defined function to display the book details and calculate the total price. Return total price to the calling function.
-
How will you pass two dimensional array to a function explain with example.
-
-
Write a C++ program to add two distances using the following structure definition
struct Distance{
int feet;
float inch;
}d1 , d2, sum;